c - Left and Right audio channels are exchanging -
i trying write application capturing stereo audio. audio input has 2 channels(stereo). writing audio data wav file. times these audio channels exchanging i.e, left becomes right , right becomes left. happening if open , close device file or turn off device , turn on. , happening randomly. don't want channels exchanged. please suggest.
stereo pcm stored in wav file in lr format. 'l' stands left channel sample , 'r' right channel sample. guess have bug in retrieving or storing pcm. maybe start right (correct) position in buffer , start second sample. it's hard tell without additional info.
Comments
Post a Comment