7 int sfx_len
[SFX_COUNT
];
10 int load_sound(char* filename
, sfx_id id
){
11 /* load a wave file */
12 reader
* r
= data_open("sounds", filename
);
22 int N
= read_int(r
) / 2;
23 float* buffer
= malloc(N
);
26 int s
= read_short(r
);
27 buffer
[i
] = s
/ 32767.0f
;
37 void play_sound(sfx_id id
){