Changeset b257b60 for src/io/audio_unit.c
- Timestamp:
- Aug 12, 2015, 7:21:38 PM (10 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 60fc05b
- Parents:
- 3a1a5d6 (diff), 7b2d740 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/audio_unit.c
r3a1a5d6 rb257b60 234 234 audioFormat.mChannelsPerFrame = 2; 235 235 audioFormat.mFormatID = kAudioFormatLinearPCM; 236 audioFormat.mFormatFlags = kAudioFormatFlag sCanonical;236 audioFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked; 237 237 audioFormat.mFramesPerPacket = 1; 238 audioFormat.mBitsPerChannel = 8 * sizeof( AudioSampleType);238 audioFormat.mBitsPerChannel = 8 * sizeof(SInt16); 239 239 #if 1 // interleaving 240 audioFormat.mBytesPerFrame = 2 * sizeof( AudioSampleType);241 audioFormat.mBytesPerPacket = 2 * sizeof( AudioSampleType);240 audioFormat.mBytesPerFrame = 2 * sizeof(SInt16); 241 audioFormat.mBytesPerPacket = 2 * sizeof(SInt16); 242 242 #else 243 audioFormat.mBytesPerPacket = audioFormat.mBytesPerFrame = sizeof( AudioUnitSampleType);243 audioFormat.mBytesPerPacket = audioFormat.mBytesPerFrame = sizeof(SInt32); 244 244 audioFormat.mFormatFlags |= kAudioFormatFlagIsNonInterleaved; 245 245 #endif
Note: See TracChangeset
for help on using the changeset viewer.