prepare for file output
This commit is contained in:
parent
4cba677c04
commit
7649b845aa
|
@ -694,7 +694,12 @@ void DivEngine::setView(DivStatusView which) {
|
|||
view=which;
|
||||
}
|
||||
|
||||
bool DivEngine::init() {
|
||||
bool DivEngine::init(String outName) {
|
||||
if (outName!="") {
|
||||
// init out file
|
||||
got.bufsize=2048;
|
||||
got.rate=44100;
|
||||
} else {
|
||||
switch (audioEngine) {
|
||||
case DIV_AUDIO_JACK:
|
||||
#ifndef HAVE_JACK
|
||||
|
@ -726,6 +731,7 @@ bool DivEngine::init() {
|
|||
logE("error while initializing audio!\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bb[0]=blip_new(32768);
|
||||
if (bb[0]==NULL) {
|
||||
|
@ -792,9 +798,13 @@ bool DivEngine::init() {
|
|||
chan[i].volume=chan[i].volMax;
|
||||
}
|
||||
|
||||
if (outName!="") {
|
||||
// render to file
|
||||
} else {
|
||||
if (!output->setRun(true)) {
|
||||
logE("error while activating!\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue