Merge branch 'master' into feature/esfm
This commit is contained in:
commit
56d774bb3b
123 changed files with 2732 additions and 707 deletions
|
|
@ -1081,7 +1081,7 @@ bool DivEngine::addSystem(DivSystem which) {
|
|||
song.patchbay.push_back((i<<20)|j);
|
||||
}
|
||||
} else {
|
||||
song.patchbay.reserve(outs);
|
||||
if (outs>0) song.patchbay.reserve(outs);
|
||||
for (unsigned int j=0; j<outs; j++) {
|
||||
song.patchbay.push_back((i<<20)|(j<<16)|j);
|
||||
}
|
||||
|
|
@ -1189,11 +1189,11 @@ bool DivEngine::swapSystem(int src, int dest, bool preserveOrder) {
|
|||
|
||||
// prepare swap list
|
||||
int index=0;
|
||||
swapList.reserve(song.systemLen);
|
||||
if (song.systemLen>0) swapList.reserve(song.systemLen);
|
||||
for (int i=0; i<song.systemLen; i++) {
|
||||
chanList.clear();
|
||||
const int channelCount=getChannelCount(song.system[i]);
|
||||
chanList.reserve(channelCount);
|
||||
if (channelCount>0) chanList.reserve(channelCount);
|
||||
for (int j=0; j<channelCount; j++) {
|
||||
chanList.push_back(index);
|
||||
index++;
|
||||
|
|
@ -1427,6 +1427,11 @@ DivChannelPair DivEngine::getChanPaired(int ch) {
|
|||
return disCont[dispatchOfChan[ch]].dispatch->getPaired(dispatchChanOfChan[ch]);
|
||||
}
|
||||
|
||||
DivChannelModeHints DivEngine::getChanModeHints(int ch) {
|
||||
if (ch<0 || ch>=chans) return DivChannelModeHints();
|
||||
return disCont[dispatchOfChan[ch]].dispatch->getModeHints(dispatchChanOfChan[ch]);
|
||||
}
|
||||
|
||||
unsigned char* DivEngine::getRegisterPool(int sys, int& size, int& depth) {
|
||||
if (sys<0 || sys>=song.systemLen) return NULL;
|
||||
if (disCont[sys].dispatch==NULL) return NULL;
|
||||
|
|
@ -3354,7 +3359,7 @@ bool DivEngine::switchMaster(bool full) {
|
|||
if (initAudioBackend()) {
|
||||
for (int i=0; i<song.systemLen; i++) {
|
||||
disCont[i].setRates(got.rate);
|
||||
disCont[i].setQuality(lowQuality);
|
||||
disCont[i].setQuality(lowQuality,dcHiPass);
|
||||
}
|
||||
if (!output->setRun(true)) {
|
||||
logE("error while activating audio!");
|
||||
|
|
@ -3453,10 +3458,14 @@ void DivEngine::initDispatch(bool isRender) {
|
|||
BUSY_BEGIN;
|
||||
logV("initializing dispatch...");
|
||||
if (isRender) logI("render cores set");
|
||||
|
||||
lowQuality=getConfInt("audioQuality",0);
|
||||
dcHiPass=getConfInt("audioHiPass",1);
|
||||
|
||||
for (int i=0; i<song.systemLen; i++) {
|
||||
disCont[i].init(song.system[i],this,getChannelCount(song.system[i]),got.rate,song.systemFlags[i],isRender);
|
||||
disCont[i].setRates(got.rate);
|
||||
disCont[i].setQuality(lowQuality);
|
||||
disCont[i].setQuality(lowQuality,dcHiPass);
|
||||
}
|
||||
if (song.patchbayAuto) {
|
||||
saveLock.lock();
|
||||
|
|
@ -3535,7 +3544,6 @@ bool DivEngine::initAudioBackend() {
|
|||
}
|
||||
#endif
|
||||
|
||||
lowQuality=getConfInt("audioQuality",0);
|
||||
forceMono=getConfInt("forceMono",0);
|
||||
clampSamples=getConfInt("clampSamples",0);
|
||||
lowLatency=getConfInt("lowLatency",0);
|
||||
|
|
@ -3783,6 +3791,7 @@ bool DivEngine::init() {
|
|||
logE("not enough memory!");
|
||||
return false;
|
||||
}
|
||||
blip_set_dc(samp_bb,0);
|
||||
|
||||
samp_bbOut=new short[32768];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue