Compare commits
2 Commits
3dbac8061d
...
0f36241687
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f36241687 | ||
|
|
fbfb216a64 |
@@ -1 +0,0 @@
|
|||||||
/usr/share/soundfonts/FatBoy.sf2
|
|
||||||
@@ -1,8 +1,5 @@
|
|||||||
[tools]
|
[tools]
|
||||||
rust = "latest"
|
rust = "latest"
|
||||||
|
|
||||||
[tasks.setup]
|
|
||||||
run = "echo paru -S fluidsynth soundfont-fatboy"
|
|
||||||
|
|
||||||
[tasks.default]
|
[tasks.default]
|
||||||
run = "if ! aconnect -o -l | grep -q FLUID; then fluidsynth --server $(find /usr/share -name \\*.sf2 | head -n 1); fi; cargo run"
|
run = "cargo run"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use tinyaudio::prelude::*;
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// Load the SoundFont.
|
// Load the SoundFont.
|
||||||
let mut sf2 = File::open("FatBoy.sf2").unwrap();
|
let mut sf2 = File::open("super_small_font.sf2").unwrap();
|
||||||
let sound_font = Arc::new(SoundFont::new(&mut sf2).unwrap());
|
let sound_font = Arc::new(SoundFont::new(&mut sf2).unwrap());
|
||||||
|
|
||||||
// Setup the audio output.
|
// Setup the audio output.
|
||||||
@@ -44,4 +44,3 @@ fn main() {
|
|||||||
// Let it ride
|
// Let it ride
|
||||||
std::thread::sleep(std::time::Duration::from_secs(2));
|
std::thread::sleep(std::time::Duration::from_secs(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
super_small_font.sf2
Normal file
BIN
super_small_font.sf2
Normal file
Binary file not shown.
Reference in New Issue
Block a user