summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/sound/js_sound.cpp
diff options
context:
space:
mode:
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