This commit is contained in:
bloeys
2022-06-25 23:58:57 +04:00
parent a9eccbcb91
commit 6afd1b7ac2

View File

@ -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()