How to change the audio capture buffer size in DirectSound's CaptureSound application ?...
How to change the audio capture buffer size in DirectSound's CaptureSound application ?...
m_dwNotifySize = 3528;
Set this Value in CreateCaptureBuffer() fn,
before this line:
m_dwNotifySize = 3528;//AudioBufferSize
m_dwCaptureBufferSize = m_dwNotifySize * NUM_REC_NOTIFICATIONS;
Notification buffer size is passed to retrieve the data from the Circular buffer.
So we can set any buffer size , this will cause the change in buffer size.
m_dwNotifySize = 3528;
Set this Value in CreateCaptureBuffer() fn,
before this line:
m_dwNotifySize = 3528;//AudioBufferSize
m_dwCaptureBufferSize = m_dwNotifySize * NUM_REC_NOTIFICATIONS;
Notification buffer size is passed to retrieve the data from the Circular buffer.
So we can set any buffer size , this will cause the change in buffer size.
Labels: Audio Capture, Directsound
0 Comments:
Post a Comment
<< Home