firefly-rust 0.13.2

Rust SDK for making Firefly Zero games
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![no_std]
#![no_main]
use firefly_rust::audio;

#[unsafe(no_mangle)]
extern "C" fn boot() {
    let gain = audio::OUT.add_gain(0.);
    gain.modulate(audio::LinearModulator {
        start: 0.,
        end: 1.,
        start_at: audio::Time::ZERO,
        end_at: audio::Time::seconds(2),
    });
    gain.add_sine(audio::Freq::A4, 0.);
}