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

@@ -241,9 +241,9 @@ mpcdec_decode(DecoderClient &client, InputStream &is)
long bit_rate = unsigned(frame.bits) * audio_format.sample_rate
/ (1000 * frame.samples);
cmd = client.SubmitData(is,
chunk, ret * sizeof(chunk[0]),
bit_rate);
cmd = client.SubmitAudio(is,
std::span{chunk, ret},
bit_rate);
} while (cmd != DecoderCommand::STOP);
}