Revert "prepare to add file out - does not compile!"

This reverts commit 45b202b85b.
This commit is contained in:
tildearrow 2021-12-07 04:20:11 -05:00
parent 45b202b85b
commit ada8e71884
7 changed files with 12 additions and 196 deletions

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 {
@ -59,15 +58,12 @@ class DivEngine {
int chans;
bool playing;
bool speedAB;
bool endOfSong;
int ticks, cycles, curRow, curOrder, remainingLoops;
int ticks, cycles, curRow, curOrder;
int changeOrd, changePos, totalTicks, totalCmds, lastCmds, cmdsPerSecond;
DivStatusView view;
DivChannelState chan[17];
DivAudioEngines audioEngine;
String outName;
short vibTable[64];
blip_buffer_t* bb[2];
@ -80,8 +76,7 @@ class DivEngine {
void processRow(int i, bool afterDelay);
void nextOrder();
void nextRow();
// returns true if end of song.
bool nextTick();
void nextTick();
bool perSystemEffect(int ch, unsigned char effect, unsigned char effectVal);
bool perSystemPostEffect(int ch, unsigned char effect, unsigned char effectVal);
void renderSamples();
@ -99,18 +94,12 @@ class DivEngine {
// play
void play();
// set remaining loops. -1 means loop forever.
void setLoops(int loops);
// set the audio system.
void setAudio(DivAudioEngines which);
// set the view mode.
void setView(DivStatusView which);
// open audio output file.
bool openAudioOut(String filename);
// initialize the engine.
bool init();
@ -118,12 +107,10 @@ class DivEngine {
chans(0),
playing(false),
speedAB(false),
endOfSong(false),
ticks(0),
cycles(0),
curRow(0),
curOrder(0),
remainingLoops(-1),
changeOrd(-1),
changePos(0),
totalTicks(0),