From 14242f73c6df0e8e9921baccc5ecb120739dda81 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Tue, 10 Apr 2012 00:05:01 +0200 Subject: [PATCH] Fixed: Update audio mixer during buffer streaming in streaming sample --- code/nel/samples/sound/stream_ogg_vorbis/stream_ogg_vorbis.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/nel/samples/sound/stream_ogg_vorbis/stream_ogg_vorbis.cpp b/code/nel/samples/sound/stream_ogg_vorbis/stream_ogg_vorbis.cpp index 7d200635a..db5b8b214 100644 --- a/code/nel/samples/sound/stream_ogg_vorbis/stream_ogg_vorbis.cpp +++ b/code/nel/samples/sound/stream_ogg_vorbis/stream_ogg_vorbis.cpp @@ -367,6 +367,7 @@ static void initSample() string sample = SAMPLE_OGG; s_AudioDecoder = IAudioDecoder::createAudioDecoder(sample, false, false); s_StreamSource->setFormat(s_AudioDecoder->getChannels(), s_AudioDecoder->getBitsPerSample(), (uint32)s_AudioDecoder->getSamplesPerSec()); + s_StreamSource->setPitch(2.0f); } //CMutex *s_Mutex = NULL; @@ -413,6 +414,7 @@ static void runSample() return; } bufferMore(bytes); + s_AudioMixer->update(); //if (!s_StreamSource->asUSource()->isst) //{ // printf("*!playing!*"); @@ -424,6 +426,7 @@ static void runSample() while (s_StreamSource->hasFilledBuffersAvailable()) { nlSleep(40); + s_AudioMixer->update(); } s_StreamSource->stop();