20 #include <KLocalizedString> 34 else if (rate <= 12000)
36 else if (rate <= 16000)
38 else if (rate <= 24000)
55 msg = i18n(
"One or more invalid/out of range arguments.");
57 case OPUS_BUFFER_TOO_SMALL:
58 msg = i18n(
"The mode struct passed is invalid.");
60 case OPUS_INTERNAL_ERROR:
61 msg = i18n(
"An internal error was detected.");
63 case OPUS_INVALID_PACKET:
64 msg = i18n(
"The compressed data passed is corrupted.");
66 case OPUS_UNIMPLEMENTED:
67 msg = i18n(
"Invalid/unsupported request number.");
69 case OPUS_INVALID_STATE:
70 msg = i18n(
"A decoder structure is invalid or already freed.");
73 msg = i18n(
"Out of memory");
76 msg = i18n(
"Decoder error: %1",
77 QString::fromLocal8Bit(opus_strerror(err)));
int opus_next_sample_rate(int rate)
QString opus_error(int err)