decoder/Client: add noexcept

This commit is contained in:
Max Kellermann
2019-04-05 08:47:43 +02:00
parent 61e5828790
commit 8006911a1f
7 changed files with 47 additions and 47 deletions

@ -48,7 +48,7 @@ DumpDecoderClient::GetCommand() noexcept
}
void
DumpDecoderClient::CommandFinished()
DumpDecoderClient::CommandFinished() noexcept
{
}
@ -65,7 +65,7 @@ DumpDecoderClient::GetSeekFrame() noexcept
}
void
DumpDecoderClient::SeekError()
DumpDecoderClient::SeekError() noexcept
{
}
@ -86,14 +86,14 @@ DumpDecoderClient::Read(InputStream &is, void *buffer, size_t length)
}
void
DumpDecoderClient::SubmitTimestamp(gcc_unused FloatDuration t)
DumpDecoderClient::SubmitTimestamp(gcc_unused FloatDuration t) noexcept
{
}
DecoderCommand
DumpDecoderClient::SubmitData(gcc_unused InputStream *is,
const void *data, size_t datalen,
gcc_unused uint16_t kbit_rate)
gcc_unused uint16_t kbit_rate) noexcept
{
if (kbit_rate != prev_kbit_rate) {
prev_kbit_rate = kbit_rate;
@ -106,7 +106,7 @@ DumpDecoderClient::SubmitData(gcc_unused InputStream *is,
DecoderCommand
DumpDecoderClient::SubmitTag(gcc_unused InputStream *is,
Tag &&tag)
Tag &&tag) noexcept
{
fprintf(stderr, "TAG: duration=%f\n", tag.duration.ToDoubleS());
@ -117,7 +117,7 @@ DumpDecoderClient::SubmitTag(gcc_unused InputStream *is,
}
static void
DumpReplayGainTuple(const char *name, const ReplayGainTuple &tuple)
DumpReplayGainTuple(const char *name, const ReplayGainTuple &tuple) noexcept
{
if (tuple.IsDefined())
fprintf(stderr, "replay_gain[%s]: gain=%f peak=%f\n",
@ -125,21 +125,21 @@ DumpReplayGainTuple(const char *name, const ReplayGainTuple &tuple)
}
static void
DumpReplayGainInfo(const ReplayGainInfo &info)
DumpReplayGainInfo(const ReplayGainInfo &info) noexcept
{
DumpReplayGainTuple("album", info.album);
DumpReplayGainTuple("track", info.track);
}
void
DumpDecoderClient::SubmitReplayGain(const ReplayGainInfo *rgi)
DumpDecoderClient::SubmitReplayGain(const ReplayGainInfo *rgi) noexcept
{
if (rgi != nullptr)
DumpReplayGainInfo(*rgi);
}
void
DumpDecoderClient::SubmitMixRamp(gcc_unused MixRampInfo &&mix_ramp)
DumpDecoderClient::SubmitMixRamp(gcc_unused MixRampInfo &&mix_ramp) noexcept
{
fprintf(stderr, "MixRamp: start='%s' end='%s'\n",
mix_ramp.GetStart(), mix_ramp.GetEnd());