From: ljsebald <ljs...@us...> - 2024-04-26 03:04:57
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "UNNAMED PROJECT". The branch, master has been updated via cda50655f8870af22a23afe4c57aa0e5b60073d1 (commit) via 76adea07c4a44081bfa6804be336e2c7d34d8f3a (commit) from e6229e496119a7665714109a0f2139f9a04661da (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit cda50655f8870af22a23afe4c57aa0e5b60073d1 Merge: e6229e4 76adea0 Author: Lawrence Sebald <ljs...@us...> Date: Thu Apr 25 23:02:22 2024 -0400 Merge pull request #1 from KallistiOS/Explicit_func Properly prototype sndmp3_ functions commit 76adea07c4a44081bfa6804be336e2c7d34d8f3a Author: QuzarDC <qu...@co...> Date: Sat Feb 10 16:56:59 2024 -0500 Properly prototype sndmp3_ functions ----------------------------------------------------------------------- Summary of changes: include/sndmp3.h | 11 +++++++++-- libmp3/main.c | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/sndmp3.h b/include/sndmp3.h index b0da7f5..42162b4 100644 --- a/include/sndmp3.h +++ b/include/sndmp3.h @@ -10,18 +10,25 @@ #include <sys/cdefs.h> __BEGIN_DECLS -int sndmp3_init(const char *fn, int loop); +/* Wait until the MP3 thread is started and ready */ +void sndmp3_wait_start(void); /* Initialize the MP3 driver; takes an input filename and starts the decoding process. */ int sndmp3_start(const char *fn, int loop); +/* Stop playback (implies song unload) */ +void sndmp3_stop(void); + /* Shut everything down */ -void sndmp3_shutdown(); +void sndmp3_shutdown(void); /* Controls volume of MP3 stream */ void sndmp3_volume(int vol); +/* The main loop for the sound server */ +void sndmp3_mainloop(void); + __END_DECLS #endif /* __SNDMP3_H */ diff --git a/libmp3/main.c b/libmp3/main.c index 118b80f..3008837 100644 --- a/libmp3/main.c +++ b/libmp3/main.c @@ -6,6 +6,7 @@ */ #include <kos.h> +#include "sndmp3.h" void *sndserver_thread(void *blagh) { printf("sndserver: started [DEBUG]\r\n"); hooks/post-receive -- UNNAMED PROJECT |