Blyx Nest Blyx language
Registry / Library
library · v0.1.1

Pcm Sign Extend

Interpret an unsigned 16-bit PCM word as a signed sample. Values outside the word range return minus 32769.

Source repository · Package JSON

Use Pcm Sign Extend

use vendor::pcm_sign_extend::pcm_sign_extend;

Run the example

nest demo pcm_sign_extend@0.1.1
blyxc native-run pcm_sign_extend-demo/main.blyx
Example source and expected output
use vendor::pcm_sign_extend::pcm_sign_extend;

fn main() {
    println!(pcm_sign_extend(65535));
}

Expected output

-1

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse filesa47cad7f89474d2864574ec03f8dc6f833c3ed99bcf2b3161e2ee81df0715f6943a3d40a63
0.1.0Download ZIP · Browse files6349f23784c5086572061c5a72759708ed282d7f83c49836cd5e5c3adf2906f9fe54ca1d9f