From: bugra H. <bug...@gm...> - 2008-12-22 14:18:36
|
2008/12/19 Mihai Balea <mi...@ha...> > Isn't pa_callback the main event callback that you were referring? > > > Nope, you shouldn't touch pa_* functions, unless you know what you're > doing. > I'm talking about the callback you set using iaxc_set_event_callback() > I get the data from event.ev.audio.data when an IAXC_EVENT_AUDIO event triggers. The problem is, audio event triggers all the time,even when nobody is calling me :S I observed that such event's timestamp is 0 so i created a filter based on timestamp's value. when timestamp is 0, i ignore that event. is this the right approach? btw why do i get such events when nobody is calling me? is this a bug? > IAXC_AUDIO_PREF_*_ENCODED will get you encoded audio data (obviously). > Make sure your player knows how to decode it and also, make sure you save > it in a container format that your player understands. You would probably > be better of just saving raw instead of encoded data. > I think i figured out what the problem is. I wasn't writing any header information to output audio file so media players were thinking file was corrupted. I will try to insert header information manually > Btw i couldn't find the test mode that you were referring. Can you please > give me the full name of it? > > Use your editor's Find function and look for "test mode" in iaxclient.h. > > Mihai > I already searched 'test mode' with no results. Uh oh, wait a minute, you are talking about 2.1 version. sorry, my bad. i will search newer versions before asking such a dump question :D |