pub struct WavePlayer;Expand description
Transmits a wave file as an M17 stream
Implementations§
Source§impl WavePlayer
impl WavePlayer
Sourcepub fn play(
path: PathBuf,
tx: TxHandle,
source: &M17Address,
destination: &M17Address,
channel_access_number: u8,
)
pub fn play( path: PathBuf, tx: TxHandle, source: &M17Address, destination: &M17Address, channel_access_number: u8, )
Plays a wave file (blocking).
path: wave file to transmit, must be 8 kHz mono and 16-bit LEtx: aTxHandleobtained from anM17Appsource: address of transmission sourcedestination: address of transmission destinationchannel_access_number: from 0 to 15, usually 0
Auto Trait Implementations§
impl Freeze for WavePlayer
impl RefUnwindSafe for WavePlayer
impl Send for WavePlayer
impl Sync for WavePlayer
impl Unpin for WavePlayer
impl UnwindSafe for WavePlayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more