diff options
author | 2020-10-19 09:22:43 -0700 | |
---|---|---|
committer | 2020-10-19 09:22:43 -0700 | |
commit | 009a5d3d07224a1de30931d1cf89de06d1f23598 (patch) | |
tree | 110d90a72da4c3b2ef4d1813884a50e218df2c0a | |
parent | 68e16955ddafa30f85334431cb762ec02e7819d8 (diff) |
07765: Sample rate now saved as part of the stream
-rw-r--r-- | src/emu/sound.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp index eaf640a3e57..3d235ab8151 100644 --- a/src/emu/sound.cpp +++ b/src/emu/sound.cpp @@ -595,6 +595,7 @@ sound_stream::sound_stream(device_t &device, u32 inputs, u32 outputs, u32 output // create a unique tag for saving std::string state_tag = string_format("%d", m_device.machine().sound().unique_id()); auto &save = m_device.machine().save(); + save.save_item(&m_device, "stream.sample_rate", state_tag.c_str(), 0, NAME(m_sample_rate)); save.register_postload(save_prepost_delegate(FUNC(sound_stream::postload), this)); // initialize all inputs |