Rename the methods of the backend as well (#164)
This commit is contained in:
parent
84f0acbd65
commit
4b019243c2
9 changed files with 23 additions and 23 deletions
|
|
@ -16,7 +16,7 @@ use FormatsEnumerationError;
|
|||
use SampleFormat;
|
||||
use SamplesRate;
|
||||
|
||||
pub use self::enumerate::{EndpointsIterator, get_default_endpoint};
|
||||
pub use self::enumerate::{EndpointsIterator, default_endpoint};
|
||||
pub use self::voice::{Buffer, EventLoop, SamplesStream, Voice};
|
||||
pub use std::option::IntoIter as OptionIntoIter;
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ unsafe impl Sync for Endpoint {
|
|||
impl Endpoint {
|
||||
// TODO: this function returns a GUID of the endpoin
|
||||
// instead it should use the property store and return the friendly name
|
||||
pub fn get_name(&self) -> String {
|
||||
pub fn name(&self) -> String {
|
||||
unsafe {
|
||||
let mut name_ptr = mem::uninitialized();
|
||||
// can only fail if wrong params or out of memory
|
||||
|
|
@ -125,7 +125,7 @@ impl Endpoint {
|
|||
Ok(client)
|
||||
}
|
||||
|
||||
pub fn get_supported_formats_list(
|
||||
pub fn supported_formats(
|
||||
&self)
|
||||
-> Result<SupportedFormatsIterator, FormatsEnumerationError> {
|
||||
// We always create voices in shared mode, therefore all samples go through an audio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue