summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/sound/js_sound.cpp
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 /src/osd/modules/sound/js_sound.cpp
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 'src/osd/modules/sound/js_sound.cpp')
-rw-r--r--src/osd/modules/sound/js_sound.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/osd/modules/sound/js_sound.cpp b/src/osd/modules/sound/js_sound.cpp
index 7375d014141..1473ef9de2a 100644
--- a/src/osd/modules/sound/js_sound.cpp
+++ b/src/osd/modules/sound/js_sound.cpp
@@ -29,26 +29,16 @@ public:
// sound_module
- virtual void update_audio_stream(bool is_throttled, const int16_t *buffer, int samples_this_frame)
+ virtual void stream_sink_update(uint32_t, const int16_t *buffer, int samples_this_frame)
{
EM_ASM_ARGS(
{
// Forward audio stream update on to JS backend implementation.
- jsmame_update_audio_stream($0, $1);
+ jsmame_steam_update($1, $2);
},
(unsigned int)buffer,
samples_this_frame);
}
-
- virtual void set_mastervolume(int attenuation)
- {
- EM_ASM_ARGS(
- {
- // Forward volume update on to JS backend implementation.
- jsmame_set_mastervolume($0);
- },
- attenuation);
- }
};
#else // SDLMAME_EMSCRIPTEN