| 596 | //------------------------------------------------------------------------------ |
| 597 | |
| 598 | static bool shouldConvertAudioFormat( |
| 599 | FileFormat::FileFormat input_format, |
| 600 | FileFormat::FileFormat output_format) |
| 601 | { |
| 602 | bool isConvertableAudioInputFormat = input_format == FileFormat::Mp3 || |
| 603 | input_format == FileFormat::Flac || |
| 604 | input_format == FileFormat::Ogg || |
| 605 | input_format == FileFormat::Opus || |
| 606 | input_format == FileFormat::Raw; |
| 607 | |
| 608 | return isConvertableAudioInputFormat && |
| 609 | FileFormat::isSupported(input_format) && |
| 610 | output_format == FileFormat::Wav; |
| 611 | } |
| 612 | |
| 613 | //------------------------------------------------------------------------------ |
| 614 | |