Skip to content

Commit

Permalink
Fixing ApiAnalyzer errors. (#1794)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradipd authored Jan 24, 2017
1 parent aa8a8d4 commit 4c153c4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Frameworks/AudioToolbox/AudioConverter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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) {
Expand Down
3 changes: 3 additions & 0 deletions include/AudioToolbox/AudioConverterInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#include <wmcodecdsp.h>
#include <COMIncludes_End.h>

#import <Foundation/NSObject.h>
#import <CoreAudio/CoreAudioTypes.h>

using namespace Microsoft::WRL;
using namespace Microsoft::WRL::Wrappers;

Expand Down

0 comments on commit 4c153c4

Please sign in to comment.