Giter Club home page Giter Club logo

wohlsoft / audiocodecs Goto Github PK

View Code? Open in Web Editor NEW
14.0 10.0 8.0 37.78 MB

A portable collection of audio codecs as set of dependencies for SDL Mixer X audio library

C 73.87% C++ 21.31% Shell 0.04% Objective-C 1.34% Assembly 2.09% Makefile 0.02% Roff 0.03% Perl 0.22% Python 0.05% Ada 0.17% Pascal 0.14% C# 0.10% DIGITAL Command Language 0.05% Module Management System 0.01% CSS 0.01% CMake 0.03% Metal 0.01% FreeBasic 0.12% Java 0.39% Go 0.02%
submodule

audiocodecs's People

Contributors

ds-sloth avatar jpcima avatar sezero avatar wohlstand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

audiocodecs's Issues

Add libOpenMPT

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.

https://lib.openmpt.org/libopenmpt/

[GME] Replace GENS emulator with MAME

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.

  • Implement replacement of GENS emulator
  • Post all changes to official repo and make any necessary changes
  • Apply the update of GME here

Can not build SDL ...

Problem

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

Version

546b03d

Operating System

Windows 11 22H2 22621.3296

CMake version

cmake version 3.27.6

CMake Error

cmake -G "MinGW Makefiles" -DDOWNLOAD_SDL2_DEPENDENCY=ON -DCMAKE_INSTALL_PREFIX=%UserProfile%\MyLibs\ .. > result.txt

result.txt

AudioCodecs\build$ cmake --build . --config release --target install -- -j 2 > compile.txt

compile.txt <-- error in here

Missing variable is: `CMAKE_ASM-ATT_COMPILE_OBJECT`

Problem

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?

Repo Version

92dbf21c3b4e50de87c057de5098c21669add7cb

OS

  • MacOS
$ 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

Execution Version

  • cmake
cmake version 3.28.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).
  • clang
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

Other

  • logs of configure time error
cmake -B build -DUSE_LOCAL_SDL2=ON > config.txt

configure.txt

Add ability to compile set of shared libraries

For now all libraries (except of SDL2) are compiling as static libraries here. Give the ability to compile shared libraries for next purposes:

  • Allow micro-update of each library individually while development or debug process of each library.
  • Allow LGPL licensed libraries be validly built for commercial software usage purpose.

Fix Windows build warnings

  • libID3Tag:
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");
  
  • libOPNMIDI:
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]
  • libOPNMIDI: (Again)
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]
  • libFLAC:
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);
 
  • libGME:
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 );
  ^
  • libSDL2:
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?

  • ZLib (after update)
[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]

  • libMAD:
[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]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.