mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-08 12:18:49 -04:00
revert: af223e445f && 5ed7df1e68
- Needs To Be A Branch Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -125,13 +125,7 @@ void AudioRenderer::CreateSinkStreams() {
|
||||
std::string name{fmt::format("ADSP_RenderStream-{}", i)};
|
||||
streams[i] =
|
||||
sink.AcquireSinkStream(system, channels, name, ::AudioCore::Sink::StreamType::Render);
|
||||
|
||||
if (streams[i]) {
|
||||
streams[i]->SetRingSize(4);
|
||||
LOG_INFO(Service_Audio, "Created sink stream {} successfully", i);
|
||||
} else {
|
||||
LOG_ERROR(Service_Audio, "Failed to create sink stream {} - audio may be disabled", i);
|
||||
}
|
||||
streams[i]->SetRingSize(4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,12 +172,6 @@ void AudioRenderer::Main(std::stop_token stop_token) {
|
||||
|
||||
// Check this buffer is valid, as it may not be used.
|
||||
if (command_buffer.buffer != 0) {
|
||||
// Check if stream is valid before using it
|
||||
if (!streams[index]) {
|
||||
LOG_WARNING(Service_Audio, "Stream {} is null, skipping audio processing", index);
|
||||
continue;
|
||||
}
|
||||
|
||||
// If there are no remaining commands (from the previous list),
|
||||
// this is a new command list, initialize it.
|
||||
if (command_buffer.remaining_command_count == 0) {
|
||||
|
||||
Reference in New Issue
Block a user