Changing buffer content

"Peter Soxberger" <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
Hi!

I'm creating a voice chat and am using OpenAL for the output. The Problem that I currently have is, that if I change the content of a buffer of a source and play it, I can't hear anything.

Code:
//--------------------------------------------
alSourceStop(soundsOut_current->source);
alBufferData(soundsOut_current->buffer, AL_FORMAT_MONO16, decoded_buffer, voice_Bufsize, voice_SamplesPerSecond);
alSourcei(soundsOut_current->source, AL_BUFFER, soundsOut_current->buffer);
alSourcePlay(soundsOut_current->source);
//--------------------------------------------

Everytime I receive a packet with new data, I want to play it with the code above. Because I don't want to initialize a source and buffer for every received packed I want to change the content of the buffer only. But I simply hear nohting...

What am I doing wrong?

Thanks for your help!
-- 
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02
_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.