ExtAudioFile - mono to stereo
ExtAudioFile - mono to stereo
- Subject: ExtAudioFile - mono to stereo
- From: "Edwards, Waverly" <email@hidden>
- Date: Thu, 19 Aug 2010 13:10:32 -0500
- Acceptlanguage: en-US
- Thread-topic: ExtAudioFile - mono to stereo
Is it possible to
read a mono formatted audio file and have it directly read into a stereo
buffer?
I am currently
reading a mono file but I *always* want my buffer to be filled in stereo.
I wish to
have the right
channel be the same as the left channel.
Currently I am
reading the entire mono channel file into a buffer. I then read my mono
channel buffer into a stereo buffer and discard the mono
buffer.
for ( indx =
0; indx <= numSamples -1 ; indx++ )
{
stereoChannel[
indx][_leftChannel] = monoChannel[indx];
stereoChannel[
indx][_rightChannel] = monoChannel[indx];
}
Is there a direct
way to convert the mono channel to stereo, filling both channels with the
original mono data?
I searched and saw a
posting on Aug 9th where William stated you cannot and Doug said you
could.
If you can, I am not
understanding how.
Thank
you,
W.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden