summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/qsound.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/qsound.h')
-rw-r--r--src/emu/sound/qsound.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/emu/sound/qsound.h b/src/emu/sound/qsound.h
index 5a6f78b28ca..bfd7abfe344 100644
--- a/src/emu/sound/qsound.h
+++ b/src/emu/sound/qsound.h
@@ -11,7 +11,7 @@
#define QSOUND_CLOCK 4000000 /* default 4MHz clock */
-#define QSOUND_CLOCKDIV 166 /* Clock divider */
+#define QSOUND_CLOCKDIV 166 /* Clock divider */
#define QSOUND_CHANNELS 16
typedef INT8 QSOUND_SRC_SAMPLE; /* 8 bit source ROM samples */
typedef stream_sample_t QSOUND_SAMPLE;
@@ -35,20 +35,20 @@ typedef stream_sample_t QSOUND_SAMPLE;
struct QSOUND_CHANNEL
{
- INT32 bank; // bank (x16)
- INT32 address; // start address
- INT32 pitch; // pitch
- INT32 reg3; // unknown (always 0x8000)
- INT32 loop; // loop address
- INT32 end; // end address
- INT32 vol; // master volume
- INT32 pan; // Pan value
- INT32 reg9; // unknown
+ INT32 bank; // bank (x16)
+ INT32 address; // start address
+ INT32 pitch; // pitch
+ INT32 reg3; // unknown (always 0x8000)
+ INT32 loop; // loop address
+ INT32 end; // end address
+ INT32 vol; // master volume
+ INT32 pan; // Pan value
+ INT32 reg9; // unknown
/* Work variables */
- INT32 key; // Key on / key off
- INT32 lvol; // left volume
- INT32 rvol; // right volume
+ INT32 key; // Key on / key off
+ INT32 lvol; // left volume
+ INT32 rvol; // right volume
INT32 lastdt; // last sample value
INT32 offset; // current offset counter
};
@@ -57,7 +57,7 @@ struct QSOUND_CHANNEL
// ======================> qsound_device
class qsound_device : public device_t,
- public device_sound_interface
+ public device_sound_interface
{
public:
qsound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
@@ -79,14 +79,14 @@ private:
void qsound_set_command(int data, int value);
private:
- int m_data; // register latch data
- sound_stream *m_stream; // Audio stream
+ int m_data; // register latch data
+ sound_stream *m_stream; // Audio stream
QSOUND_CHANNEL m_channel[QSOUND_CHANNELS];
UINT32 m_sample_rom_length;
- QSOUND_SRC_SAMPLE *m_sample_rom; // Q sound sample ROM
+ QSOUND_SRC_SAMPLE *m_sample_rom; // Q sound sample ROM
- int m_pan_table[33]; // Pan volume table
- float m_frq_ratio; // Frequency ratio
+ int m_pan_table[33]; // Pan volume table
+ float m_frq_ratio; // Frequency ratio
FILE *m_fpRawDataL;
FILE *m_fpRawDataR;