From 838ace388c7139d2f692758b1572138a7d8d04e2 Mon Sep 17 00:00:00 2001 From: meh Date: Wed, 14 Oct 2015 17:49:21 +0200 Subject: [PATCH] software/resampling/extensions: add inline attributes --- src/software/resampling/extensions.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/software/resampling/extensions.rs b/src/software/resampling/extensions.rs index 4feaeb5..eefb1c9 100644 --- a/src/software/resampling/extensions.rs +++ b/src/software/resampling/extensions.rs @@ -3,6 +3,7 @@ use ::{decoder, Error, ChannelLayout, frame}; use super::Context; impl frame::Audio { + #[inline] pub fn resampler(&self, format: format::Sample, channel_layout: ChannelLayout, rate: u32) -> Result { Context::get(self.format(), self.channel_layout(), self.rate(), format, channel_layout, rate) @@ -10,6 +11,7 @@ impl frame::Audio { } impl decoder::Audio { + #[inline] pub fn resampler(&self, format: format::Sample, channel_layout: ChannelLayout, rate: u32) -> Result { Context::get(self.format(), self.channel_layout(), self.rate(), format, channel_layout, rate)