feat(audio): aset suara final Kenney CC0 menggantikan placeholder (T-0.6)
This commit is contained in:
1 parent
e5d5dba023
commit
890c3ea46e
12 files changed
+44
-3
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
Interface Sounds (1.0)
|
||||
|
||||
Created/distributed by Kenney (www.kenney.nl)
|
||||
Creation date: 11-02-2020
|
||||
|
||||
------------------------------
|
||||
|
||||
License: (Creative Commons Zero, CC0)
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
This content is free to use in personal, educational and commercial projects.␍
|
||||
Support us by crediting Kenney or www.kenney.nl (this is not mandatory)
|
||||
|
||||
------------------------------
|
||||
|
||||
Donate: http://support.kenney.nl
|
||||
Patreon: http://patreon.com/kenney/
|
||||
|
||||
Follow on Twitter for updates:
|
||||
http://twitter.com/KenneyNL
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,20 @@
|
||||
package audio
|
||||
|
||||
import "testing"
|
||||
|
||||
// TestLoadSounds memastikan seluruh aset embedded valid: WAV mono/16-bit/44100
|
||||
// dan PCM tidak kosong. Gagal di sini = aset ketimpa atau berubah format.
|
||||
func TestLoadSounds(t *testing.T) {
|
||||
sounds, err := loadSounds()
|
||||
if err != nil {
|
||||
t.Fatalf("loadSounds: %v", err)
|
||||
}
|
||||
if len(sounds) != len(allEvents) {
|
||||
t.Fatalf("jumlah suara termuat: %d, harusnya %d", len(sounds), len(allEvents))
|
||||
}
|
||||
for _, ev := range allEvents {
|
||||
if len(sounds[ev]) == 0 {
|
||||
t.Errorf("%s: PCM kosong", ev)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user