decoder/Client: add Submit methods

Replaces decoder_data() and others.
This commit is contained in:
Max Kellermann
2016-11-18 08:27:30 +01:00
parent 47a0f46ce8
commit a88040e4d5
29 changed files with 214 additions and 228 deletions

View File

@@ -160,9 +160,9 @@ mod_decode(DecoderClient &client, InputStream &is)
if (ret <= 0)
break;
cmd = decoder_data(client, nullptr,
audio_buffer, ret,
0);
cmd = client.SubmitData(nullptr,
audio_buffer, ret,
0);
if (cmd == DecoderCommand::SEEK) {
ModPlug_Seek(f, client.GetSeekTime().ToMS());