Use SoundBuffer for memory sounds

This commit is contained in:
bloeys
2022-06-25 20:13:13 +04:00
parent 6c166db5ef
commit 2e3fb46bcb
4 changed files with 176 additions and 62 deletions

36
sound_enums.go Executable file
View 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
)