RACE/sound.h

56 lines
1.3 KiB
C
Raw Normal View History

2020-01-07 11:22:21 +00:00
/*---------------------------------------------------------------------------
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. See also the license.txt file for
* additional informations.
*---------------------------------------------------------------------------
*/
2016-10-14 17:01:29 +00:00
2020-01-07 11:22:21 +00:00
/* sound.h: interface for the sound class. */
2016-10-14 17:01:29 +00:00
2020-10-03 21:57:24 +00:00
#ifndef AFX_SOUND_H
#define AFX_SOUND_H
2016-10-14 17:01:29 +00:00
2020-10-03 21:57:24 +00:00
#include "types.h"
2016-10-14 17:01:29 +00:00
#include "main.h"
2020-10-03 22:07:12 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2020-01-07 11:51:09 +00:00
int initSound(void);
void soundCleanup(void);
2016-10-14 17:01:29 +00:00
2020-01-07 11:51:09 +00:00
void setHwnd(void);
2016-10-14 17:01:29 +00:00
2020-01-07 11:22:21 +00:00
/* stolen MAME things */
2016-10-14 17:01:29 +00:00
int osd_start_audio_stream(int stereo);
void osd_stop_audio_stream(void);
int osd_update_audio_stream(short *buffer);
void osd_set_mastervolume(int _attenuation);
int osd_get_mastervolume(void);
2020-01-07 11:22:21 +00:00
/* General sound system functions */
2016-10-14 17:01:29 +00:00
void soundStep(int cycles);
2020-01-07 11:22:21 +00:00
void soundOutput(void);
2016-10-14 17:01:29 +00:00
#define NUM_CHANNELS 32
2020-01-07 11:22:21 +00:00
/* Gameboy sound system */
void gbSoundInit(void);
void gbSoundUpdate(void);
2016-10-14 17:01:29 +00:00
void gbSoundWrite(int reg, unsigned char data);
2020-01-07 11:22:21 +00:00
/* Neogeo pocket sound functions */
void ngpSoundStart(void);
void ngpSoundExecute(void);
void ngpSoundOff(void);
void ngpSoundInterrupt(void);
2016-10-14 17:01:29 +00:00
2020-10-03 22:07:12 +00:00
#ifdef __cplusplus
}
#endif
2020-10-03 21:57:24 +00:00
#endif /* !defined(AFX_SOUND_H) */