[EMAIL PROTECTED] wrote:
Hi,
When I program a DSP audio device, I found something interesting.
When no data in the buffer (CHXAudioStream), HXAudioSession still pushes
fake PCMs down to audio device(::CheckToPlayMoreAudio). Those PCMs are
generated by CHXAudioStream. Since DSP device has to buffer every
encoded frame in a seperate queue, it is disturbing to receive
::Write() with extra PCMs. Although I made a workaround for that,
I am wondering why HXAudioSession & CHXAudioStream are designed in
that way. Could anyone kindly explain a little bit?
Thanks,
Gang Shen
Could you explain a little more about what it is you are doing
exactly? From the above it sounds like you have a hardware decoder
for some audio stream. Is that correct? If so, have you read
the "Hardware Decoder Integration Guide":
https://client.helixcommunity.org/2004/devdocs/dsp_inte
It will talk a bit about where some of this 'dummy PCM' can come
from and why it is used.
If the above is not the case, then there are a few places in
hxaudses.cpp where the PCM data is silenced and/or inserted into
the audio stream. I would need to know more about your specific
playback scenario to tell you more however.
Let me know if you have any other questions,
--greg.
_______________________________________________
Audio-dev mailing list
[email protected]
http://lists.helixcommunity.org/mailman/listinfo/audio-dev