If AudioPlaySdWav::block_left / block_right are not properly initialized to NULL, AudioPlaySdWav::begin() may crash, because their usage in AudioStream::release() may lead to undefined behavior.dds
class AudioPlaySdWav : public AudioStream | class AudioPlaySdWav : public AudioStream | ||||
{ | { | ||||
public: | public: | ||||
AudioPlaySdWav(void) : AudioStream(0, NULL) { begin(); } | |||||
AudioPlaySdWav(void) : AudioStream(0, NULL), block_left(NULL), block_right(NULL) { begin(); } | |||||
void begin(void); | void begin(void); | ||||
bool play(const char *filename); | bool play(const char *filename); | ||||
void stop(void); | void stop(void); |