From efcef629e289f3c30020a6b73a474736a535d38c Mon Sep 17 00:00:00 2001 From: Pradip Dhara Date: Tue, 24 Jan 2017 11:34:16 -0800 Subject: [PATCH] Fixing ApiAnalyzer errors. --- Frameworks/AudioToolbox/AudioConverter.mm | 19 ++++++++++--------- include/AudioToolbox/AudioConverterInternal.h | 3 +++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Frameworks/AudioToolbox/AudioConverter.mm b/Frameworks/AudioToolbox/AudioConverter.mm index b649b67264..5feb56b736 100644 --- a/Frameworks/AudioToolbox/AudioConverter.mm +++ b/Frameworks/AudioToolbox/AudioConverter.mm @@ -54,9 +54,9 @@ - (float)getSizeChangeMultiplier { @end /** - @Status Caveat: AudioConverter supported only for conversions through AudioConverterConvertBuffer. - Returns kAudioConverterErr_UnspecifiedError on failure and noErr (0) on success. Other return types not supported. - @Notes + @Status Caveat + @Notes AudioConverter supported only for conversions through AudioConverterConvertBuffer. + Returns kAudioConverterErr_UnspecifiedError on failure and noErr (0) on success. Other return types not supported. */ OSStatus AudioConverterDispose(AudioConverterRef inAudioConverter) { RETURN_AUDIOERR_IF_FAILED_WITH_MSG(MFShutdown(), @"MFShutdown Failed"); @@ -98,9 +98,10 @@ OSStatus _setMFProperties(const AudioStreamBasicDescription* format, IMFMediaTyp } /** -@Status Caveat: AudioConverter supported only for conversions through AudioConverterConvertBuffer. - Only Linear PCM formats are supported with 1 Frame per Packet and equal source & destination Channels per Frame. - Returns kAudioConverterErr_UnspecifiedError on failure and noErr (0) on success. Other return types not supported. +@Status Caveat +@Notes AudioConverter supported only for conversions through AudioConverterConvertBuffer. + Only Linear PCM formats are supported with 1 Frame per Packet and equal source & destination Channels per Frame. + Returns kAudioConverterErr_UnspecifiedError on failure and noErr (0) on success. Other return types not supported. */ OSStatus AudioConverterNew(const AudioStreamBasicDescription* inSourceFormat, const AudioStreamBasicDescription* inDestinationFormat, @@ -212,9 +213,9 @@ OSStatus AudioConverterSetProperty(AudioConverterRef inAudioConverter, } /** - @Status Caveat: Returns kAudioConverterErr_UnspecifiedError, kAudioConverterErr_InvalidInputSize or - kAudioConverterErr_InvalidOutputSize on failure and noErr (0) on success. Other return types not supported. - @Notes + @Status Caveat + @Notes Returns kAudioConverterErr_UnspecifiedError, kAudioConverterErr_InvalidInputSize or + kAudioConverterErr_InvalidOutputSize on failure and noErr (0) on success. Other return types not supported. */ OSStatus AudioConverterConvertBuffer( AudioConverterRef inAudioConverter, UInt32 inInputDataSize, const void* inInputData, UInt32* ioOutputDataSize, void* outOutputData) { diff --git a/include/AudioToolbox/AudioConverterInternal.h b/include/AudioToolbox/AudioConverterInternal.h index 3106465615..820bcdc757 100644 --- a/include/AudioToolbox/AudioConverterInternal.h +++ b/include/AudioToolbox/AudioConverterInternal.h @@ -30,6 +30,9 @@ #include #include +#import +#import + using namespace Microsoft::WRL; using namespace Microsoft::WRL::Wrappers;