Bitrate correct
parent
f32632abd0
commit
b37af5557a
|
@ -218,7 +218,7 @@ OSStatus ACInputProc(AudioConverterRef inAudioConverter, UInt32 *ioNumberDataPac
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
bitRate = totalBytes/((_totalPackets * asbd.mFramesPerPacket)/asbd.mSampleRate);
|
bitRate = ((totalBytes*8)/((_totalPackets * asbd.mFramesPerPacket)/asbd.mSampleRate))/1000.0;
|
||||||
// Set our properties
|
// Set our properties
|
||||||
bitsPerSample = asbd.mBitsPerChannel;
|
bitsPerSample = asbd.mBitsPerChannel;
|
||||||
channels = asbd.mChannelsPerFrame;
|
channels = asbd.mChannelsPerFrame;
|
||||||
|
|
Loading…
Reference in New Issue