sound_stream::sample_rate() was broken since adding support for setting a zero rate, nothing appears to rely on it (nw)

This commit is contained in:
smf- 2018-08-09 20:32:49 +01:00
parent 3b48aed0bf
commit 2c31275f79

View File

@ -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(); }