mame/src/emu/sound/speaker.h
Aaron Giles 28d23853ae (From AtariAce)
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.
2007-12-26 16:55:35 +00:00

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