Documentation
¶
Index ¶
Examples ¶
Constants ¶
View Source
const ( StandardSubformat SubformatType = iota SubformatTypeFirst = StandardSubformat SubformatTypeLast = StandardSubformat )
View Source
const (
Unknown sampleFormat = -1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access int
const ( MmapInterleaved Access = iota MmapNonInterleaved MmapComplex RWInterleaved RWNonInterleaved AccessTypeLast = RWNonInterleaved AccessTypeFirst = MmapInterleaved )
type Card ¶
type Card struct {
Path string
ID string
Name string
Driver string
Index int
Version Version
// contains filtered or unexported fields
}
func Open ¶
Open a handle to a card by number.
Example ¶
card, err := Open(0)
if err != nil {
panic("error opening card 0: " + err.Error())
}
println("opened card ", card)
func OpenDriver ¶
OpenDriver opens a handle to a card by driver name.
Example ¶
card, err := OpenDriver("snd_bcm2835")
if err != nil {
panic("error opening snd_bcm2835: " + err.Error())
}
println("opened card ", card)
type Device ¶
type DeviceType ¶
type DeviceType int
const ( UnknownDeviceType DeviceType = iota PCM )
func (DeviceType) String ¶
func (t DeviceType) String() string
type SubformatType ¶
type SubformatType int
func (SubformatType) String ¶
func (f SubformatType) String() string
Click to show internal directories.
Click to hide internal directories.