mirror of
https://github.com/holub/mame
synced 2025-04-27 02:33:13 +03:00
misc cleanup (nw)
This commit is contained in:
parent
8e73d35320
commit
a4b59223f7
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
// for quick and dirty debugging
|
// for quick and dirty debugging
|
||||||
#define VERBOSE 0
|
#define VERBOSE 0
|
||||||
#define LOG_OUTPUT_FUNC printf
|
#define LOG_OUTPUT_STREAM std::cerr
|
||||||
#include "logmacro.h"
|
#include "logmacro.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -11,7 +11,6 @@ class galaxian_sound_device : public device_t
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
galaxian_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
galaxian_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
||||||
galaxian_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
|
|
||||||
|
|
||||||
DECLARE_WRITE8_MEMBER( sound_w );
|
DECLARE_WRITE8_MEMBER( sound_w );
|
||||||
DECLARE_WRITE8_MEMBER( pitch_w );
|
DECLARE_WRITE8_MEMBER( pitch_w );
|
||||||
@ -22,14 +21,14 @@ public:
|
|||||||
DECLARE_WRITE8_MEMBER( lfo_freq_w );
|
DECLARE_WRITE8_MEMBER( lfo_freq_w );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
galaxian_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
|
||||||
|
|
||||||
// device-level overrides
|
// device-level overrides
|
||||||
virtual void device_start() override;
|
virtual void device_start() override;
|
||||||
virtual void device_add_mconfig(machine_config &config) override;
|
virtual void device_add_mconfig(machine_config &config) override;
|
||||||
|
|
||||||
// sound stream update overrides
|
|
||||||
// virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
|
|
||||||
|
|
||||||
required_device<discrete_device> m_discrete;
|
required_device<discrete_device> m_discrete;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// internal state
|
// internal state
|
||||||
uint8_t m_lfo_val;
|
uint8_t m_lfo_val;
|
||||||
@ -43,13 +42,9 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
// device-level overrides
|
// device-level overrides
|
||||||
virtual void device_add_mconfig(machine_config &config) override;
|
virtual void device_add_mconfig(machine_config &config) override;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_DEVICE_TYPE(GALAXIAN_SOUND, galaxian_sound_device)
|
DECLARE_DEVICE_TYPE(GALAXIAN_SOUND, galaxian_sound_device)
|
||||||
DECLARE_DEVICE_TYPE(MOONCRST_SOUND, mooncrst_sound_device)
|
DECLARE_DEVICE_TYPE(MOONCRST_SOUND, mooncrst_sound_device)
|
||||||
|
|
||||||
//DISCRETE_SOUND_EXTERN(galaxian_discrete);
|
|
||||||
//DISCRETE_SOUND_EXTERN(mooncrst_discrete);
|
|
||||||
|
|
||||||
#endif // MAME_AUDIO_GALAXIAN_H
|
#endif // MAME_AUDIO_GALAXIAN_H
|
||||||
|
Loading…
Reference in New Issue
Block a user