QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Audio DMA buffers |
Ref. No. |
QNX.000009262 |
Category(ies) |
Development, Audio |
Issue |
After a write on /dev/dsp, is there a way to know how many samples have been played, or how many are pending ?
|
Solution |
Currently, there is not a way to determine the number of DMA buffers that are pending.
The typical way that an application will handle this is by reducing the DMA buffer size to something that accounts for a small amount of time (say 1 second); then track the position in the application yourself. |
|