projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e11ce48
)
src/io/audio_unit.c: fix deprecation warning (closes #16)
author
Paul Brossier
<piem@piem.org>
Sat, 1 Aug 2015 09:17:22 +0000
(11:17 +0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 1 Aug 2015 09:17:22 +0000
(11:17 +0200)
src/io/audio_unit.c
patch
|
blob
|
history
diff --git
a/src/io/audio_unit.c
b/src/io/audio_unit.c
index
00f742d
..
eab299f
100644
(file)
--- a/
src/io/audio_unit.c
+++ b/
src/io/audio_unit.c
@@
-233,14
+233,14
@@
sint_t aubio_audio_unit_init (aubio_audio_unit_t *o)
audioFormat.mSampleRate = (Float64)samplerate;
audioFormat.mChannelsPerFrame = 2;
audioFormat.mFormatID = kAudioFormatLinearPCM;
audioFormat.mSampleRate = (Float64)samplerate;
audioFormat.mChannelsPerFrame = 2;
audioFormat.mFormatID = kAudioFormatLinearPCM;
- audioFormat.mFormatFlags = kAudioFormatFlag
sCanonical
;
+ audioFormat.mFormatFlags = kAudioFormatFlag
IsSignedInteger | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked
;
audioFormat.mFramesPerPacket = 1;
audioFormat.mFramesPerPacket = 1;
- audioFormat.mBitsPerChannel = 8 * sizeof(
AudioSampleType
);
+ audioFormat.mBitsPerChannel = 8 * sizeof(
SInt16
);
#if 1 // interleaving
#if 1 // interleaving
- audioFormat.mBytesPerFrame = 2 * sizeof(
AudioSampleType
);
- audioFormat.mBytesPerPacket = 2 * sizeof(
AudioSampleType
);
+ audioFormat.mBytesPerFrame = 2 * sizeof(
SInt16
);
+ audioFormat.mBytesPerPacket = 2 * sizeof(
SInt16
);
#else
#else
- audioFormat.mBytesPerPacket = audioFormat.mBytesPerFrame = sizeof(
AudioUnitSampleType
);
+ audioFormat.mBytesPerPacket = audioFormat.mBytesPerFrame = sizeof(
SInt32
);
audioFormat.mFormatFlags |= kAudioFormatFlagIsNonInterleaved;
#endif
audioFormat.mFormatFlags |= kAudioFormatFlagIsNonInterleaved;
#endif