diff options
author | smf- <smf-@users.noreply.github.com> | 2018-08-09 20:32:49 +0100 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2018-08-09 20:34:19 +0100 |
commit | 2c31275f79bf542301743b0af9e3a95665e6b613 (patch) | |
tree | 358de17b8a4087396cd9adce4620e0e913091ae8 | |
parent | 3b48aed0bf4b94474a0f848b5e4e2d536343bfd6 (diff) |
sound_stream::sample_rate() was broken since adding support for setting a zero rate, nothing appears to rely on it (nw)
-rw-r--r-- | src/emu/sound.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/sound.h b/src/emu/sound.h index 37c3492588a..b429326264c 100644 --- a/src/emu/sound.h +++ b/src/emu/sound.h @@ -97,7 +97,7 @@ public: // getters sound_stream *next() const { return m_next; } device_t &device() const { return m_device; } - int sample_rate() const { return (m_new_sample_rate != 0) ? m_new_sample_rate : m_sample_rate; } + int sample_rate() const { return (m_new_sample_rate != 0xffffffff) ? m_new_sample_rate : m_sample_rate; } attotime sample_time() const; attotime sample_period() const { return attotime(0, m_attoseconds_per_sample); } int input_count() const { return m_input.size(); } |