Skip to content

Commit f42b8ac

Browse files
authored
sdl_audio: Remove buffer samples hint. (shadps4-emu#2038)
1 parent 78a32a3 commit f42b8ac

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/core/libraries/audio/sdl_audio.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ class SDLPortBackend : public PortBackend {
1515
public:
1616
explicit SDLPortBackend(const PortOut& port)
1717
: frame_size(port.format_info.FrameSize()), guest_buffer_size(port.BufferSize()) {
18-
// We want the latency for delivering frames out to be as small as possible,
19-
// so set the sample frames hint to the number of frames per buffer.
20-
const auto samples_num_str = std::to_string(port.buffer_frames);
21-
if (!SDL_SetHint(SDL_HINT_AUDIO_DEVICE_SAMPLE_FRAMES, samples_num_str.c_str())) {
22-
LOG_WARNING(Lib_AudioOut, "Failed to set SDL audio sample frames hint to {}: {}",
23-
samples_num_str, SDL_GetError());
24-
}
2518
const SDL_AudioSpec fmt = {
2619
.format = port.format_info.is_float ? SDL_AUDIO_F32LE : SDL_AUDIO_S16LE,
2720
.channels = port.format_info.num_channels,

0 commit comments

Comments
 (0)