mirror of
https://github.com/bloeys/wavy.git
synced 2025-12-29 09:28:19 +00:00
Fix msg
This commit is contained in:
2
wavy.go
2
wavy.go
@ -283,7 +283,7 @@ func (s *Sound) Close() error {
|
|||||||
func CopyInMemSound(s *Sound) *Sound {
|
func CopyInMemSound(s *Sound) *Sound {
|
||||||
|
|
||||||
if s.Info.Mode != SoundMode_Memory {
|
if s.Info.Mode != SoundMode_Memory {
|
||||||
panic("only in-memory sounds can not be copied. Please use NewSoundStreaming if you want to have multiple sound objects of a streaming sound")
|
panic("only in-memory sounds can be copied. Please use NewSoundStreaming if you want to have multiple sound objects of a streaming sound")
|
||||||
}
|
}
|
||||||
|
|
||||||
d := s.Data.(*SoundBuffer).Copy()
|
d := s.Data.(*SoundBuffer).Copy()
|
||||||
|
|||||||
Reference in New Issue
Block a user