decoder/Client: pass std::span to SubmitData()

This commit is contained in:
Max Kellermann
2022-07-11 18:03:06 +02:00
parent 329c448d30
commit c34f6ed8c0
30 changed files with 138 additions and 116 deletions

View File

@@ -71,9 +71,9 @@ adplug_file_decode(DecoderClient &client, Path path_fs)
int16_t buffer[2048];
constexpr unsigned frames_per_buffer = std::size(buffer) / 2;
opl.update(buffer, frames_per_buffer);
cmd = client.SubmitData(nullptr,
buffer, sizeof(buffer),
0);
cmd = client.SubmitAudio(nullptr,
std::span{buffer},
0);
} while (cmd == DecoderCommand::NONE);
delete player;