PaRecorderCallback() and PaPlayerCallback() help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nigel Hsiung wrote:
> Hi Benny and list,
> 
> I've been checking out pjsip-0.7.0 for sometime and desperately need 
> whatever help that u guys can.
> All i want  is to run the whole pjsip package minus port audio, coz my 
> sound system is a little bit different.
> 
> I took a leaf out of symbian_sound.cpp and modified pasound.c to fit my 
> arm system. Using snd_info sample application i can see that it can open 
> and close the audio correctly. Now i'm stuck at the callbacks - i'm 
> unable to figure out how PaRecorderCallback() and PaPlayerCallback() 
> performs audio read and write. For example in  - static int 
> PaRecorderCallback(const void *input,
>                   void *output,
>                   unsigned long frameCount,
>                   //const PaStreamCallbackTimeInfo* timeInfo,
>                   //PaStreamCallbackFlags statusFlags,
>                   void *userData );
> both *input and *output looks unused, while userData hold pj_media 
> stream info. How does the function returns the audio data that was read.

In PaRecorderCallback(), the "input" argument is used! That's where
PortAudio reports captured frames to pjmedia.

 -benny






[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux