wohlsoft / audiocodecs Goto Github PK
View Code? Open in Web Editor NEWA portable collection of audio codecs as set of dependencies for SDL Mixer X audio library
A portable collection of audio codecs as set of dependencies for SDL Mixer X audio library
This is a better libModPlug which supports more formats and gives better sound quality. Library is licensed under BSD license. It is developing in same repository as Open ModPlug Tracker project.
GENS emulator is very outdated, inaccurate, and has a set of imperfections. The best choice is the MAME YM2612 emulator which gives almost accurate sound and the good performance at same time.
Then, push the update to the official GME repository on BitBucket.
Support for MPG123 has been added into original SDL_mixer library as replacement of SMPEG with same LGPL license.
ports/cmake/
sub-directory)I can not build in my windows, the error show this in compile.txt
..., but i don't know what happen is...
CMakeFiles\SDL3-shared.dir\build.make:771: recipe for target 'CMakeFiles/SDL3-shared.dir/src/hidapi/SDL_hidapi.c.obj' failed
CMakeFiles\Makefile2:86: recipe for target 'CMakeFiles/SDL3-shared.dir/all' failed
[ 8%] Building C object CMakeFiles/SDL3-static.dir/src/hidapi/SDL_hidapi.c.obj
[ 75%] Building C object libADLMIDI/CMakeFiles/ADLMIDI_version_check.dir/version_check.c.obj
CMakeFiles\SDL3-static.dir\build.make:771: recipe for target 'CMakeFiles/SDL3-static.dir/src/hidapi/SDL_hidapi.c.obj' failed
CMakeFiles\Makefile2:112: recipe for target 'CMakeFiles/SDL3-static.dir/all' failed
Makefile:154: recipe for target 'all' failed
CMakeFiles\SDL2HG.dir\build.make:84: recipe for target 'external/SDL2/src/SDL2HG-stamp/SDL2HG-build' failed
CMakeFiles\Makefile2:481: recipe for target 'CMakeFiles/SDL2HG.dir/all' failed
[ 75%] Built target ADLMIDI_version_check
Makefile:154: recipe for target 'all' failed
, and sometime i get this error too...( i will supply detail log later )
[CMakeFiles/SDL2-static.dir/src/video/windows/SDL_windowsvideo.c.obj] Error 1
546b03d
Windows 11 22H2 22621.3296
cmake version 3.27.6
cmake -G "MinGW Makefiles" -DDOWNLOAD_SDL2_DEPENDENCY=ON -DCMAKE_INSTALL_PREFIX=%UserProfile%\MyLibs\ .. > result.txt
AudioCodecs\build$ cmake --build . --config release --target install -- -j 2 > compile.txt
compile.txt <-- error in here
The one you have here (copy from SDL2_mixer) is not libtimidity.
This is libtimidity: https://sourceforge.net/projects/libtimidity/
(or the github mirror: https://github.com/sezero/libtimidity.git)
I suggest renaming yours to something else like timidity-sdl, etc.
when I ran this command in my Macbook, i got some error that Missing variable is: CMAKE_ASM-ATT_COMPILE_OBJECT
.
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_ASM-ATT_COMPILE_OBJECT
CMake Generate step failed. Build files cannot be regenerated correctly.
Is that my env broken?
92dbf21c3b4e50de87c057de5098c21669add7cb
$ sw_vers
ProductName: macOS
ProductVersion: 14.4
BuildVersion: 23E214
$ uname -a
Darwin chenshiangdeMacBook-Air.local 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:51:37 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T8112 arm64
cmake version 3.28.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
cmake -B build -DUSE_LOCAL_SDL2=ON > config.txt
For now all libraries (except of SDL2) are compiling as static libraries here. Give the ability to compile shared libraries for next purposes:
Recently @sezero has been updated libmodplug on side of original SDL Mixer. This (current) libmodplug also has minor change to provide full featured time based seek / tell support (published function that was originally private).
Updated and forked library: https://github.com/Konstanty/libmodplug
Changes made on SDL_mixer repository: https://hg.libsdl.org/SDL_mixer/rev/121b1e9b5684
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libid3tag-sdl\src\id3_file.c: In function 'new_file_private':
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libid3tag-sdl\src\id3_file.c:507:35: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
file->path = path ? (char*)strdup(path) : nullP;
^
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libid3tag-sdl\src\id3_file.c: In function 'id3_file_fdopen':
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libid3tag-sdl\src\id3_file.c:605:22: warning: implicit declaration of function 'fdopen' [-Wimplicit-function-declaration]
iofile = (FILE *)fdopen(fd, (mode == ID3_FILE_MODE_READWRITE) ? "r+b" : "rb");
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libOPNMIDI\src\chips\np2\fmgen_opna.cpp:118:12: warning: comparison is always true due to limited range of data type [-Wtype-limits]
assert(0 <= prescale && prescale < 3);
``
C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs\libOPNMIDI\src\chips\np2_opna.cpp(78): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs-build\libOPNMIDI\OPNMIDI_static.vcxproj] [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\AudioCodecs.vcxproj]
:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs\libOPNMIDI\src\chips\np2\fmgen_file.cpp(108): warning C4267: '=': conversion from 'size_t' to 'uint32', possible loss of data [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs-build\libOPNMIDI\OPNMIDI_static.vcxproj] [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\AudioCodecs.vcxproj]
C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs\libOPNMIDI\src\chips\np2\fmgen_file.cpp(123): warning C4267: '=': conversion from 'size_t' to 'uint32', possible loss of data [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs-build\libOPNMIDI\OPNMIDI_static.vcxproj] [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\AudioCodecs.vcxproj]
C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs\libOPNMIDI\src\chips\np2\fmgen_file.cpp(153): warning C4800: 'int': forcing value to bool 'true' or 'false' (performance warning) [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs-build\libOPNMIDI\OPNMIDI_static.vcxproj] [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\AudioCodecs.vcxproj]
fmgen_fmgen.cpp
C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs\libOPNMIDI\src\chips\np2\fmgen_fmgen.cpp(431): warning C4018: '>=': signed/unsigned mismatch [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs-build\libOPNMIDI\OPNMIDI_static.vcxproj] [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\AudioCodecs.vcxproj]
C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs\libOPNMIDI\src\chips\np2\fmgen_fmgen.cpp(548): warning C4018: '>=': signed/unsigned mismatch [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\external\AudioCodecs\src\AudioCodecs-build\libOPNMIDI\OPNMIDI_static.vcxproj] [C:\projects\sdl-mixer-x\build-MSVC15-Debug-x64\AudioCodecs.vcxproj]
C:\projects\libopnmidi\src\chips\np2\fmgen_fmgen.cpp(431): warning C4018: '>=': signed/unsigned mismatch [C:\projects\libopnmidi\build-MSVC15-Debug-x64\OPNMIDI_shared.vcxproj]
C:\projects\libopnmidi\src\chips\np2\fmgen_fmgen.cpp(548): warning C4018: '>=': signed/unsigned mismatch [C:\projects\libopnmidi\build-MSVC15-Debug-x64\OPNMIDI_shared.vcxproj]
C:/projects/sdl-mixer-x/build-MinGW-Debug-Win32/external/AudioCodecs/src/AudioCodecs/libFLAC/include_p/share/compat.h:92:27: warning: implicit declaration of function '_strnicmp' [-Wimplicit-function-declaration]
#define FLAC__STRNCASECMP _strnicmp
^
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libFLAC\src\libFLAC\metadata_object.c:1386:76: note: in expansion of macro 'FLAC__STRNCASECMP'
return (eq != NULL && (uint32_t)(eq-entry.entry) == field_name_length && FLAC__STRNCASECMP(field_name, (const char *)entry.entry, field_name_length) == 0);
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libgme\src\Data_Reader.cpp:375:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( file_ && s > 0 && s <= UINT_MAX ) {
^
In file included from C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libgme\src\Data_Reader.cpp:21:0:
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libgme\src\Data_Reader.cpp: In member function 'virtual const char* Std_File_Reader::read(void*, long int)':
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libgme\src\Data_Reader.cpp:389:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
RETURN_VALIDITY_CHECK( s > 0 && s <= UINT_MAX );
^
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libgme\src\blargg_source.h:28:44: note: in definition of macro 'unlikely'
#define unlikely( x ) __builtin_expect(x, 0)
^
C:\projects\sdl-mixer-x\build-MinGW-Debug-Win32\external\AudioCodecs\src\AudioCodecs\libgme\src\Data_Reader.cpp:389:2: note: in expansion of macro 'RETURN_VALIDITY_CHECK'
RETURN_VALIDITY_CHECK( s > 0 && s <= UINT_MAX );
^
C:/projects/sdl-mixer-x/build-MinGW-Debug-Win32/external/AudioCodecs/src/AudioCodecs-build/include/SDL2/SDL_touch.h:49:39: warning: comma at end of enumerator list [-Wpedantic]
SDL_TOUCH_DEVICE_INDIRECT_RELATIVE, /* trackpad with screen cursor-relative coordinates */
^
I guess, @sezero , can you fix this (remove the comma to don't break C90 compatibility of public hraders) without letting me to create one another bugzilla issue?
[00:05:59] C:\projects\audiocodecs\zlib\zlib\gzread.c(319): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\projects\audiocodecs\build-MSVC15-Debug-x64\zlib\zlibstatic.vcxproj]
[00:05:59] C:\projects\audiocodecs\zlib\zlib\gzread.c(400): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\projects\audiocodecs\build-MSVC15-Debug-x64\zlib\zlibstatic.vcxproj]
[00:05:59] C:\projects\audiocodecs\zlib\zlib\gzread.c(472): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\projects\audiocodecs\build-MSVC15-Debug-x64\zlib\zlibstatic.vcxproj]
[00:05:59] gzwrite.c
[00:05:59] C:\projects\audiocodecs\zlib\zlib\gzwrite.c(212): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\projects\audiocodecs\build-MSVC15-Debug-x64\zlib\zlibstatic.vcxproj]
[00:05:59] C:\projects\audiocodecs\zlib\zlib\gzwrite.c(232): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\projects\audiocodecs\build-MSVC15-Debug-x64\zlib\zlibstatic.vcxproj]
[00:05:59] C:\projects\audiocodecs\zlib\zlib\gzwrite.c(371): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\projects\audiocodecs\build-MSVC15-Debug-x64\zlib\zlibstatic.vcxproj]
[00:06:12] C:\projects\audiocodecs\libmad\src\layer3.c(1063): warning C4018: '<': signed/unsigned mismatch [C:\projects\audiocodecs\build-MSVC15-Debug-x64\libmad\mad.vcxproj]
[00:06:12] C:\projects\audiocodecs\libmad\src\layer3.c(1112): warning C4018: '<': signed/unsigned mismatch [C:\projects\audiocodecs\build-MSVC15-Debug-x64\libmad\mad.vcxproj]
[00:06:12] C:\projects\audiocodecs\libmad\src\layer3.c(1154): warning C4018: '<': signed/unsigned mismatch [C:\projects\audiocodecs\build-MSVC15-Debug-x64\libmad\mad.vcxproj]
[00:06:12] C:\projects\audiocodecs\libmad\src\layer3.c(2476): warning C4018: '>': signed/unsigned mismatch [C:\projects\audiocodecs\build-MSVC15-Debug-x64\libmad\mad.vcxproj]
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.