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.
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
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | a47cad7f89 | 474d2864574ec03f8dc6f833c3ed99bcf2b3161e2ee81df0715f6943a3d40a63 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | c5086572061c5a72759708ed282d7f83c49836cd5e5c3adf2906f9fe54ca1d9f |