diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-07-20 18:33:09 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-07-20 18:33:09 +0200 |
commit | c6ee2998766ff2fd464716afe864443de27fe3f4 (patch) | |
tree | baaba0b8ef637b604b79df4b6ea49c1f2651fcbe /modules/audiounit | |
parent | 31ffe860c5731dc015e4b6ca2e66cf210e507f9b (diff) |
audiounit: use expanded value of kAudioFormatFlagsCanonical
Diffstat (limited to 'modules/audiounit')
-rw-r--r-- | modules/audiounit/player.c | 4 | ||||
-rw-r--r-- | modules/audiounit/recorder.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/modules/audiounit/player.c b/modules/audiounit/player.c index 5e9f6b2..372f139 100644 --- a/modules/audiounit/player.c +++ b/modules/audiounit/player.c @@ -133,7 +133,9 @@ int audiounit_player_alloc(struct auplay_st **stp, const struct auplay *ap, fmt.mSampleRate = prm->srate; fmt.mFormatID = kAudioFormatLinearPCM; #if TARGET_OS_IPHONE - fmt.mFormatFlags = kAudioFormatFlagsCanonical; + fmt.mFormatFlags = kAudioFormatFlagIsSignedInteger + | kAudioFormatFlagsNativeEndian + | kAudioFormatFlagIsPacked; #else fmt.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked; diff --git a/modules/audiounit/recorder.c b/modules/audiounit/recorder.c index 8146ab9..cf6a1af 100644 --- a/modules/audiounit/recorder.c +++ b/modules/audiounit/recorder.c @@ -181,7 +181,9 @@ int audiounit_recorder_alloc(struct ausrc_st **stp, const struct ausrc *as, fmt.mSampleRate = prm->srate; fmt.mFormatID = kAudioFormatLinearPCM; #if TARGET_OS_IPHONE - fmt.mFormatFlags = kAudioFormatFlagsCanonical; + fmt.mFormatFlags = kAudioFormatFlagIsSignedInteger + | kAudioFormatFlagsNativeEndian + | kAudioFormatFlagIsPacked; #else fmt.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked; |