I want to record and play audio simultaneously. The CMdaAudioInputStream and CMdaAudioOutputStream is opened serially and no error occurs. The CMdaAudioInputStream works normally, but CMdaAudioOutputStream fails if CMdaAudioInputStream is not closed. That means only half-duplex is implemented. Each time, The function MaoscBufferCopied just got -21(KAccessDenied) error.
I have read some threads in this forum, most of them are too old(before 2005), others are helpless. Can someone give me a Hint?