DecoderCommand: convert to strictly-typed enum
This commit is contained in:
@@ -258,17 +258,16 @@ dsf_decode_chunk(struct decoder *decoder, struct input_stream *is,
|
||||
|
||||
dsf_to_pcm_order(buffer, dsf_scratch_buffer, nbytes);
|
||||
|
||||
enum decoder_command cmd =
|
||||
decoder_data(decoder, is, buffer, nbytes, 0);
|
||||
const auto cmd = decoder_data(decoder, is, buffer, nbytes, 0);
|
||||
switch (cmd) {
|
||||
case DECODE_COMMAND_NONE:
|
||||
case DecoderCommand::NONE:
|
||||
break;
|
||||
|
||||
case DECODE_COMMAND_START:
|
||||
case DECODE_COMMAND_STOP:
|
||||
case DecoderCommand::START:
|
||||
case DecoderCommand::STOP:
|
||||
return false;
|
||||
|
||||
case DECODE_COMMAND_SEEK:
|
||||
case DecoderCommand::SEEK:
|
||||
|
||||
/* not implemented yet */
|
||||
decoder_seek_error(decoder);
|
||||
|
Reference in New Issue
Block a user