From ea19f133d65ccc31e828cb1b9bd1046838ace4a4 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 19 Dec 2021 13:05:09 -0500 Subject: [PATCH] prepare for eventual release --- CMakeLists.txt | 2 ++ README.md | 26 ++++++++++++++++---------- src/audio/jack.cpp | 3 ++- src/audio/jack.h | 3 ++- 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 98d97c63..65df614d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,8 @@ add_subdirectory(extern/fmt) set(BUILD_TESTING OFF) set(BUILD_PROGRAMS OFF) set(BUILD_EXAMPLES OFF) +set(ENABLE_EXTERNAL_LIBS OFF) +set(ENABLE_MPEG OFF) add_subdirectory(extern/libsndfile) if (WIN32) diff --git a/README.md b/README.md index e0d88878..5c0a2f4a 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,12 @@ this is a work-in-progress editor for DefleMask module files (.dmf). - accurate emulation cores whether possible (Nuked, MAME, SameBoy, Mednafen PCE, puNES, reSID and ymfm) - open-source. GPLv2. +## downloads + +coming very soon! + +# developer info + ## dependencies - CMake @@ -50,23 +56,23 @@ make ## usage ``` -./furnace +./furnace +``` + +this opens the program. + +``` +./furnace -console ``` this will play a .dmf file. ``` -./furnace -view commands +./furnace -console -view commands ``` this will play a .dmf file and enable the commands view. -``` -./furnace -loops 0 -``` - -this will play a .dmf file and not loop it. - ``` ./furnace -output audio.wav ``` @@ -85,6 +91,6 @@ file a bug report. use the Issues page. it's probably another playback inaccuracy. -> extremely high CPU usage in arcade platform +> my song sounds correct, but it doesn't in DefleMask -yep, that's how accurate Nuked is. I'll add an ymfm-based core soon. +file a bug report **here**. it still is a playback inaccuracy. diff --git a/src/audio/jack.cpp b/src/audio/jack.cpp index 833e5ef5..fd2c1390 100644 --- a/src/audio/jack.cpp +++ b/src/audio/jack.cpp @@ -104,6 +104,7 @@ bool TAAudioJACK::setRun(bool run) { bool TAAudioJACK::init(TAAudioDesc& request, TAAudioDesc& response) { if (initialized) return false; + if (jack_client_open==NULL) return false; desc=request; desc.outFormat=TA_AUDIO_FORMAT_F32; @@ -153,4 +154,4 @@ bool TAAudioJACK::init(TAAudioDesc& request, TAAudioDesc& response) { response=desc; initialized=true; return true; -} \ No newline at end of file +} diff --git a/src/audio/jack.h b/src/audio/jack.h index 6323b1ea..e37aa589 100644 --- a/src/audio/jack.h +++ b/src/audio/jack.h @@ -1,4 +1,5 @@ #include "taAudio.h" +#include #include class TAAudioJACK: public TAAudio { @@ -23,4 +24,4 @@ class TAAudioJACK: public TAAudio { ac(NULL), ai(NULL), ao(NULL) {} -}; \ No newline at end of file +};