From c291ab13f1205b4def6c9c7ea565e3e8bd5ea32c Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Wed, 16 Nov 2016 08:32:02 +0100 Subject: [PATCH] Mark deprecated functions as deprecated --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 22bb1f2..36c778f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -357,6 +357,7 @@ impl Voice { /// /// You can add data with any number of channels, but matching the voice's native format /// will lead to better performances. + #[deprecated] #[inline] pub fn get_channels(&self) -> ChannelsCount { self.format().channels.len() as ChannelsCount @@ -366,6 +367,7 @@ impl Voice { /// /// You can add data with any samples rate, but matching the voice's native format /// will lead to better performances. + #[deprecated] #[inline] pub fn get_samples_rate(&self) -> SamplesRate { self.format().samples_rate @@ -375,6 +377,7 @@ impl Voice { /// /// You can add data of any format, but matching the voice's native format /// will lead to better performances. + #[deprecated] #[inline] pub fn get_samples_format(&self) -> SampleFormat { self.format().data_type