summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/speaker.h
diff options
context:
space:
mode:
author Derrick Renaud <derrickr@mamedev.org>2008-08-10 02:23:43 +0000
committer Derrick Renaud <derrickr@mamedev.org>2008-08-10 02:23:43 +0000
commit4f0cddd1a5e0769fa36950278d012536aa3589f4 (patch)
tree6ae59eec143d101e23457409642bfdcd1eda7032 /src/emu/sound/speaker.h
parent317af7eba88188f9590b9d224329c383a06e29b0 (diff)
Updated src\emu\sound headers from K-S, so they use latest naming/structure and re-inclusion support. Also lowercased the handler names.
What a PITA. :) I'll have to go back and do A-J to lower case the handlers to match the new structure names I already did. Sorry Mess and other port developers, but the code should match what is stated on the official WIKI. But don't worry, I don't plan on updating anything but the sound cores.
Diffstat (limited to 'src/emu/sound/speaker.h')
-rw-r--r--src/emu/sound/speaker.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/emu/sound/speaker.h b/src/emu/sound/speaker.h
index 7a2e5fef8f8..848300d0bf3 100644
--- a/src/emu/sound/speaker.h
+++ b/src/emu/sound/speaker.h
@@ -5,14 +5,19 @@
driven by one or more output bits
**********************************************************************/
-#ifndef SPEAKER_H
-#define SPEAKER_H
+
+#pragma once
+
+#ifndef __SPEAKER_H__
+#define __SPEAKER_H__
#ifdef __cplusplus
extern "C" {
#endif
-struct Speaker_interface
+
+typedef struct _speaker_interface speaker_interface;
+struct _speaker_interface
{
int num_level; /* optional: number of levels (if not two) */
const INT16 *levels; /* optional: pointer to level lookup table */
@@ -25,5 +30,4 @@ void speaker_level_w (int which, int new_level);
#endif
-#endif
-
+#endif /* __SPEAKER_H__ */