Skip to content

Commit

Permalink
Merge pull request #1814 from ashvarma/release_1_23
Browse files Browse the repository at this point in the history
Release 1 23
  • Loading branch information
ashvarma authored Jan 25, 2017
2 parents 09d9f19 + b50e3e6 commit 71ce028
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 22 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
29 changes: 16 additions & 13 deletions Frameworks/SystemConfiguration/SCNetworkReachability.mm
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,19 @@ + (void)_testAllReachabilityObjects {

+ (void)_checkGlobalReachability {
WNCConnectionProfile* internetConnectionProfile = [WNCNetworkInformation getInternetConnectionProfile];
if (internetConnectionProfile &&
[internetConnectionProfile getNetworkConnectivityLevel] == WNCNetworkConnectivityLevelInternetAccess) {
SCNetworkReachabilityFlags newFlags = kSCNetworkReachabilityFlagsReachable;
@try {
if (internetConnectionProfile &&
[internetConnectionProfile getNetworkConnectivityLevel] == WNCNetworkConnectivityLevelInternetAccess) {
SCNetworkReachabilityFlags newFlags = kSCNetworkReachabilityFlagsReachable;

if (internetConnectionProfile.isWwanConnectionProfile) {
newFlags |= kSCNetworkReachabilityFlagsIsWWAN;
if (internetConnectionProfile.isWwanConnectionProfile) {
newFlags |= kSCNetworkReachabilityFlagsIsWWAN;
}
_globalReachableFlags = newFlags;
} else {
_globalReachableFlags = 0;
}
_globalReachableFlags = newFlags;
} else {
} @catch (...) {
_globalReachableFlags = 0;
}
}
Expand Down Expand Up @@ -237,12 +241,11 @@ - (void)_availabilityChanged {
if (_callbackQueue != NULL && _isPerformingCallback == FALSE) {
_isPerformingCallback = TRUE;
[self retain];
dispatch_async(_callbackQueue,
^void() {
[self _performCallback];
[self release];
_isPerformingCallback = FALSE;
});
dispatch_async(_callbackQueue, ^void() {
[self _performCallback];
[self release];
_isPerformingCallback = FALSE;
});
}

[_reachabilityFlagsValid unlock];
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 71ce028

Please sign in to comment.