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

@@ -227,9 +227,9 @@ sndfile_stream_decode(DecoderClient &client, InputStream &is)
if (num_frames <= 0)
break;
cmd = client.SubmitData(is,
buffer, num_frames * frame_size,
0);
cmd = client.SubmitAudio(is,
std::span{buffer, num_frames * frame_size},
0);
if (cmd == DecoderCommand::SEEK) {
sf_count_t c = client.GetSeekFrame();
c = sf_seek(sf, c, SEEK_SET);