summaryrefslogtreecommitdiffstatshomepage
path: root/docs/source/luascript/ref-common.rst
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2025-04-14 11:31:53 +0200
committer Olivier Galibert <galibert@pobox.com>2025-04-27 22:23:20 +0200
commitd0f1c15a0f6df2dd51a754cb46e6175b7079c8f2 (patch)
treebe35c94340442af08c316a8679089ee68e119fac /docs/source/luascript/ref-common.rst
parentec636faeba5c5841c5a4a35b7c9dc2f06a00f538 (diff)
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
Diffstat (limited to 'docs/source/luascript/ref-common.rst')
-rw-r--r--docs/source/luascript/ref-common.rst7
1 files changed, 7 insertions, 0 deletions
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 <luascript-ref-notifiersub>`.
+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)