Refactor : excise LPBYTE, LPLONG

This commit is contained in:
Aaron Culliney 2015-06-07 12:01:48 -07:00
parent 8cba7de872
commit e63afea069
5 changed files with 4 additions and 6 deletions

View File

@ -22,7 +22,7 @@ typedef struct IDirectSoundBuffer {
int (*SetVolume)(void* _this, long lVolume);
int (*GetVolume)(void* _this, LPLONG lplVolume);
int (*GetVolume)(void* _this, long *lplVolume);
int (*GetCurrentPosition)(void* _this, LPDWORD lpdwCurrentPlayCursor, LPDWORD lpdwCurrentWriteCursor);

View File

@ -1918,7 +1918,7 @@ static void RegisterIoHandler(UINT uSlot, iofunction IOReadC0, iofunction IOWrit
}
#endif
void MB_InitializeIO(LPBYTE unused_pCxRomPeripheral, UINT uSlot4, UINT uSlot5)
void MB_InitializeIO(char *unused_pCxRomPeripheral, UINT uSlot4, UINT uSlot5)
{
// Mockingboard: Slot 4 & 5
// Phasor : Slot 4

View File

@ -100,7 +100,7 @@ void MB_Initialize();
void MB_Reinitialize();
void MB_Destroy();
void MB_Reset();
void MB_InitializeIO(LPBYTE pCxRomPeripheral, UINT uSlot4, UINT uSlot5);
void MB_InitializeIO(char *pCxRomPeripheral, UINT uSlot4, UINT uSlot5);
void MB_Mute();
void MB_Demute();
void MB_StartOfCpuExecute();

View File

@ -725,7 +725,7 @@ static long OpenALCreateSoundBuffer(ALBufferParamsStruct *params, ALSoundBufferS
(*soundbuf_struct)->_this = voice;
(*soundbuf_struct)->SetVolume = (int (*)(void *, long))ALSetVolume;
(*soundbuf_struct)->GetVolume = (int (*)(void *, LPLONG))ALGetVolume;
(*soundbuf_struct)->GetVolume = (int (*)(void *, long *))ALGetVolume;
(*soundbuf_struct)->GetCurrentPosition = (int (*)(void *, LPDWORD, LPDWORD))ALGetPosition;
(*soundbuf_struct)->Stop = (int (*)(void *))ALStop;
(*soundbuf_struct)->Restore = (int (*)(void *))ALRestore;

View File

@ -27,10 +27,8 @@
typedef unsigned int UINT;
typedef long *LPLONG;
typedef void *LPVOID;
typedef void *LPDVOID;
typedef char *LPBYTE;
typedef unsigned long *LPDWORD;
#if !defined(TRUE)