add pipe audio output
also add ability to disable CLI control/status completely
This commit is contained in:
parent
d41eeb02be
commit
c9309834ce
12 changed files with 261 additions and 16 deletions
|
|
@ -36,6 +36,7 @@
|
|||
#ifdef HAVE_PA
|
||||
#include "../audio/pa.h"
|
||||
#endif
|
||||
#include "../audio/pipe.h"
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include <fmt/printf.h>
|
||||
|
|
@ -3522,8 +3523,9 @@ void DivEngine::setSamplePreviewVol(float vol) {
|
|||
previewVol=vol;
|
||||
}
|
||||
|
||||
void DivEngine::setConsoleMode(bool enable) {
|
||||
void DivEngine::setConsoleMode(bool enable, bool statusOut) {
|
||||
consoleMode=enable;
|
||||
disableStatusOut=!statusOut;
|
||||
}
|
||||
|
||||
bool DivEngine::switchMaster(bool full) {
|
||||
|
|
@ -3800,6 +3802,9 @@ bool DivEngine::initAudioBackend() {
|
|||
output=new TAAudio;
|
||||
#endif
|
||||
break;
|
||||
case DIV_AUDIO_PIPE:
|
||||
output=new TAAudioPipe;
|
||||
break;
|
||||
case DIV_AUDIO_DUMMY:
|
||||
output=new TAAudio;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue