When reading an audio file with reading ExtAudioFile, is it possible to read audio streams not sequentially?

I am trying to derive a waveform from an mp3 file.

I managed to extract the floats using the ExtAudioFileReadTest application provided in the Core Audio SDK documentation (link: http://stephan.bernsee.com/ExtAudioFileReadTest.zip ), but it reads floating sequentially.

The problem is that my audio file is very long (about 1 hour), so if I read the floats sequentially, it takes a lot of time.

Can I skip an audio file, then read a small part of the sound, then skip and read?

+3
source share
1 answer

Yes, use ExtAudioFileSeek () to find the frame you want. It has some errors depending on the format you are using (or at 10.6), but MP3 should be fine.

+3
source

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


All Articles