-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaudiodll.h
More file actions
37 lines (29 loc) · 1.18 KB
/
audiodll.h
File metadata and controls
37 lines (29 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef __AUDIODLL_DOT_H__
#define __AUDIODLL_DOT_H__
#include "plugin.h"
BOOL LoadAudioPlugin (char *libname);
void CloseAudioPlugin ();
void InitSNDPlugin ();
typedef struct {
HINSTANCE hinstLibAudio; // hInstance to the Video Plugin Library
// True to the specs functions
void (__cdecl* CloseDLL )( void );
void (__cdecl* DllAbout )( HWND hParent );
void (__cdecl* DllConfig )( HWND hParent );
void (__cdecl* DllTest )( HWND hParent );
void (__cdecl* ProcessAList )( void );
void (__cdecl* RomClosed )( void );
BOOL (__cdecl* InitiateAudio )( AUDIO_INFO Audio_Info );
void (__cdecl* GetDllInfo )( PLUGIN_INFO * PluginInfo );
void (__cdecl* AiDacrateChanged)( int SystemType );
void (__cdecl* AiLenChanged )( void );
DWORD (__cdecl* AiReadLength )( void );
void (__cdecl* AiUpdate )( BOOL Wait );
void (__cdecl* AiCallBack )( void );
// Support Functions...
inline BOOL Load (char* libname) {return LoadAudioPlugin(libname);} // Loads a plugin with the specified name
inline void Init () {InitSNDPlugin ();}
inline void Close () {CloseAudioPlugin();} // Closes a previously loaded plugin
} AUDIODLL;
extern AUDIODLL snddll;
#endif //__AUDIODLL_DOT_H__