Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.0 KiB

// mp3 support added by Killar
#ifndef MP3_H
#define MP3_H
#include "fmod.h"
#include "fmod_errors.h"
#include "windows.h"
class CMP3
{
private:
float (_stdcall * VER) (void);//AJH get fmod dll version
signed char (_stdcall * SCL) (FSOUND_STREAM *stream);
signed char (_stdcall * SOP) (int outputtype);
signed char (_stdcall * SBS) (int len_ms);
signed char (_stdcall * SDRV) (int driver);
signed char (_stdcall * INIT) (int mixrate, int maxsoftwarechannels, unsigned int flags);
FSOUND_STREAM* (_stdcall * SOF) (const char *filename, unsigned int mode,int memlength); //AJH old fmod
FSOUND_STREAM* (_stdcall * SO) (const char *filename, unsigned int mode,int offset, int memlength); //AJH use new fmod
int (_stdcall * SPLAY) (int channel, FSOUND_STREAM *stream);
void (_stdcall * CLOSE) ( void );
FSOUND_STREAM *m_Stream;
int m_iIsPlaying;
HINSTANCE m_hFMod;
public:
int Initialize();
int Shutdown();
int PlayMP3( const char *pszSong );
int PlayMP3NL( const char *pszSong );
int StopMP3();
};
extern CMP3 gMP3;
#endif