scsynth 0.1.0

A safe Rust wrapper for an embedded, in-process SuperCollider scsynth engine.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Smoke test: create and tear down an offline engine. This forces the full static link against
//! `libscsynth` and exercises `World_New` (which runs static plugin registration) and
//! `World_Cleanup`, with no audio device.

use scsynth::{Options, World};

#[test]
fn world_new_non_realtime() {
    let options = Options::new()
        .real_time(false)
        .output_channels(1)
        .sample_rate(44_100)
        .load_synthdefs(false)
        .verbosity(-1);
    let world = World::new(options).expect("World_New failed");
    drop(world);
}