i know a better way

This commit is contained in:
tildearrow 2021-12-07 04:32:42 -05:00
parent 7490ed89a1
commit 4cba677c04
5 changed files with 4 additions and 132 deletions

View file

@ -5,7 +5,6 @@
#ifdef HAVE_JACK
#include "../audio/jack.h"
#endif
#include "../audio/file.h"
#include "platform/genesis.h"
#include "platform/genesisext.h"
#include "platform/sms.h"
@ -708,9 +707,6 @@ bool DivEngine::init() {
case DIV_AUDIO_SDL:
output=new TAAudioSDL;
break;
case DIV_AUDIO_FILE:
output=new TAAudioFile;
break;
default:
logE("invalid audio engine!\n");
return false;

View file

@ -13,8 +13,7 @@ enum DivStatusView {
enum DivAudioEngines {
DIV_AUDIO_JACK=0,
DIV_AUDIO_SDL,
DIV_AUDIO_FILE
DIV_AUDIO_SDL
};
struct DivChannelState {
@ -66,8 +65,6 @@ class DivEngine {
DivChannelState chan[17];
DivAudioEngines audioEngine;
String outName;
short vibTable[64];
blip_buffer_t* bb[2];
@ -108,11 +105,8 @@ class DivEngine {
// set the view mode.
void setView(DivStatusView which);
// open audio output file.
bool openAudioOut(String filename);
// initialize the engine.
bool init();
// initialize the engine. optionally provide an output file name.
bool init(String outName="");
DivEngine():
chans(0),