diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-01-07 21:48:59 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-01-07 21:48:59 +0300 |
commit | b12fb8a541c04f40645cd6c5411c45d44e023724 (patch) | |
tree | 8edfab44dfd15e59f838913d73582e94cc81d19b /examples | |
parent | a1cbf66f28eaadae721bb65d6337feaa049de297 (diff) | |
download | libADLMIDI-b12fb8a541c04f40645cd6c5411c45d44e023724.tar.gz libADLMIDI-b12fb8a541c04f40645cd6c5411c45d44e023724.tar.bz2 libADLMIDI-b12fb8a541c04f40645cd6c5411c45d44e023724.zip |
SDL2-Audio Example; Let music play a bit longer
Diffstat (limited to 'examples')
-rw-r--r-- | examples/sd2_audio/sdl2_sample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sd2_audio/sdl2_sample.c b/examples/sd2_audio/sdl2_sample.c index 28d2226..b6307d7 100644 --- a/examples/sd2_audio/sdl2_sample.c +++ b/examples/sd2_audio/sdl2_sample.c @@ -111,7 +111,7 @@ void my_audio_callback(void *midi_player, Uint8 *stream, int len) /* Take some samples from the ADLMIDI */ samples_count = adl_play(p, samples_count, (short*)buffer); - if(samples_count <= 0 || adl_atEnd(p)) + if(samples_count <= 0) { is_playing = 0; SDL_memset(stream, 0, len); |