Skip to content

Commit

Permalink
I know how many bits are in a byte
Browse files Browse the repository at this point in the history
  • Loading branch information
dylwhich committed Jul 9, 2024
1 parent 0214f91 commit 469e79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CNFA_coreaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void * InitCNFACoreAudio( CNFACBType cb, const char * your_name, int reqSPSPlay,
recDesc.mFormatID = kAudioFormatLinearPCM;
recDesc.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
recDesc.mSampleRate = r->spsRec;
recDesc.mBitsPerChannel = sizeof(short);
recDesc.mBitsPerChannel = 8 * sizeof(short);
recDesc.mChannelsPerFrame = r->channelsRec;
// Bytes per channel, multiplied by number of channels
recDesc.mBytesPerFrame = recDesc.mChannelsPerFrame * (recDesc.mBitsPerChannel / 8);
Expand Down

0 comments on commit 469e79c

Please sign in to comment.