diff --git a/test_audio_files/tada.mp3 b/test_audio_files/tada.mp3 new file mode 100755 index 0000000..fb235e1 Binary files /dev/null and b/test_audio_files/tada.mp3 differ diff --git a/wavy_test.go b/wavy_test.go index 1e2172a..fd8bb20 100755 --- a/wavy_test.go +++ b/wavy_test.go @@ -101,6 +101,7 @@ func NewSineWave(freq float64, duration time.Duration) *SineWave { func TestSound(t *testing.T) { fatihaFilepath := "./test_audio_files/Fatiha.mp3" + tadaFilepath := "./test_audio_files/tada.mp3" const fatihaLenMS = 55484 //Streaming @@ -156,4 +157,12 @@ func TestSound(t *testing.T) { t.Errorf("Expected time to be %dms but got %dms in memory sound\n", fatihaLenMS, totalTime.Milliseconds()) return } + + //Memory 'tada.mp3' + s, err = wavy.NewSoundMem(tadaFilepath, wavy.SampleRate_44100, wavy.SoundChannelCount_2, wavy.SoundBitDepth_2) + if err != nil { + t.Errorf("Failed to load memory sound with path '%s'. Err: %s\n", tadaFilepath, err) + return + } + }