Mark deprecated functions as deprecated

This commit is contained in:
Pierre Krieger 2016-11-16 08:32:02 +01:00
parent 871352ce60
commit c291ab13f1
1 changed files with 3 additions and 0 deletions

View File

@ -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