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

@@ -234,9 +234,12 @@ wavpack_decode(DecoderClient &client, WavpackContext *wpc, bool can_seek)
int bitrate = lround(WavpackGetInstantBitrate(wpc) / 1000);
format_samples(buffer, n_frames * audio_format.channels);
cmd = client.SubmitData(nullptr, buffer,
n_frames * output_frame_size,
bitrate);
cmd = client.SubmitAudio(nullptr,
{
(const std::byte *)buffer,
n_frames * output_frame_size,
},
bitrate);
}
}