software/resampling/extensions: add inline attributes

This commit is contained in:
meh 2015-10-14 17:49:21 +02:00
parent ae2cc97f65
commit 838ace388c

View File

@ -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, Error> {
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, Error> {
Context::get(self.format(), self.channel_layout(), self.rate(),
format, channel_layout, rate)