Using AudioSampleType constant is deprecated in iOS 8
The equivalent is SInt16
This commit is contained in:
parent
477b1f175f
commit
88be5b33c6
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue