Skip to content

Commit

Permalink
Merge pull request #95 from jgabaut/work/support-flac
Browse files Browse the repository at this point in the history
Add FLAC support without changing raylib source code
  • Loading branch information
rexim authored Mar 1, 2024
2 parents 9ddb4d2 + a76050f commit 1d7481b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Alpha Release 3
- Finally got rid of the resource/ folder. It's now part of the
executable

- Added FLAC support

Windows Alpha Release 2
----------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ https://github.com/tsoding/musializer/assets/165283/8b9f9653-9b3d-4c04-9569-338f
- qoa
- xm
- mod
- flac (in development)
- flac

## Download Binaries

Expand Down
2 changes: 1 addition & 1 deletion src/nob_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ bool build_raylib(void)
if (nob_needs_rebuild(output_path, &input_path, 1)) {
cmd.count = 0;
nob_cmd_append(&cmd, "cc");
nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC");
nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1");
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
nob_cmd_append(&cmd, "-c", input_path);
nob_cmd_append(&cmd, "-o", output_path);
Expand Down
2 changes: 1 addition & 1 deletion src/nob_macos.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ bool build_raylib(void)
if (nob_needs_rebuild(output_path, &input_path, 1)) {
cmd.count = 0;
nob_cmd_append(&cmd, "clang");
nob_cmd_append(&cmd, "-g", "-DPLATFORM_DESKTOP", "-fPIC");
nob_cmd_append(&cmd, "-g", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1");
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
nob_cmd_append(&cmd, "-Iexternal/glfw/deps/ming");
nob_cmd_append(&cmd, "-DGRAPHICS_API_OPENGL_33");
Expand Down
2 changes: 1 addition & 1 deletion src/nob_openbsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ bool build_raylib(void)
if (nob_needs_rebuild(output_path, &input_path, 1)) {
cmd.count = 0;
nob_cmd_append(&cmd, "cc");
nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC");
nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1");
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
nob_cmd_append(&cmd, "-c", input_path);
nob_cmd_append(&cmd, "-o", output_path);
Expand Down
2 changes: 1 addition & 1 deletion src/nob_win64_mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ bool build_raylib()
if (nob_needs_rebuild(output_path, &input_path, 1)) {
cmd.count = 0;
nob_cmd_append(&cmd, "x86_64-w64-mingw32-gcc");
nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC");
nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1");
nob_cmd_append(&cmd, "-DPLATFORM_DESKTOP");
nob_cmd_append(&cmd, "-fPIC");
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
Expand Down
2 changes: 1 addition & 1 deletion src/nob_win64_msvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ bool build_raylib(void)

if (nob_needs_rebuild(output_path, &input_path, 1)) {
cmd.count = 0;
nob_cmd_append(&cmd, "cl.exe", "/DPLATFORM_DESKTOP");
nob_cmd_append(&cmd, "cl.exe", "/DPLATFORM_DESKTOP", "/DSUPPORT_FILEFORMAT_FLAC=1");
nob_cmd_append(&cmd, "/I", "./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
nob_cmd_append(&cmd, "/c", input_path);
nob_cmd_append(&cmd, nob_temp_sprintf("/Fo%s", output_path));
Expand Down

0 comments on commit 1d7481b

Please sign in to comment.