Added CA_CANONICAL_DEPRECATED check

This commit is contained in:
Thong Nguyen 2014-12-29 18:14:39 +00:00
parent 8708e48395
commit 39f0d8bdfe
1 changed files with 3 additions and 1 deletions

View File

@ -307,7 +307,9 @@ static void AudioFileStreamPacketsProc(void* clientData, UInt32 numberBytes, UIn
.componentFlagsMask = 0
};
#if CA_PREFER_FIXED_POINT || __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000
#ifdef CA_CANONICAL_DEPRECATED
const int bytesPerSample = sizeof(SInt16);
#elif __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000
const int bytesPerSample = sizeof(SInt16);
#else
const int bytesPerSample = sizeof(AudioSampleType);