software/resampling/extensions: add inline attributes
This commit is contained in:
parent
ae2cc97f65
commit
838ace388c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user