Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultChunkSize = 512 * 1024 PrefetchCount = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decryptor ¶
type Decryptor struct {
// contains filtered or unexported fields
}
func NewAesAudioDecryptor ¶
type HttpChunkedReader ¶
type HttpChunkedReader struct {
// contains filtered or unexported fields
}
func NewHttpChunkedReader ¶
func NewHttpChunkedReader(log *log.Entry, audioUrl string) (_ *HttpChunkedReader, err error)
func (*HttpChunkedReader) ReadAt ¶
func (r *HttpChunkedReader) ReadAt(p []byte, pos int64) (n int, _ error)
func (*HttpChunkedReader) Seek ¶
func (r *HttpChunkedReader) Seek(offset int64, whence int) (int64, error)
func (*HttpChunkedReader) Size ¶
func (r *HttpChunkedReader) Size() int64
type KeyProvider ¶
type KeyProvider struct {
// contains filtered or unexported fields
}
func NewAudioKeyProvider ¶
func NewAudioKeyProvider(ap *ap.Accesspoint) *KeyProvider
func (*KeyProvider) Close ¶
func (p *KeyProvider) Close()
type MetadataPage ¶
type MetadataPage struct {
// contains filtered or unexported fields
}
func ExtractMetadataPage ¶
func ExtractMetadataPage(r io.ReaderAt, limit int64) (librespot.SizedReadAtSeeker, *MetadataPage, error)
func (MetadataPage) GetAlbumFactor ¶
func (m MetadataPage) GetAlbumFactor(normalisationPregain float32) float32
func (MetadataPage) GetSeekPosition ¶
func (m MetadataPage) GetSeekPosition(samplesPos int64) int64
func (MetadataPage) GetTrackFactor ¶
func (m MetadataPage) GetTrackFactor(normalisationPregain float32) float32
Click to show internal directories.
Click to hide internal directories.