mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-20 05:04:53 -04:00
support mp3 (mono) for soundfx
This commit is contained in:
parent
dd23d8c989
commit
a4aa67ede9
8 changed files with 128 additions and 76 deletions
|
@ -3,19 +3,19 @@
|
|||
#include <stdio.h>
|
||||
#include "wav_mem.h"
|
||||
|
||||
const char *find_chunk(const char *wav,char *name) //TODO improve
|
||||
const char *find_chunk(const char *wav,char *name, const char *wav_end) //TODO improve
|
||||
{
|
||||
int32_t next;
|
||||
|
||||
wav+=12;
|
||||
do
|
||||
while (wav < wav_end)
|
||||
{
|
||||
if (!strncmp(name,wav,4)) return wav+4;
|
||||
wav+=4;
|
||||
memcpy(&next,wav,4);
|
||||
wav+=next+4;
|
||||
}
|
||||
while (1);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int get_chunk_size(const char *wav)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue