Struct synthizer::StreamingGenerator
source · pub struct StreamingGenerator(_);
Implementations§
source§impl StreamingGenerator
impl StreamingGenerator
pub fn from_file<P: AsRef<Path>>( context: &Context, path: P ) -> Result<StreamingGenerator>
pub fn from_stream_handle( context: &Context, handle: StreamHandle ) -> Result<StreamingGenerator>
pub fn from_stream_params( context: &Context, protocol: &str, path: &str, param: usize ) -> Result<StreamingGenerator>
pub fn pitch_bend(&self) -> DoubleProperty<'_>
pub fn gain(&self) -> DoubleProperty<'_>
pub fn looping(&self) -> BoolProperty<'_>
pub fn playback_position(&self) -> DoubleProperty<'_>
pub fn handle(&self) -> &Handle
pub fn into_handle(self) -> Handle
pub fn get_type(&self) -> Result<ObjectType>
sourcepub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
pub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
Try to cast this object to another object type. Will return
Ok(None)
if this is because of a type mismatch, otherwise Err
.
Clones self
on success in order to prevent throwing the object
away on error.
pub fn get_userdata(&self) -> Result<Option<Arc<dyn Any + Send + Sync>>>
pub fn set_userdata( &self, userdata: Option<impl Any + Send + Sync> ) -> Result<()>
pub fn config_delete_behavior(&self, config: &DeleteBehaviorConfig) -> Result<()>
pub fn current_time(&self) -> DoubleProperty<'_>
pub fn suggested_automation_time(&self) -> DoubleProperty<'_>
pub fn pause(&self) -> Result<()>
pub fn play(&self) -> Result<()>
Trait Implementations§
source§impl Clone for StreamingGenerator
impl Clone for StreamingGenerator
source§fn clone(&self) -> StreamingGenerator
fn clone(&self) -> StreamingGenerator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StreamingGenerator
impl Debug for StreamingGenerator
source§impl From<&StreamingGenerator> for Generator
impl From<&StreamingGenerator> for Generator
source§fn from(other: &StreamingGenerator) -> Generator
fn from(other: &StreamingGenerator) -> Generator
Converts to this type from the input type.
source§impl From<&StreamingGenerator> for Handle
impl From<&StreamingGenerator> for Handle
source§fn from(other: &StreamingGenerator) -> Handle
fn from(other: &StreamingGenerator) -> Handle
Converts to this type from the input type.
source§impl From<StreamingGenerator> for Generator
impl From<StreamingGenerator> for Generator
source§fn from(input: StreamingGenerator) -> Generator
fn from(input: StreamingGenerator) -> Generator
Converts to this type from the input type.
source§impl From<StreamingGenerator> for Handle
impl From<StreamingGenerator> for Handle
source§fn from(input: StreamingGenerator) -> Handle
fn from(input: StreamingGenerator) -> Handle
Converts to this type from the input type.
source§impl Hash for StreamingGenerator
impl Hash for StreamingGenerator
source§impl Ord for StreamingGenerator
impl Ord for StreamingGenerator
source§fn cmp(&self, other: &StreamingGenerator) -> Ordering
fn cmp(&self, other: &StreamingGenerator) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<StreamingGenerator> for StreamingGenerator
impl PartialEq<StreamingGenerator> for StreamingGenerator
source§fn eq(&self, other: &StreamingGenerator) -> bool
fn eq(&self, other: &StreamingGenerator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StreamingGenerator> for StreamingGenerator
impl PartialOrd<StreamingGenerator> for StreamingGenerator
source§fn partial_cmp(&self, other: &StreamingGenerator) -> Option<Ordering>
fn partial_cmp(&self, other: &StreamingGenerator) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more