From d0f1c15a0f6df2dd51a754cb46e6175b7079c8f2 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Mon, 14 Apr 2025 11:31:53 +0200 Subject: New sound infrastructure. Should be added soon: - mute - speaker/microphone resampling To be added a little later: - compression - reverb Needs to be added by someone else: - coreaudio - direct - portaudio - xaudio2 - js --- docs/source/luascript/ref-common.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/source/luascript/ref-common.rst') diff --git a/docs/source/luascript/ref-common.rst b/docs/source/luascript/ref-common.rst index c08d3676621..1cc467fe82a 100644 --- a/docs/source/luascript/ref-common.rst +++ b/docs/source/luascript/ref-common.rst @@ -99,6 +99,13 @@ emu.add_machine_post_load_notifier(callback) Add a callback to receive notification after the emulated system is restored to a previously saved state. Returns a :ref:`notifier subscription `. +emu.register_sound_update(callback) + Add a callback to receive new samples that have been created. THe + samples are coming from the sound devices for which the hook + property has been set to true. The callback gets one parameter + which is a hash with device tag as key and a (channel-sized) + vector of (buffer-sized) vector of + samples in the -1..1 range. emu.print_error(message) Print an error message. emu.print_warning(message) -- cgit v1.2.3-70-g09d2