Documentation ¶
Index ¶
Constants ¶
View Source
const (
ChunkIdx_Nil = ChunkIdx(-1)
)
View Source
const (
Header_AssetWordSize uint8 = 0x03
)
View Source
const ( // Spotify inserts a custom Ogg packet at the start with custom metadata values, that you would // otherwise expect in Vorbis comments. This packet isn't well-formed and players may balk at it. // Search for "parse_from_ogg" in librespot -- https://github.com/librespot-org/librespot SPOTIFY_OGG_HEADER_SIZE = 0xa7 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChunkIdx ¶
type ChunkIdx int32 // 0-based index of the chunk in the asset
func ChunkIdxAtOffset ¶
func (ChunkIdx) StartByteOffset ¶
type ChunkStatus ¶
type ChunkStatus int32
type Downloader ¶
type Downloader interface { HandleCmd(cmd byte, data []byte) error // Blocks until the asset is ready to be accessed. PinTrack(uri string) (amp.MediaAsset, error) }
func NewDownloader ¶
func NewDownloader(conn connection.PacketStream, client *mercury.Client) Downloader
Click to show internal directories.
Click to hide internal directories.