decoder/Bridge: add noexcept
This commit is contained in:
@@ -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);
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user