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

@@ -179,7 +179,7 @@ fluidsynth_file_decode(DecoderClient &client, Path path_fs)
if (ret != 0)
break;
cmd = client.SubmitData(nullptr, buffer, sizeof(buffer), 0);
cmd = client.SubmitAudio(nullptr, std::span{buffer}, 0);
if (cmd != DecoderCommand::NONE)
break;
}