1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #ifndef PLAYERS_H
- #define PLAYERS_H
- #include "common.h"
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- typedef struct tagAUDIOPLAYER
- {
- #define AUDIOPLAYER_COMMONS \
- VOID (*Shutdown)(VOID*); \
- BOOL (*Play)(VOID*, INT, BOOL, FLOAT); \
- VOID (*FillBuffer)(VOID*, LPBYTE, INT)
- AUDIOPLAYER_COMMONS;
- } AUDIOPLAYER, *LPAUDIOPLAYER;
- LPAUDIOPLAYER
- RIX_Init(
- LPCSTR szFileName
- );
- #if PAL_HAS_OGG
- LPAUDIOPLAYER
- OGG_Init(
- VOID
- );
- #endif
- #if PAL_HAS_MP3
- LPAUDIOPLAYER
- MP3_Init(
- VOID
- );
- #endif
- LPAUDIOPLAYER
- SOUND_Init(
- VOID
- );
- #ifdef __cplusplus
- }
- #endif
- #endif
|