summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
authorGravatarGravatar feos <feos-theos@yandex.ru>2019-09-24 23:46:50 +0300
committerGravatarGravatar feos <feos-theos@yandex.ru>2019-09-24 23:48:08 +0300
commit66234b509ce98b26ae776f99ae1f4910282f1557 (patch)
treebff49aa5a425ea50b317b02e9604f5f0d09d1cc1 /src/emu
parentec4b8b2fa4db449ac7e2a683db953e93026c04cc (diff)
callback after sound update has generated new samples
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/main.h1
-rw-r--r--src/emu/sound.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/main.h b/src/emu/main.h
index e5b0c845942..a62457a1c75 100644
--- a/src/emu/main.h
+++ b/src/emu/main.h
@@ -60,6 +60,7 @@ public:
static void draw_user_interface(running_machine& machine);
static void periodic_check();
static bool frame_hook();
+ static void sound_hook();
static void layout_file_cb(util::xml::data_node const &layout);
static bool standalone();
};
diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp
index 3ad10c6208d..805a6920fed 100644
--- a/src/emu/sound.cpp
+++ b/src/emu/sound.cpp
@@ -1152,6 +1152,9 @@ void sound_manager::update(void *ptr, int param)
for (auto &stream : m_stream_list)
stream->apply_sample_rate_changes();
+ // notify that new samples have been generated
+ emulator_info::sound_hook();
+
g_profiler.stop();
}