Documentation
¶
Index ¶
Constants ¶
View Source
const ( PlayBackendPulseAudio = iota PlayBackendALSA )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ALSAPlayBackend ¶
type ALSAPlayBackend struct {
// contains filtered or unexported fields
}
func (*ALSAPlayBackend) Close ¶
func (pb *ALSAPlayBackend) Close() error
func (*ALSAPlayBackend) Drain ¶
func (pb *ALSAPlayBackend) Drain() error
func (*ALSAPlayBackend) Write ¶
func (pb *ALSAPlayBackend) Write(data []byte) error
type OggDecoder ¶
type OggDecoder struct {
// contains filtered or unexported fields
}
func (*OggDecoder) Close ¶
func (d *OggDecoder) Close() error
func (*OggDecoder) Decode ¶
func (d *OggDecoder) Decode() ([]byte, error)
func (*OggDecoder) GetDuration ¶
func (d *OggDecoder) GetDuration() time.Duration
func (*OggDecoder) GetSampleSpec ¶
func (d *OggDecoder) GetSampleSpec() *SampleSpec
type PlayBackend ¶
type PlayBackendType ¶
type PlayBackendType uint
type Player ¶
func NewPlayer ¶
func NewPlayer(useCache bool, backendType PlayBackendType) *Player
func (*Player) GetDuration ¶
type PulseAudioPlayBackend ¶
type PulseAudioPlayBackend struct {
// contains filtered or unexported fields
}
func (*PulseAudioPlayBackend) Close ¶
func (pb *PulseAudioPlayBackend) Close() error
func (*PulseAudioPlayBackend) Drain ¶
func (pb *PulseAudioPlayBackend) Drain() error
func (*PulseAudioPlayBackend) Write ¶
func (pb *PulseAudioPlayBackend) Write(data []byte) error
type SampleSpec ¶
type SampleSpec struct {
// contains filtered or unexported fields
}
func (*SampleSpec) GetPaSampleSpec ¶
func (ss *SampleSpec) GetPaSampleSpec() *paSimple.SampleSpec
type WavDecoder ¶
type WavDecoder struct {
// contains filtered or unexported fields
}
func (*WavDecoder) Close ¶
func (d *WavDecoder) Close() error
func (*WavDecoder) Decode ¶
func (d *WavDecoder) Decode() ([]byte, error)
func (*WavDecoder) GetDuration ¶
func (d *WavDecoder) GetDuration() time.Duration
func (*WavDecoder) GetSampleSpec ¶
func (d *WavDecoder) GetSampleSpec() *SampleSpec
Click to show internal directories.
Click to hide internal directories.