decoder/Client: pass std::span to SubmitData()
This commit is contained in:
@@ -71,9 +71,9 @@ adplug_file_decode(DecoderClient &client, Path path_fs)
|
||||
int16_t buffer[2048];
|
||||
constexpr unsigned frames_per_buffer = std::size(buffer) / 2;
|
||||
opl.update(buffer, frames_per_buffer);
|
||||
cmd = client.SubmitData(nullptr,
|
||||
buffer, sizeof(buffer),
|
||||
0);
|
||||
cmd = client.SubmitAudio(nullptr,
|
||||
std::span{buffer},
|
||||
0);
|
||||
} while (cmd == DecoderCommand::NONE);
|
||||
|
||||
delete player;
|
||||
|
Reference in New Issue
Block a user