mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 20:24:39 +00:00
add miniaudio
This commit is contained in:
parent
633a444089
commit
86d734789c
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -8,3 +8,6 @@
|
||||
[submodule "external/zlib"]
|
||||
path = external/zlib
|
||||
url = https://github.com/madler/zlib
|
||||
[submodule "external/miniaudio"]
|
||||
path = external/miniaudio
|
||||
url = https://github.com/mackron/miniaudio
|
||||
|
20
COPYING
20
COPYING
@ -126,3 +126,23 @@ Copyright notice:
|
||||
|
||||
Jean-loup Gailly Mark Adler
|
||||
jloup@gzip.org madler@alumni.caltech.edu
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
miniaudio
|
||||
Copyright 2025 David Reid
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
@ -1 +1 @@
|
||||
AM_CPPFLAGS = @NB_CPPFLAGS@ -DDRV_@NB_DRIVER@ -DUSE_@NB_BACKEND@ -DTHREAD_@NB_THREAD@ -I$(top_srcdir)/engine/include -I$(top_srcdir)/external/lua -I$(top_srcdir)/external/stb -I$(top_srcdir)/external/zlib -I$(top_srcdir)/deps/include
|
||||
AM_CPPFLAGS = @NB_CPPFLAGS@ -DDRV_@NB_DRIVER@ -DUSE_@NB_BACKEND@ -DTHREAD_@NB_THREAD@ -I$(top_srcdir)/engine/include -I$(top_srcdir)/external/lua -I$(top_srcdir)/external/stb -I$(top_srcdir)/external/zlib -I$(top_srcdir)/external/miniaudio -I$(top_srcdir)/deps/include
|
||||
|
@ -1,7 +1,7 @@
|
||||
include $(top_srcdir)/common-automake.mk
|
||||
lib_LIBRARIES = libnishbox.a
|
||||
libnishbox_a_SOURCES = \
|
||||
nb_core.c nb_draw_common.c nb_font.c nb_log.c nb_math.c nb_mesh.c nb_model.c nb_physics.c nb_stb_image.c nb_texture.c nb_version.c \
|
||||
nb_core.c nb_draw_common.c nb_font.c nb_log.c nb_math.c nb_mesh.c nb_model.c nb_physics.c nb_stb_image.c nb_miniaudio.c nb_texture.c nb_version.c \
|
||||
graphic/@NB_DRIVER@/nb_driver.c graphic/@NB_DRIVER@/nb_graphic.c \
|
||||
graphic/@NB_DRIVER@/@NB_BACKEND@/nb_draw.c \
|
||||
thread/@NB_THREAD@/nb_thread.c \
|
||||
|
19
engine/Makefile.in
generated
19
engine/Makefile.in
generated
@ -180,8 +180,9 @@ am__objects_2 = ../external/zlib/adler32.$(OBJEXT) \
|
||||
am_libnishbox_a_OBJECTS = nb_core.$(OBJEXT) nb_draw_common.$(OBJEXT) \
|
||||
nb_font.$(OBJEXT) nb_log.$(OBJEXT) nb_math.$(OBJEXT) \
|
||||
nb_mesh.$(OBJEXT) nb_model.$(OBJEXT) nb_physics.$(OBJEXT) \
|
||||
nb_stb_image.$(OBJEXT) nb_texture.$(OBJEXT) \
|
||||
nb_version.$(OBJEXT) graphic/@NB_DRIVER@/nb_driver.$(OBJEXT) \
|
||||
nb_stb_image.$(OBJEXT) nb_miniaudio.$(OBJEXT) \
|
||||
nb_texture.$(OBJEXT) nb_version.$(OBJEXT) \
|
||||
graphic/@NB_DRIVER@/nb_driver.$(OBJEXT) \
|
||||
graphic/@NB_DRIVER@/nb_graphic.$(OBJEXT) \
|
||||
graphic/@NB_DRIVER@/@NB_BACKEND@/nb_draw.$(OBJEXT) \
|
||||
thread/@NB_THREAD@/nb_thread.$(OBJEXT) $(am__objects_1) \
|
||||
@ -253,9 +254,10 @@ am__depfiles_remade = ../external/lua/$(DEPDIR)/lapi.Po \
|
||||
../external/zlib/$(DEPDIR)/zutil.Po ./$(DEPDIR)/nb_core.Po \
|
||||
./$(DEPDIR)/nb_draw_common.Po ./$(DEPDIR)/nb_font.Po \
|
||||
./$(DEPDIR)/nb_log.Po ./$(DEPDIR)/nb_math.Po \
|
||||
./$(DEPDIR)/nb_mesh.Po ./$(DEPDIR)/nb_model.Po \
|
||||
./$(DEPDIR)/nb_physics.Po ./$(DEPDIR)/nb_stb_image.Po \
|
||||
./$(DEPDIR)/nb_texture.Po ./$(DEPDIR)/nb_version.Po \
|
||||
./$(DEPDIR)/nb_mesh.Po ./$(DEPDIR)/nb_miniaudio.Po \
|
||||
./$(DEPDIR)/nb_model.Po ./$(DEPDIR)/nb_physics.Po \
|
||||
./$(DEPDIR)/nb_stb_image.Po ./$(DEPDIR)/nb_texture.Po \
|
||||
./$(DEPDIR)/nb_version.Po \
|
||||
graphic/@NB_DRIVER@/$(DEPDIR)/nb_driver.Po \
|
||||
graphic/@NB_DRIVER@/$(DEPDIR)/nb_graphic.Po \
|
||||
graphic/@NB_DRIVER@/@NB_BACKEND@/$(DEPDIR)/nb_draw.Po \
|
||||
@ -408,10 +410,10 @@ target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AM_CPPFLAGS = @NB_CPPFLAGS@ -DDRV_@NB_DRIVER@ -DUSE_@NB_BACKEND@ -DTHREAD_@NB_THREAD@ -I$(top_srcdir)/engine/include -I$(top_srcdir)/external/lua -I$(top_srcdir)/external/stb -I$(top_srcdir)/external/zlib -I$(top_srcdir)/deps/include
|
||||
AM_CPPFLAGS = @NB_CPPFLAGS@ -DDRV_@NB_DRIVER@ -DUSE_@NB_BACKEND@ -DTHREAD_@NB_THREAD@ -I$(top_srcdir)/engine/include -I$(top_srcdir)/external/lua -I$(top_srcdir)/external/stb -I$(top_srcdir)/external/zlib -I$(top_srcdir)/external/miniaudio -I$(top_srcdir)/deps/include
|
||||
lib_LIBRARIES = libnishbox.a
|
||||
libnishbox_a_SOURCES = \
|
||||
nb_core.c nb_draw_common.c nb_font.c nb_log.c nb_math.c nb_mesh.c nb_model.c nb_physics.c nb_stb_image.c nb_texture.c nb_version.c \
|
||||
nb_core.c nb_draw_common.c nb_font.c nb_log.c nb_math.c nb_mesh.c nb_model.c nb_physics.c nb_stb_image.c nb_miniaudio.c nb_texture.c nb_version.c \
|
||||
graphic/@NB_DRIVER@/nb_driver.c graphic/@NB_DRIVER@/nb_graphic.c \
|
||||
graphic/@NB_DRIVER@/@NB_BACKEND@/nb_draw.c \
|
||||
thread/@NB_THREAD@/nb_thread.c \
|
||||
@ -699,6 +701,7 @@ distclean-compile:
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nb_log.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nb_math.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nb_mesh.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nb_miniaudio.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nb_model.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nb_physics.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nb_stb_image.Po@am__quote@ # am--include-marker
|
||||
@ -922,6 +925,7 @@ distclean: distclean-am
|
||||
-rm -f ./$(DEPDIR)/nb_log.Po
|
||||
-rm -f ./$(DEPDIR)/nb_math.Po
|
||||
-rm -f ./$(DEPDIR)/nb_mesh.Po
|
||||
-rm -f ./$(DEPDIR)/nb_miniaudio.Po
|
||||
-rm -f ./$(DEPDIR)/nb_model.Po
|
||||
-rm -f ./$(DEPDIR)/nb_physics.Po
|
||||
-rm -f ./$(DEPDIR)/nb_stb_image.Po
|
||||
@ -1031,6 +1035,7 @@ maintainer-clean: maintainer-clean-am
|
||||
-rm -f ./$(DEPDIR)/nb_log.Po
|
||||
-rm -f ./$(DEPDIR)/nb_math.Po
|
||||
-rm -f ./$(DEPDIR)/nb_mesh.Po
|
||||
-rm -f ./$(DEPDIR)/nb_miniaudio.Po
|
||||
-rm -f ./$(DEPDIR)/nb_model.Po
|
||||
-rm -f ./$(DEPDIR)/nb_physics.Po
|
||||
-rm -f ./$(DEPDIR)/nb_stb_image.Po
|
||||
|
1
engine/nb_miniaudio.c
Normal file
1
engine/nb_miniaudio.c
Normal file
@ -0,0 +1 @@
|
||||
#include <miniaudio.c>
|
1
external/miniaudio
vendored
Submodule
1
external/miniaudio
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 350784a9467a79d0fa65802132668e5afbcf3777
|
2
src/Makefile.in
generated
2
src/Makefile.in
generated
@ -265,7 +265,7 @@ target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AM_CPPFLAGS = @NB_CPPFLAGS@ -DDRV_@NB_DRIVER@ -DUSE_@NB_BACKEND@ -DTHREAD_@NB_THREAD@ -I$(top_srcdir)/engine/include -I$(top_srcdir)/external/lua -I$(top_srcdir)/external/stb -I$(top_srcdir)/external/zlib -I$(top_srcdir)/deps/include
|
||||
AM_CPPFLAGS = @NB_CPPFLAGS@ -DDRV_@NB_DRIVER@ -DUSE_@NB_BACKEND@ -DTHREAD_@NB_THREAD@ -I$(top_srcdir)/engine/include -I$(top_srcdir)/external/lua -I$(top_srcdir)/external/stb -I$(top_srcdir)/external/zlib -I$(top_srcdir)/external/miniaudio -I$(top_srcdir)/deps/include
|
||||
nishbox_SOURCES = main.c
|
||||
nishbox_LDADD = ../engine/libnishbox.a @NB_LDADD@
|
||||
all: all-am
|
||||
|
Loading…
x
Reference in New Issue
Block a user