diff options
author | 2025-04-28 12:54:29 +0200 | |
---|---|---|
committer | 2025-04-28 12:54:29 +0200 | |
commit | f68b2d87a12020eb3c3306411b3b88b889d8fe55 (patch) | |
tree | 119cfdbce050d14211232de8405f8ba5625df745 /docs/source/luascript | |
parent | 57dad8563bbc45d854fe135acbe13aa229b06846 (diff) |
sound docs: small corrections after doing a quick read
Diffstat (limited to 'docs/source/luascript')
-rw-r--r-- | docs/source/luascript/ref-common.rst | 11 | ||||
-rw-r--r-- | docs/source/luascript/ref-devices.rst | 6 |
2 files changed, 8 insertions, 9 deletions
diff --git a/docs/source/luascript/ref-common.rst b/docs/source/luascript/ref-common.rst index 1cc467fe82a..6a7c735951c 100644 --- a/docs/source/luascript/ref-common.rst +++ b/docs/source/luascript/ref-common.rst @@ -100,12 +100,11 @@ emu.add_machine_post_load_notifier(callback) 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. + 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) diff --git a/docs/source/luascript/ref-devices.rst b/docs/source/luascript/ref-devices.rst index 23820deedef..fe25e0b0591 100644 --- a/docs/source/luascript/ref-devices.rst +++ b/docs/source/luascript/ref-devices.rst @@ -633,7 +633,7 @@ Sound device interface --------------------- Wraps MAME’s ``device_sound_interface`` class which is a mix-in implemented by -devices that inputs and/or ouputs sound. +devices that input and/or output sound. Instantiation ~~~~~~~~~~~~~ @@ -659,11 +659,11 @@ sound.speaker (read-only) sound.io_positions[] (read-only) Non-empty only for microphones and speakers, indicates the positions of - the inputs or outputs as (x, y, z) coordinates (f.i. [-0.2, 0.0, 1.0]) + the inputs or outputs as (x, y, z) coordinates (e.g. [-0.2, 0.0, 1.0]) sound.io_names[] (read-only) Non-empty only for microphones and speakers, indicates the positions of - the inputs or outputs as strings (f.i. Front Left) + the inputs or outputs as strings (e.g. Front Left) sound.hook A boolean indicating whether to tap the output samples of this device in |