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

@@ -216,7 +216,7 @@ gme_file_decode(DecoderClient &client, Path path_fs)
return;
}
cmd = client.SubmitData(nullptr, buf, sizeof(buf), 0);
cmd = client.SubmitAudio(nullptr, std::span{buf}, 0);
if (cmd == DecoderCommand::SEEK) {
unsigned where = client.GetSeekTime().ToMS();
gme_err = gme_seek(emu, where);