summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/scudsp/scudsp.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@users.noreply.github.com>2022-06-15 12:39:00 +0200
committer GitHub <noreply@github.com>2022-06-15 12:39:00 +0200
commitfe1e26a9fb437de24661a5cb16f82ec94cdb14fc (patch)
treeefbb9c3724d046585af9b28a09d4eaab92a490dc /src/devices/cpu/scudsp/scudsp.cpp
parentac042242b7d04fe690a79b55a3b49af711885bb8 (diff)
sound.cpp: Fix missed samples due to state save (#9917) (#9918)
* sound.cpp: Fix missed samples due to state save (#9917) The PR address #9917. A save state may occur between time slices. Sound devices through sound.cpp are updated during a timer call every 20ms. When the state is saved, these devices are not updated to the current machine time. Consequently after a state load the devices have have a "time lag" since in postload buffer end time is forced to machine time. This change will save the last buffer end time so that all outstanding samples are processed. This is a core change. I tested it on some drivers. This needs a very thorough review and I post the PR primarily to document a possible solution. * sound.cpp: use "stream.sound_stream" as module name for save_item * sound.cpp: use presave handler to store end_time()
Diffstat (limited to 'src/devices/cpu/scudsp/scudsp.cpp')
0 files changed, 0 insertions, 0 deletions