mirror of
https://github.com/holub/mame
synced 2025-05-05 05:53:05 +03:00
added device_clock_changed (nw)
This commit is contained in:
parent
9810046650
commit
7ecf21cbdd
@ -267,6 +267,11 @@ void sn76496_base_device::device_start()
|
||||
register_for_save_states();
|
||||
}
|
||||
|
||||
void sn76496_base_device::device_clock_changed()
|
||||
{
|
||||
m_sound->set_sample_rate(clock()/2);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( sn76496_base_device::stereo_w )
|
||||
{
|
||||
m_sound->update();
|
||||
|
@ -48,6 +48,7 @@ protected:
|
||||
uint32_t clock);
|
||||
|
||||
virtual void device_start() override;
|
||||
virtual void device_clock_changed() override;
|
||||
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user