grepwood / libacm Goto Github PK
View Code? Open in Web Editor NEWInterPlay ACM audio decoder
License: Other
InterPlay ACM audio decoder
License: Other
libacm - Library for InterPlay ACM Audio format. ================================================ Intro ----- Decoder library for InterPlay ACM audio files. Includes command line tool and plugins for Winamp, Audacious, XMMS2 and GStreamer 0.10. The format was used for games Fallout, Fallout 2 and Baldur's Gate series. It is less efficient than the more advanced MP3, Vorbis or AAC algorithms, but it's main feature is very fast decoding speed. NEWS ---- Version 1.2 ~~~~~~~~~~~ * decoder: Fix error handling in load_bits() (Brian "Moses" Hall) * acmtool: Show time instead number of samples. * plugin-xmms2: New plugin for XMMS2 * plugin-audacious: Support Audacious up to 2.4 * plugin-gstreamer: Fix End-Of-Stream handling * plugin-xmms: Drop it. XMMS is obsolete. Version 1.1 ~~~~~~~~~~~ * acmtool: play files with libao: acmtool -p FILE * decoder: support WAVC files, which are ACM files with additional header. * decoder: take mono ACM as stereo, as there are lot of badly tagged files. Trust channel count on WAVC files, those seem to be correct, and WAVC is mostly used for samples. * decoder: avoid divide-by-zero in bitrate calculation. * plugin-audacious: Keep up with API changes in Audacious 2.x branch. It seems to be still compatible with 1.x, but I have not tested. Version 1.0 ~~~~~~~~~~~ * decoder: excpect EOF in more places - otherwise libacm complained about "unexpected eof". * decoder: on reading assume there is additional single zero byte at the end of all files. Otherwise last block on some files was skipped because last few bits could not be read. Thanks to above 2 changes libacm now decodes all Fallout 1/2 files in full length and without complaining. * License plugins under LGPL. * New separate plugin for Audacious 1.5+ * Remove plugin for Beep Media Player * Rewrite plugin-gstreamer.c for GStreamer "Hell On Earth" 0.10 * acmtool -d -o - writes to stdout. Version 0.9.2 ~~~~~~~~~~~~~ * License core libacm code under minimal BSD/ISC license. Plugins continue to be under GPL. * Fix acmtool crash. ([email protected]) Version 0.9.1 (unreleased) ~~~~~~~~~~~~~~~~~~~~~~~~~~ * Use autoconf/automake for build system * Plugin for GStreamer 0.8. (alsasink seems to be buggy for 22050 Hz audio. If you hear any cracks, try to use osssink.) * Small cleanups. Version 0.9 ~~~~~~~~~~~ * First public release. * Includes: decoder, acmtool, plugins for XMMS, BEEP and Winamp Installation ------------ ./configure make make install By default no plugins are compiled. You must explicitly enable them: --enable-xmms2 Enable plugin for XMMS2 --enable-audacious Enable plugin for Audacious --enable-gstreamer Enable plugin for Gstreamer 0.10 By default the plugins are installed into player's main plugin directory. To specify some other location, use following arguments: --with-xmms2-plugindir=DIR --with-audacious-plugindir=DIR --with-gstreamer-plugindir=DIR Local per-user plugin paths for GStreamer and Audacious: --with-audacious-plugindir=$HOME/.local/share/audacious/Plugins --with-gstreamer-plugindir=$HOME/.gstreamer-0.10/plugins XMMS2 does not support per-user plugin directories. To compile Windows binaries (needs mingw32): make amp - creates in_libacm.dll make exe - creates acmtool.exe make zip - does both and zips Command line tools usage ------------------------ $ acmtool -h acmtool - libacm version 1.0 Decode: acmtool -d [-q][-m|-s] [-r|-n] -o outfile infile acmtool -d [-q][-m|-s] [-r|-n] infile [infile ...] Other: acmtool -i ACMFILE [ACMFILE ...] acmtool -M|-S ACMFILE [ACMFILE ...] Commands: -d decode audio into WAV files -p play audio -i show info about ACM files -M modify ACM header to have 1 channel -S modify ACM header to have 2 channels Switches: -m force mono wav -s force stereo wav -r raw output - no wav header -q be quiet -n no output - for benchmarking -o FN output to file, can be used if single source file The mono/stereo options are necessary because for some ACM files the number of channels in header in wrong. Usually those are game samples, which contain mono audio but are tagger as stereo. Status ------ * Decoder: stable * WinAmp plugin: stable * XMMS2 plugin: stable * Audacity plugin: stable * GStreamer 0.10 plugin: stable * Encoder: when I have more time Credits ------- All the hard work of reverse engineering the format was done by ABel from TeamX. I simply re-implemented it in C.
Is there anything especially complicated with the encoding process vs the decoding? or just a lack of demand for it?
Should guess compiler from HOST, TARGET or /usr/bin/cc
LibACM doesn't recognize ACMs
Hi.
Here's the log:
make all-recursive
make[1]: se entra en el directorio '/home/user/Descargas/libacm'
Making all in src
make[2]: se entra en el directorio '/home/user/Descargas/libacm/src'
CC acmtool-acmtool.o
acmtool.c:51:14: warning: no previous prototype for ‘libacm_strerror’ [-Wmissing-prototypes]
51 | const char * libacm_strerror(int err)
| ^~~~~~~~~~~~~~~
acmtool.c:262:8: warning: no previous prototype for ‘libacm_decode_file_to_mem’ [-Wmissing-prototypes]
262 | char * libacm_decode_file_to_mem(const char *fn, uint8_t cf_force_chans, uint32_t * wavsize) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
CC decode.lo
CC util.lo
CCLD libacm.la
CCLD acmtool
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
The original 1.2 does build.
On an unrelated note, do you have any plans to add conversion from wav to acm, by chance?
make clean
does:
Making clean in plugins
test -z "" || rm -f
test -z "" || rm -f
rm -rf .libs _libs
test -z "" || rm -f
rm -f _.o
rm -f *.lo
Making clean in src
rm -f acmtool
rm -rf .libs _libs
test -z "libacm.la" || rm -f libacm.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
Making clean in .
rm -rf .libs libs
rm -f in_libacm.dll acmtool.exe core core.
rm -f *.lo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.