decoder/Bridge: add noexcept

This commit is contained in:
Max Kellermann
2019-07-05 08:35:39 +02:00
parent 94c9fafe16
commit 4650a903b4
8 changed files with 25 additions and 16 deletions

View File

@@ -29,7 +29,7 @@
void
DumpDecoderClient::Ready(const AudioFormat audio_format,
gcc_unused bool seekable,
SignedSongTime duration)
SignedSongTime duration) noexcept
{
assert(!initialized);
assert(audio_format.IsValid());
@@ -76,7 +76,7 @@ DumpDecoderClient::OpenUri(const char *uri)
}
size_t
DumpDecoderClient::Read(InputStream &is, void *buffer, size_t length)
DumpDecoderClient::Read(InputStream &is, void *buffer, size_t length) noexcept
{
try {
return is.LockRead(buffer, length);

View File

@@ -41,14 +41,15 @@ public:
/* virtual methods from DecoderClient */
void Ready(AudioFormat audio_format,
bool seekable, SignedSongTime duration) override;
bool seekable, SignedSongTime duration) noexcept override;
DecoderCommand GetCommand() noexcept override;
void CommandFinished() noexcept override;
SongTime GetSeekTime() noexcept override;
uint64_t GetSeekFrame() noexcept override;
void SeekError() noexcept override;
InputStreamPtr OpenUri(const char *uri) override;
size_t Read(InputStream &is, void *buffer, size_t length) override;
size_t Read(InputStream &is,
void *buffer, size_t length) noexcept override;
void SubmitTimestamp(FloatDuration t) noexcept override;
DecoderCommand SubmitData(InputStream *is,
const void *data, size_t length,