Re: [sipxtapi-dev] Internal TAPI timers ?
Alexander Chemeris wrote:
> re: audio delay
> There is no such API in sipXtapi I'm aware of (though I'm not
> an expert here). But on the level of sipXmediaLib/sipXmediaAdapterLib
> we're preparing a big update, which include this ability - to
> delay audio while receiver won't be ready. Expect this update
> to come up in a week or so. If you want, you'll be able to
> just hook this up to sipXtapi level
It's been a while since I posted my question. In the mean time I have
dug deep into the API code and discovered there are hooks to the audio
I/O after all.
sMpAudioDeviceInitFuncPtr
sMpAudioMicReadFuncPtr
sMpAudioSpeakerWriteFuncPtr
Which are alterable pointers to audio I/O functions. In my case I
replaced them with ALSA I/O and fixed and elastic delay buffers - plus
as-heard sound recording using the excellent libsndfile which can write
in most formats with on-the-fly format conversion/compression.