decoder/Client: add noexcept
This commit is contained in:
@@ -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());
|
||||
|
@@ -43,19 +43,19 @@ public:
|
||||
void Ready(AudioFormat audio_format,
|
||||
bool seekable, SignedSongTime duration) override;
|
||||
DecoderCommand GetCommand() noexcept override;
|
||||
void CommandFinished() override;
|
||||
void CommandFinished() noexcept override;
|
||||
SongTime GetSeekTime() noexcept override;
|
||||
uint64_t GetSeekFrame() noexcept override;
|
||||
void SeekError() override;
|
||||
void SeekError() noexcept override;
|
||||
InputStreamPtr OpenUri(const char *uri) override;
|
||||
size_t Read(InputStream &is, void *buffer, size_t length) override;
|
||||
void SubmitTimestamp(FloatDuration t) override;
|
||||
void SubmitTimestamp(FloatDuration t) noexcept override;
|
||||
DecoderCommand SubmitData(InputStream *is,
|
||||
const void *data, size_t length,
|
||||
uint16_t kbit_rate) override;
|
||||
DecoderCommand SubmitTag(InputStream *is, Tag &&tag) override ;
|
||||
void SubmitReplayGain(const ReplayGainInfo *replay_gain_info) override;
|
||||
void SubmitMixRamp(MixRampInfo &&mix_ramp) override;
|
||||
uint16_t kbit_rate) noexcept override;
|
||||
DecoderCommand SubmitTag(InputStream *is, Tag &&tag) noexcept override;
|
||||
void SubmitReplayGain(const ReplayGainInfo *replay_gain_info) noexcept override;
|
||||
void SubmitMixRamp(MixRampInfo &&mix_ramp) noexcept override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user