Versions in this module Expand all Collapse all v0 v0.0.20 Aug 21, 2024 v0.0.19 Aug 21, 2024 Changes in this version + const DefaultChunkSize + const PrefetchCount + type Decryptor struct + func NewAesAudioDecryptor(r io.ReaderAt, key []byte) (*Decryptor, error) + func (a *Decryptor) Close() error + func (a *Decryptor) ReadAt(p []byte, pos int64) (n int, err error) + type HttpChunkedReader struct + func NewHttpChunkedReader(log *log.Entry, audioUrl string) (_ *HttpChunkedReader, err error) + func (r *HttpChunkedReader) Read(p []byte) (n int, err error) + func (r *HttpChunkedReader) ReadAt(p []byte, pos int64) (n int, _ error) + func (r *HttpChunkedReader) Seek(offset int64, whence int) (int64, error) + func (r *HttpChunkedReader) Size() int64 + type KeyProvider struct + func NewAudioKeyProvider(ap *ap.Accesspoint) *KeyProvider + func (p *KeyProvider) Close() + func (p *KeyProvider) Request(gid []byte, fileId []byte) ([]byte, error) + type MetadataPage struct + func ExtractMetadataPage(r io.ReaderAt, limit int64) (librespot.SizedReadAtSeeker, *MetadataPage, error) + func (m MetadataPage) GetAlbumFactor(normalisationPregain float32) float32 + func (m MetadataPage) GetSeekPosition(samplesPos int64) int64 + func (m MetadataPage) GetTrackFactor(normalisationPregain float32) float32