NDS: get rid of core quality
This commit is contained in:
parent
87d1cf24a1
commit
5a2d4662aa
5 changed files with 0 additions and 45 deletions
|
|
@ -775,11 +775,6 @@ void DivDispatchContainer::init(DivSystem sys, DivEngine* eng, int chanCount, do
|
|||
break;
|
||||
case DIV_SYSTEM_NDS:
|
||||
dispatch=new DivPlatformNDS;
|
||||
if (isRender) {
|
||||
((DivPlatformNDS*)dispatch)->setCoreQuality(eng->getConfInt("ndsQualityRender",3));
|
||||
} else {
|
||||
((DivPlatformNDS*)dispatch)->setCoreQuality(eng->getConfInt("ndsQuality",3));
|
||||
}
|
||||
break;
|
||||
case DIV_SYSTEM_5E01:
|
||||
dispatch=new DivPlatformNES;
|
||||
|
|
|
|||
|
|
@ -579,32 +579,6 @@ void DivPlatformNDS::setFlags(const DivConfig& flags) {
|
|||
memCompo.capacity=(isDSi?16777216:4194304);
|
||||
}
|
||||
|
||||
void DivPlatformNDS::setCoreQuality(unsigned char q) {
|
||||
switch (q) {
|
||||
case 0:
|
||||
coreQuality=1024;
|
||||
break;
|
||||
case 1:
|
||||
coreQuality=512;
|
||||
break;
|
||||
case 2:
|
||||
coreQuality=256;
|
||||
break;
|
||||
case 3:
|
||||
coreQuality=128;
|
||||
break;
|
||||
case 4:
|
||||
coreQuality=32;
|
||||
break;
|
||||
case 5:
|
||||
coreQuality=8;
|
||||
break;
|
||||
default:
|
||||
coreQuality=128;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int DivPlatformNDS::init(DivEngine* p, int channels, int sugRate, const DivConfig& flags) {
|
||||
parent=p;
|
||||
dumpWrites=false;
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@ class DivPlatformNDS: public DivDispatch, public nds_sound_intf {
|
|||
|
||||
unsigned char* sampleMem;
|
||||
size_t sampleMemLen;
|
||||
int coreQuality;
|
||||
nds_sound_t nds;
|
||||
DivMemoryComposition memCompo;
|
||||
unsigned char regPool[288];
|
||||
|
|
@ -95,7 +94,6 @@ class DivPlatformNDS: public DivDispatch, public nds_sound_intf {
|
|||
virtual const DivMemoryComposition* getMemCompo(int index) override;
|
||||
virtual void renderSamples(int chipID) override;
|
||||
virtual void setFlags(const DivConfig& flags) override;
|
||||
void setCoreQuality(unsigned char q);
|
||||
virtual int init(DivEngine* parent, int channels, int sugRate, const DivConfig& flags) override;
|
||||
virtual void quit() override;
|
||||
DivPlatformNDS():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue