MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / new

Method new

examples/sampler_test/src/ui.rs:17–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16impl DemoApp {
17 pub fn new() -> Self {
18 Self {
19 audio_system: AudioSystem::new(),
20 sampler_views: (0..SAMPLE_PATHS.len())
21 .map(|i| SamplerUIState {
22 text: match i {
23 0 => "swish",
24 1 => "birds",
25 2 => "beep",
26 _ => "bird ambiance",
27 },
28 percent_volume: 100.0,
29 repeat: i == 3,
30 })
31 .collect(),
32 prev_frame_instant: Instant::now(),
33 playback_speed: 1.0,
34 }
35 }
36}
37
38impl App for DemoApp {

Callers

nothing calls this directly

Calls 2

nowFunction · 0.85
collectMethod · 0.80

Tested by

no test coverage detected