Fixed seeking in multi channel FLAC files.

Updated seek() documentation.
This commit is contained in:
Maximilian Wagenbach 2016-01-17 13:24:22 +01:00 committed by Lukas Dürrenberger
parent 698bbccd6a
commit c78c8106da
6 changed files with 25 additions and 4 deletions

View file

@ -153,6 +153,9 @@ public:
/// precision. If you need to jump to a given time, use the
/// other overload.
///
/// The sample offset takes the channels into account.
/// Offsets can be calculated like this:
/// `sampleNumber * sampleRate * channelCount`
/// If the given offset exceeds to total number of samples,
/// this function jumps to the end of the sound file.
///

View file

@ -79,6 +79,9 @@ public:
////////////////////////////////////////////////////////////
/// \brief Change the current read position to the given sample offset
///
/// The sample offset takes the channels into account.
/// Offsets can be calculated like this:
/// `sampleNumber * sampleRate * channelCount`
/// If the given offset exceeds to total number of samples,
/// this function must jump to the end of the file.
///