Struct sorceress::server::BufferAllocateRead [−][src]
Allocate buffer space and reads a sound file.
Allocates buffer with the given number of channels and up to the given numer of frames, depending on the size of the file. Reads sound file data from the given starting frame in the file. If the number of frames argument is less than or equal to zero, the entire file is read. The sound file will determine how many channels are allocated for the buffer.
Asynchronous. Replies to the sender with a Reply::BufferAllocateReadDone
message
containing the same buffer number specified in this command when complete.
Implementations
impl BufferAllocateRead
[src]
pub fn new(
buffer_number: i32,
file_path: impl Into<String>
) -> BufferAllocateRead
[src]
buffer_number: i32,
file_path: impl Into<String>
) -> BufferAllocateRead
Creates a new BufferAllocateRead
command.
Arguments
buffer_number
- The buffer number.file_path
- The path to a sound file on the SuperCollider server’s filesystem.
pub fn starting_frame(self, starting_frame: i32) -> BufferAllocateRead
[src]
The frame number in the file where SuperCollider will begin reading. Defaults to 0.
pub fn number_of_frames(self, number_of_frames: i32) -> BufferAllocateRead
[src]
The maximum number of frames to read from the file. Defaults to 0.
pub fn on_completion(self, message: Vec<u8>) -> BufferAllocateRead
[src]
An optional OSC message to execute on completion.
Trait Implementations
impl AsyncCommand for BufferAllocateRead
[src]
impl Clone for BufferAllocateRead
[src]
fn clone(&self) -> BufferAllocateRead
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Command for BufferAllocateRead
[src]
impl Debug for BufferAllocateRead
[src]
impl PartialEq<BufferAllocateRead> for BufferAllocateRead
[src]
fn eq(&self, other: &BufferAllocateRead) -> bool
[src]
fn ne(&self, other: &BufferAllocateRead) -> bool
[src]
impl PartialOrd<BufferAllocateRead> for BufferAllocateRead
[src]
fn partial_cmp(&self, other: &BufferAllocateRead) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for BufferAllocateRead
[src]
Auto Trait Implementations
impl RefUnwindSafe for BufferAllocateRead
impl Send for BufferAllocateRead
impl Sync for BufferAllocateRead
impl Unpin for BufferAllocateRead
impl UnwindSafe for BufferAllocateRead
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,