From b37af5557a4adc3bd98fcb66ea963bde60476c85 Mon Sep 17 00:00:00 2001 From: vspader Date: Fri, 12 May 2006 00:51:47 +0000 Subject: [PATCH] Bitrate correct --- Sound/SoundFile/CoreAudioFile.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sound/SoundFile/CoreAudioFile.m b/Sound/SoundFile/CoreAudioFile.m index 651bcbcc7..5b083448f 100644 --- a/Sound/SoundFile/CoreAudioFile.m +++ b/Sound/SoundFile/CoreAudioFile.m @@ -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;