Jaroslav Libák wrote: > Hi > > I get no sound from sipxezphone during a call. Recording works and the other > side can hear me. > > I checked RTP packets using ethereal, and tried saving incomming RTP stream > and play it using goldwave, which can decode g711u. I could hear the sound I > wanted. > > When I tried using sipxConfigSetSpkrAudioHook(&audioOutHook); to write > callback buffer into a file to see whats incomming the file contains only > zeroes. > > Then I tried to save wave buffer in speakerthreadwnt.cpp just before > waveOutWrite in the speaker thread.I also tried it at the end of outPrePrep > which gets audio samples from MpAudioSample::getSamples(). But this time I > didn't get all zeroes but a weird repeating sound of which a part is in > attachment. I played it as 16 bit signed PCM little endian 8000 samples per > second. > > I would like to ask whether I am right and the buffer sent to waveOutWrite > should be played using my settings. Another issue that it is weird that when > I play the buffer using goldwave I'm getting that repeating sound at least, > while when speaker thread plays it nothing can be heard. Volume is not muted > of course. > > Disabling HAVE_SPEEX doesn't help. > > Jaro > _______________________________________________ > sipxtapi-dev mailing list > [email protected] > List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/ >
Update: When I make a call using sipxezphone and press the buttons to make DTMF tones I can hear the tones locally and also on the other side. So the speaker thread can play the data that is arriving. Now when I did this test, my callback from sipxConfigSetSpkrAudioHook(&audioOutHook) wrote a file that had lot of zeros, but there was the sound of DTMF. When I played it using goldwave I could hear the tones clearly. So callback obviously works and receives correct data. I tried to play the wave buffer passed to waveOutWrite and I could hear that repeating sound but also the tones. Does anybody have an idea how to play the sound buffer correctly? The data is probably not being decoded properly or sent to sound buffer. I have a dual core processor and a sound card with separate mixers for output and input devices. Jaro _______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
