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