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

@@ -94,7 +94,9 @@ wildmidi_output(DecoderClient &client, midi *wm)
if (length <= 0)
return DecoderCommand::STOP;
return client.SubmitData(nullptr, buffer, length, 0);
return client.SubmitAudio(nullptr,
std::span{buffer, std::size_t(length)},
0);
}
static void