decoder/Bridge: add `noexcept`
This commit is contained in:
parent
8006911a1f
commit
6be3c99876
|
@ -43,7 +43,7 @@ DecoderBridge::DecoderBridge(DecoderControl &_dc, bool _initial_seek_pending,
|
||||||
initial_seek_pending(_initial_seek_pending),
|
initial_seek_pending(_initial_seek_pending),
|
||||||
song_tag(std::move(_tag)) {}
|
song_tag(std::move(_tag)) {}
|
||||||
|
|
||||||
DecoderBridge::~DecoderBridge()
|
DecoderBridge::~DecoderBridge() noexcept
|
||||||
{
|
{
|
||||||
/* caller must flush the chunk */
|
/* caller must flush the chunk */
|
||||||
assert(current_chunk == nullptr);
|
assert(current_chunk == nullptr);
|
||||||
|
@ -114,7 +114,7 @@ DecoderBridge::GetChunk() noexcept
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
DecoderBridge::FlushChunk()
|
DecoderBridge::FlushChunk() noexcept
|
||||||
{
|
{
|
||||||
assert(!seeking);
|
assert(!seeking);
|
||||||
assert(!initial_seek_running);
|
assert(!initial_seek_running);
|
||||||
|
@ -131,7 +131,7 @@ DecoderBridge::FlushChunk()
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
DecoderBridge::PrepareInitialSeek()
|
DecoderBridge::PrepareInitialSeek() noexcept
|
||||||
{
|
{
|
||||||
assert(dc.pipe != nullptr);
|
assert(dc.pipe != nullptr);
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ DecoderBridge::LockGetVirtualCommand() noexcept
|
||||||
}
|
}
|
||||||
|
|
||||||
DecoderCommand
|
DecoderCommand
|
||||||
DecoderBridge::DoSendTag(const Tag &tag)
|
DecoderBridge::DoSendTag(const Tag &tag) noexcept
|
||||||
{
|
{
|
||||||
if (current_chunk != nullptr) {
|
if (current_chunk != nullptr) {
|
||||||
/* there is a partial chunk - flush it, we want the
|
/* there is a partial chunk - flush it, we want the
|
||||||
|
|
|
@ -109,7 +109,7 @@ public:
|
||||||
DecoderBridge(DecoderControl &_dc, bool _initial_seek_pending,
|
DecoderBridge(DecoderControl &_dc, bool _initial_seek_pending,
|
||||||
std::unique_ptr<Tag> _tag) noexcept;
|
std::unique_ptr<Tag> _tag) noexcept;
|
||||||
|
|
||||||
~DecoderBridge();
|
~DecoderBridge() noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Should be read operation be cancelled? That is the case when the
|
* Should be read operation be cancelled? That is the case when the
|
||||||
|
@ -133,7 +133,7 @@ public:
|
||||||
*
|
*
|
||||||
* Caller must not lock the #DecoderControl object.
|
* Caller must not lock the #DecoderControl object.
|
||||||
*/
|
*/
|
||||||
void FlushChunk();
|
void FlushChunk() noexcept;
|
||||||
|
|
||||||
/* virtual methods from DecoderClient */
|
/* virtual methods from DecoderClient */
|
||||||
void Ready(AudioFormat audio_format,
|
void Ready(AudioFormat audio_format,
|
||||||
|
@ -158,7 +158,7 @@ private:
|
||||||
* Checks if we need an "initial seek". If so, then the
|
* Checks if we need an "initial seek". If so, then the
|
||||||
* initial seek is prepared, and the function returns true.
|
* initial seek is prepared, and the function returns true.
|
||||||
*/
|
*/
|
||||||
bool PrepareInitialSeek();
|
bool PrepareInitialSeek() noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current decoder command. May return a
|
* Returns the current decoder command. May return a
|
||||||
|
@ -172,7 +172,7 @@ private:
|
||||||
* Sends a #Tag as-is to the #MusicPipe. Flushes the current
|
* Sends a #Tag as-is to the #MusicPipe. Flushes the current
|
||||||
* chunk (DecoderBridge::chunk) if there is one.
|
* chunk (DecoderBridge::chunk) if there is one.
|
||||||
*/
|
*/
|
||||||
DecoderCommand DoSendTag(const Tag &tag);
|
DecoderCommand DoSendTag(const Tag &tag) noexcept;
|
||||||
|
|
||||||
bool UpdateStreamTag(InputStream *is) noexcept;
|
bool UpdateStreamTag(InputStream *is) noexcept;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue