Bitrate correct

CQTexperiment
vspader 2006-05-12 00:51:47 +00:00
parent f32632abd0
commit b37af5557a
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ OSStatus ACInputProc(AudioConverterRef inAudioConverter, UInt32 *ioNumberDataPac
return NO;
}
bitRate = totalBytes/((_totalPackets * asbd.mFramesPerPacket)/asbd.mSampleRate);
bitRate = ((totalBytes*8)/((_totalPackets * asbd.mFramesPerPacket)/asbd.mSampleRate))/1000.0;
// Set our properties
bitsPerSample = asbd.mBitsPerChannel;
channels = asbd.mChannelsPerFrame;