Skip to main content

samples_ms

Macro samples_ms 

Source
macro_rules! samples_ms {
    ($player:ident, $duration_ms:expr) => { ... };
}
Available on target_os=none only.
Expand description

Macro that expands to an AudioClipBuf type sized from a player type and milliseconds.

Example: samples_ms!{AudioPlayer8, 500}.

See the audio_player module documentation for usage examples.