mirror of
https://github.com/holub/mame
synced 2025-05-16 10:52:43 +03:00

This patch should complete the addition of static qualifiers to all MAME symbols that aren't explicitly exported. It primarily handles generated code (e.g. amspdwy.c), plus a handful of cases I'd previously missed and some new cases introduced in the last update. One interesting bit was the discovery that the 32-bit scanline routines in drawgfx.c are unused. I debated eliminating them but decided instead to just export them. Various internal drawgfx functions were conditionally removed by examining a new RAW define, although one routine (blockmove_8toN_alphaone) was determined to be dead code. While investigating constifying MESS, I came across a few core APIs that were missing const qualifiers which this patch fixes. I also consted up tx1.c while I was at it.
30 lines
572 B
C
30 lines
572 B
C
/**********************************************************************
|
|
|
|
speaker.h
|
|
Sound driver to emulate a simple speaker,
|
|
driven by one or more output bits
|
|
|
|
**********************************************************************/
|
|
#ifndef SPEAKER_H
|
|
#define SPEAKER_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct Speaker_interface
|
|
{
|
|
int num_level; /* optional: number of levels (if not two) */
|
|
const INT16 *levels; /* optional: pointer to level lookup table */
|
|
};
|
|
|
|
void speaker_level_w (int which, int new_level);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|