Skip to content

Commit

Permalink
Merge pull request syedhali#131 from AlexEdunov/master
Browse files Browse the repository at this point in the history
Fixed warnings with deprecated "canonical" flags
  • Loading branch information
syedhali committed Feb 8, 2015
2 parents 7a751bc + b8b7a27 commit faf6491
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EZAudio/EZAudio.m
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ +(AudioStreamBasicDescription)monoCanonicalFormatWithSampleRate:(float)sampleRat
asbd.mBytesPerFrame = byteSize;
asbd.mBytesPerPacket = byteSize;
asbd.mChannelsPerFrame = 1;
asbd.mFormatFlags = kAudioFormatFlagsCanonical|kAudioFormatFlagIsNonInterleaved;
asbd.mFormatFlags = kAudioFormatFlagsNativeFloatPacked|kAudioFormatFlagIsNonInterleaved;
asbd.mFormatID = kAudioFormatLinearPCM;
asbd.mFramesPerPacket = 1;
asbd.mSampleRate = sampleRate;
Expand All @@ -159,7 +159,7 @@ +(AudioStreamBasicDescription)stereoCanonicalNonInterleavedFormatWithSampleRate:
asbd.mBytesPerFrame = byteSize;
asbd.mBytesPerPacket = byteSize;
asbd.mChannelsPerFrame = 2;
asbd.mFormatFlags = kAudioFormatFlagsCanonical|kAudioFormatFlagIsNonInterleaved;
asbd.mFormatFlags = kAudioFormatFlagsNativeFloatPacked|kAudioFormatFlagIsNonInterleaved;
asbd.mFormatID = kAudioFormatLinearPCM;
asbd.mFramesPerPacket = 1;
asbd.mSampleRate = sampleRate;
Expand Down Expand Up @@ -218,7 +218,7 @@ +(void)setCanonicalAudioStreamBasicDescription:(AudioStreamBasicDescription*)asb
asbd->mFormatID = kAudioFormatLinearPCM;
#if TARGET_OS_IPHONE
int sampleSize = sizeof(float);
asbd->mFormatFlags = kAudioFormatFlagsCanonical;
asbd->mFormatFlags = kAudioFormatFlagsNativeFloatPacked;
#elif TARGET_OS_MAC
int sampleSize = sizeof(Float32);
asbd->mFormatFlags = kAudioFormatFlagsNativeFloatPacked;
Expand Down

0 comments on commit faf6491

Please sign in to comment.