mirror of
https://github.com/bloeys/wavy.git
synced 2025-12-29 09:28:19 +00:00
Use SoundBuffer for memory sounds
This commit is contained in:
36
sound_enums.go
Executable file
36
sound_enums.go
Executable file
@ -0,0 +1,36 @@
|
||||
package wavy
|
||||
|
||||
type SoundType int
|
||||
|
||||
const (
|
||||
SoundType_Unknown SoundType = iota
|
||||
SoundType_MP3
|
||||
)
|
||||
|
||||
type SampleRate int
|
||||
|
||||
const (
|
||||
SampleRate_44100 SampleRate = 44100
|
||||
SampleRate_48000 SampleRate = 48000
|
||||
)
|
||||
|
||||
type SoundChannelCount int
|
||||
|
||||
const (
|
||||
SoundChannelCount_1 SoundChannelCount = 1
|
||||
SoundChannelCount_2 SoundChannelCount = 2
|
||||
)
|
||||
|
||||
type SoundBitDepth int
|
||||
|
||||
const (
|
||||
SoundBitDepth_1 SoundBitDepth = 1
|
||||
SoundBitDepth_2 SoundBitDepth = 2
|
||||
)
|
||||
|
||||
type SoundMode int
|
||||
|
||||
const (
|
||||
SoundMode_Streaming SoundMode = iota
|
||||
SoundMode_Memory
|
||||
)
|
||||
Reference in New Issue
Block a user