Closed 38github closed 1 month ago
It works when adding -lm to the parameters:
$ gcc -O2 -lm *.c -o adpcm-xq
$ ./adpcm-xq
ADPCM-XQ Xtreme Quality IMA-ADPCM WAV Encoder / Decoder Version 0.5
Copyright (c) 2024 David Bryant. All Rights Reserved.
Usage: ADPCM-XQ [-options] infile.wav outfile.wav
Operation: conversion is performed based on the type of the infile
(either encode 16-bit PCM to 4-bit IMA-ADPCM or decode back)
Options: -[0-16]= encode lookahead samples (default = 3, max = 16)
-b<n> = override auto block size, 2^n bytes (n = 8-15)
-d = decode only (fail on WAV file already PCM)
-e = encode only (fail on WAV file already ADPCM)
-f = encode flat noise (no noise shaping, aka -s0.0)
-h = display this help message
-n = measure and report quantization noise
-q = quiet mode (display errors only)
-r = raw output (little-endian, no WAV header written)
-s<n> = override default noise shaping, (-1.0 < n <= 1.0)
-v = verbose (display lots of info)
-w<n> = override default 4-bit ADPCM width (2 <= n <= 5)
-x = exhaustive search (old behavior, very slow at depth)
-y = overwrite outfile if it exists
Web: Visit www.github.com/dbry/adpcm-xq for latest version and info
Thanks for reminding me of this!
Yeah, the README needs several updates (all the new features!) and I was planing to upgrade to Markdown.
Updated README to Markdown and fixed build instructions.