Documentation ¶
Overview ¶
Package wav is direct WAV filo I/O
Package wav is direct WAV filo I/O
Package wav is direct WAV filo I/O
Package wav is direct WAV filo I/O
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureOutput ¶
func OutputNext ¶
func OutputStart ¶
func TeardownOutput ¶
func TeardownOutput()
Types ¶
type Format ¶
type Format struct { SampleFormat SampleFormat NumChannels uint16 SampleRate uint32 ByteRate uint32 BlockAlign uint16 BitsPerSample uint16 }
the Format struct must be in the exact order according to WAV specifications, such that a binary.Read(...) can assign the WAV specified "fmt" header bytes to the correct Format properties.
func FormatFromSpec ¶
type Reader ¶
type Reader struct { Format *Format AudioFormat spec.AudioFormat *Data // contains filtered or unexported fields }
type SampleFormat ¶
type SampleFormat uint16
const ( AudioFormatLinearPCM SampleFormat = 0x0001 AudioFormatIEEEFloat SampleFormat = 0x0003 )
Click to show internal directories.
Click to hide internal directories.