Documentation ¶
Overview ¶
libvorbis is a libvorbis Go wrapper.
Index ¶
Constants ¶
View Source
const ( CommentArtist = "ARTIST" CommentAlbum = "ALBUM" CommentTitle = "TITLE" CommentTrackNumber = "TRACKNUMBER" )
Popular user comment names.
View Source
const ( LittleEndian = 0 BigEndian = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { // Specifies big or little endian byte packing. Endianness int // Specifies word size. Possible arguments are 1 for 8-bit samples, // or 2 or 16-bit samples. Typical value is 2. WordSize int // Signed or unsigned data. 0 for unsigned, 1 for signed. Typically 1. Signed bool // contains filtered or unexported fields }
The File structure defines an Ogg Vorbis file.
func New ¶
New is the simplest function used to open and initialize an File structure. It sets up all the related decoding structure.
func (*File) Read ¶
Read returns up to the specified number of bytes of decoded PCM audio. Return number of read 16-bit words.
TODO: "Return number of read 16-bit words." must be in bytes and the
same for all decoders.
Click to show internal directories.
Click to hide internal directories.