Commit cdaf504a authored by Max Kellermann's avatar Max Kellermann

decoder/Opus: make internal methods inline

parent 9fb5aad1
...@@ -102,7 +102,7 @@ MPDOpusDecoder::~MPDOpusDecoder() ...@@ -102,7 +102,7 @@ MPDOpusDecoder::~MPDOpusDecoder()
ogg_stream_clear(&os); ogg_stream_clear(&os);
} }
enum decoder_command inline enum decoder_command
MPDOpusDecoder::HandlePage(ogg_page &page) MPDOpusDecoder::HandlePage(ogg_page &page)
{ {
const auto page_serialno = ogg_page_serialno(&page); const auto page_serialno = ogg_page_serialno(&page);
...@@ -124,7 +124,7 @@ MPDOpusDecoder::HandlePage(ogg_page &page) ...@@ -124,7 +124,7 @@ MPDOpusDecoder::HandlePage(ogg_page &page)
return DECODE_COMMAND_NONE; return DECODE_COMMAND_NONE;
} }
enum decoder_command inline enum decoder_command
MPDOpusDecoder::HandlePacket(const ogg_packet &packet) MPDOpusDecoder::HandlePacket(const ogg_packet &packet)
{ {
if (packet.e_o_s) if (packet.e_o_s)
...@@ -141,7 +141,7 @@ MPDOpusDecoder::HandlePacket(const ogg_packet &packet) ...@@ -141,7 +141,7 @@ MPDOpusDecoder::HandlePacket(const ogg_packet &packet)
return HandleAudio(packet); return HandleAudio(packet);
} }
enum decoder_command inline enum decoder_command
MPDOpusDecoder::HandleBOS(const ogg_packet &packet) MPDOpusDecoder::HandleBOS(const ogg_packet &packet)
{ {
assert(packet.b_o_s); assert(packet.b_o_s);
...@@ -189,7 +189,7 @@ MPDOpusDecoder::HandleBOS(const ogg_packet &packet) ...@@ -189,7 +189,7 @@ MPDOpusDecoder::HandleBOS(const ogg_packet &packet)
return decoder_get_command(decoder); return decoder_get_command(decoder);
} }
enum decoder_command inline enum decoder_command
MPDOpusDecoder::HandleTags(const ogg_packet &packet) MPDOpusDecoder::HandleTags(const ogg_packet &packet)
{ {
struct tag *tag = tag_new(); struct tag *tag = tag_new();
...@@ -205,7 +205,7 @@ MPDOpusDecoder::HandleTags(const ogg_packet &packet) ...@@ -205,7 +205,7 @@ MPDOpusDecoder::HandleTags(const ogg_packet &packet)
return cmd; return cmd;
} }
enum decoder_command inline enum decoder_command
MPDOpusDecoder::HandleAudio(const ogg_packet &packet) MPDOpusDecoder::HandleAudio(const ogg_packet &packet)
{ {
assert(opus_decoder != nullptr); assert(opus_decoder != nullptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment