diff --git a/BasiliskII/src/SDL/audio_sdl.cpp b/BasiliskII/src/SDL/audio_sdl.cpp index e35764fe..c81e0fd4 100644 --- a/BasiliskII/src/SDL/audio_sdl.cpp +++ b/BasiliskII/src/SDL/audio_sdl.cpp @@ -94,7 +94,7 @@ static bool open_sdl_audio(void) audio_spec.freq = audio_sample_rates[audio_sample_rate_index] >> 16; audio_spec.format = (audio_sample_sizes[audio_sample_size_index] == 8) ? AUDIO_U8 : AUDIO_S16MSB; audio_spec.channels = audio_channel_counts[audio_channel_count_index]; - audio_spec.samples = 4096; + audio_spec.samples = 4096 >> PrefsFindInt32("sound_buffer"); audio_spec.callback = stream_func; audio_spec.userdata = NULL; diff --git a/BasiliskII/src/prefs_items.cpp b/BasiliskII/src/prefs_items.cpp index 0b30b8c9..2c7485c2 100644 --- a/BasiliskII/src/prefs_items.cpp +++ b/BasiliskII/src/prefs_items.cpp @@ -83,6 +83,7 @@ prefs_desc common_prefs_items[] = { {"ignoresegv", TYPE_BOOLEAN, false, "ignore illegal memory accesses"}, {"host_domain", TYPE_STRING, true, "handle DNS requests for this domain on the host (slirp only)"}, {"title", TYPE_STRING, false, "window title"}, + {"sound_buffer", TYPE_INT32, false, "sound buffer length"}, {NULL, TYPE_END, false, NULL} // End of list }; diff --git a/SheepShaver/src/prefs_items.cpp b/SheepShaver/src/prefs_items.cpp index 8e1f448d..9aada63c 100644 --- a/SheepShaver/src/prefs_items.cpp +++ b/SheepShaver/src/prefs_items.cpp @@ -71,6 +71,7 @@ prefs_desc common_prefs_items[] = { {"host_domain", TYPE_STRING, true, "handle DNS requests for this domain on the host (slirp only)"}, {"redir", TYPE_STRING, true, "port forwarding for slirp"}, {"title", TYPE_STRING, false, "window title"}, + {"sound_buffer", TYPE_INT32, false, "sound buffer length"}, {NULL, TYPE_END, false, NULL} // End of list };