[Openal] Audio part reminders

Daniel PEACOCK dpeacock at creativelabs.com
Mon Feb 2 01:59:47 PST 2009





Which OpenAL device are you using, and on which O/S?

I'm not really sure what is causing this problem.   You are presumably
taking the captured samples from OpenAL and sending them across the network
without ever playing them, right?  Then you start to receive audio samples
from the network and put those into an OpenAL buffer, attach it to a Source
and play it, and that's when you hear some of the audio that was captured?

Dan

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.

Creative Labs UK Ltd company number 2658256 registered in England and Wales
at Belmont Road, Belmont Place, Maidenhead, Berkshire, SL6 6TB



                                                                           
             angelo                                                        
             <angelo70 at gmail.c                                             
             om>                                                        To 
             Sent by:                  openal at opensource.creative.com      
             openal-bounces at op                                          cc 
             ensource.creative                                             
             .com                                                  Subject 
                                       [Openal] Audio part reminders       
                                                                           
             02/02/2009 08:09                                              
             AM                                                            
                                                                           
                                                                           
                                                                           




Hi all,

i have a quite strange problem, i try to describe it as best as
possible, anyway it seems related to OpenAL internal audio handling.

I have a half-duplex network audio streaming application, and i am using
OpenAL to reproduce the incoming streaming and to capture and send the
output streaming.
Audio format is a simple PCM 8Kkz 16bit monom, and after have
implemented a "receiver/player" and a "capture/sender" the audio quality
is good on both sides.
The problem is that, after talking to the microphone (capture+TX) and
switching to RX(start receiver+player, a little part of the audio sent
is played from the receiver, before the received audio get played. Same
happen after receiving, starting transmission (capture), a little part
of the received audio that was in the received OpenAL buffer is played
in the remote side.

So it seems that part of the audio received finish in the transmit
buffer (get someway mixed from openal). Transmitter and receiver are
developed in 2 different thread, using different buffers, receiver user
6 openAL buffers, capture use a different one.

For the receiving part, i tryed already to clean the buffers with

alSourcei (source, AL_BUFFER, 0);

or writing a null data buffer with alBufferData, without success.

Any help or suggestion is still appreciated.
angelo




_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT00068F2A



More information about the Openal mailing list