Rename the methods of the backend as well (#164)

This commit is contained in:
tomaka 2017-10-12 11:54:09 +02:00 • committed by GitHub
parent 84f0acbd65
commit 4b019243c2
9 changed files with 23 additions and 23 deletions

View file

@ -29,7 +29,7 @@ impl Iterator for EndpointsIterator {
}
}
pub fn get_default_endpoint() -> Option<Endpoint> {
pub fn default_endpoint() -> Option<Endpoint> {
Some(Endpoint)
}

View file

@ -24,13 +24,13 @@ use self::coreaudio::audio_unit::render_callback::{self, data};
mod enumerate;
pub use self::enumerate::{EndpointsIterator, SupportedFormatsIterator, get_default_endpoint};
pub use self::enumerate::{EndpointsIterator, SupportedFormatsIterator, default_endpoint};
#[derive(Clone, PartialEq, Eq)]
pub struct Endpoint;
impl Endpoint {
pub fn get_supported_formats_list(
pub fn supported_formats(
&self)
-> Result<SupportedFormatsIterator, FormatsEnumerationError> {
Ok(
@ -44,7 +44,7 @@ impl Endpoint {
)
}
pub fn get_name(&self) -> String {
pub fn name(&self) -> String {
"Default AudioUnit Endpoint".to_string()
}
}
@ -73,7 +73,7 @@ impl<T> Buffer<T>
where T: Sample
{
#[inline]
pub fn get_buffer(&mut self) -> &mut [T] {
pub fn buffer(&mut self) -> &mut [T] {
&mut self.buffer[..]
}