Citation through CAF File Samples

Can someone give me a suggestion or an example of how I will scroll through the CAF (Core Audio Format) file samples? Like taking the first 1000 samples and changing them to 0?

Sort of:

for(int i=0; i < numberOfSamples; i++) { cafFile.sample[i] = methodThatUsesSampleValue(cafFile.sample[i]); } 

Keep in mind:

  • I do not need to do this live. Buffers etc. Not required.
  • I would like to do this in C, C ++ or Objective-C.
  • I would like to use the code on the iOS platform.

Any help appreciated!

0
source share
2 answers

I recently stumbled upon the amazing OpenFrameWorks library: http://www.openframeworks.cc/about And I know that it compiles on MacOS and iPhone. Among many (!) Other libs, it comes with an interface to rtAudio: http://www.music.mcgill.ca/~gary/rtaudio/index.html . You might want to consider using this directly. Hope this helps.

+1
source

The C ++ libsndfile library is well known and provides many other functions - the function to read AIFF files: http://www.mega-nerd.com/libsndfile/ , lib is distributed under the Gnu Lesser General Public License. I do not know if this is a problem.

+2
source

Source: https://habr.com/ru/post/1338903/


All Articles