Merged/fixed deprecations changes from danielgindi

This commit is contained in:
Thong Nguyen 2014-12-29 16:48:37 +00:00
commit 9a4b4a617d
2 changed files with 6 additions and 2 deletions

8
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
};
};
const int bytesPerSample = 2;
#if CA_PREFER_FIXED_POINT || __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000
const int bytesPerSample = sizeof(SInt16);
#else
const int bytesPerSample = sizeof(AudioSampleType);
#endif
canonicalAudioStreamBasicDescription = (AudioStreamBasicDescription)
{

0
StreamingKit/StreamingKit/STKHTTPDataSource.m Normal file → Executable file
View File