Enum creek_core::read::SeekMode
source · pub enum SeekMode {
Auto,
TryOne(usize),
TryOneThenAuto(usize),
NoCache,
}
Expand description
Describes how to search for suitable caches when seeking in a ReadDiskStream
.
If a suitable cache is found, then reading can resume immediately. If not, then the stream will need to buffer before it can read data. In this case, you may decide to either continue reading (which will return silence) or to pause playback temporarily.
Variants§
Auto
Automatically search for a suitable cache to use. This is the default mode.
TryOne(usize)
Only try one cache with the given index. If you already know a suitable cache, this can be more performant than searching each cache individually.
TryOneThenAuto(usize)
Try the given cache with the given index, and if it is not suitable, automatically search for a suitable one. If you already know a suitable cache, this can be more performant than searching each cache individually.
NoCache
Seek without searching for a suitable cache. This will cause the stream to buffer.