Skip to content

Seeking position in an MP3 file? #1899

Answered by pschatzmann
JabberwockPL asked this question in Q&A
Discussion options

You must be logged in to vote

Please follow the instructions given in the Readme and don't file your questions as errors!

The first question is not really related to my framework: of cause you can change the actual file position with the corresponding file api using seek() and position().

For the second question I refer to my answer above: you just need to translate the seconds to bytes. You can determine the bytesPerSecond() with the help of the MeasuringStream. Please note that with the AudioPlayer this class can't be used in a chain, so you need to update the processed bytes (with setProcessedBytes()) after calling copy();

ps. there is no such thing as a AudioSourcesSTD

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@hash6iron
Comment options

@hash6iron
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
2 replies
@pschatzmann
Comment options

@hash6iron
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1897 on February 04, 2025 07:56.