-
|
Hi, I'm struggling a bit with all the audio settings and lack of knowledge, but I want to convert audio to WAV 16bit, 16kHz, 1 channel, non-interleaved. I think the code below is on the right track but it throws an error & I don't know how to specify bitrate & non-interleaved. Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
To adjust properties like the sample rate you can create an instance of SFBAudioEngine/Conversion/SFBAudioConverter.h Line 115 in 838d909 The proposed format passed to the block can be inspected and a different format returned if desired. Further customization can also be accomplished by setting properties on the intermediate converter: SFBAudioEngine/Conversion/SFBAudioConverter.h Line 126 in 838d909 For the situation you describe using the Core Audio encoder would look like: You could also use the Libsndfile encoder: |
Beta Was this translation helpful? Give feedback.
-
|
This is amazing. Tested it and it works. Thank you! |
Beta Was this translation helpful? Give feedback.
To adjust properties like the sample rate you can create an instance of
AudioConverterusing the following constructor:SFBAudioEngine/Conversion/SFBAudioConverter.h
Line 115 in 838d909
The proposed format passed to the block can be inspected and a different format returned if desired.
Further customization can also be accomplished by setting properties on the intermediate converter:
SFBAudioEngine/Conversion/SFBAud…