Using AudioSampleType constant is deprecated in iOS 8

The equivalent is SInt16
This commit is contained in:
Daniel Cohen Gindi 2014-12-14 10:12:04 +02:00
parent 477b1f175f
commit 88be5b33c6
1 changed files with 5 additions and 1 deletions

6
StreamingKit/StreamingKit/STKAudioPlayer.m Normal file → Executable file
View File

@ -292,9 +292,13 @@ static void AudioFileStreamPacketsProc(void* clientData, UInt32 numberBytes, UIn
.componentSubType = kAudioUnitSubType_AUConverter,
.componentFlags = 0,
.componentFlagsMask = 0
};
};
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 80000
const int bytesPerSample = sizeof(AudioSampleType);
#else
const int bytesPerSample = sizeof(SInt16);
#endif
canonicalAudioStreamBasicDescription = (AudioStreamBasicDescription)
{