add vorbis
This commit is contained in:
parent
f69a8b3132
commit
feb686e155
14 changed files with 5882 additions and 26 deletions
|
|
@ -8,7 +8,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* sound.c */
|
||||
/* src/sound/sound.c */
|
||||
GSDECL GSSound GSSoundNew(GSSoundEngine sengine);
|
||||
GSDECL GSSound GSSoundOpen(GSSoundEngine sengine, const char* path);
|
||||
GSDECL void GSSoundClose(GSSound sound);
|
||||
|
|
@ -19,11 +19,13 @@ GSDECL void GSSoundPause(GSSound audio);
|
|||
GSDECL void GSSoundLock(GSSound sound);
|
||||
GSDECL void GSSoundUnlock(GSSound sound);
|
||||
|
||||
/* snd_xm.c */
|
||||
/* you can guess where they are */
|
||||
GSDECL GSSound GSSoundOpenXM(GSSoundEngine sengine, GSFile file);
|
||||
|
||||
/* snd_mod.c */
|
||||
GSDECL GSSound GSSoundOpenMOD(GSSoundEngine sengine, GSFile file);
|
||||
GSDECL GSSound GSSoundOpenMP3(GSSoundEngine sengine, GSFile file);
|
||||
GSDECL GSSound GSSoundOpenFLAC(GSSoundEngine sengine, GSFile file);
|
||||
GSDECL GSSound GSSoundOpenVorbis(GSSoundEngine sengine, GSFile file);
|
||||
GSDECL GSSound GSSoundOpenWAV(GSSoundEngine sengine, GSFile file);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -179,8 +179,11 @@ struct _GSSound {
|
|||
|
||||
GSFile file;
|
||||
|
||||
void* opaque1;
|
||||
void* opaque2;
|
||||
void* opaque1;
|
||||
void* opaque2;
|
||||
int from_samplerate;
|
||||
ma_resampler_config resampler_config;
|
||||
ma_resampler resampler;
|
||||
|
||||
GSSoundResetCallback reset;
|
||||
GSSoundReadCallback read;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue