Addressing comments
This commit is contained in:
parent
3f2b2a6a4c
commit
ed779f443a
6 changed files with 6 additions and 14 deletions
|
|
@ -1571,9 +1571,6 @@ void DivEngine::convertOldFlags(unsigned int oldFlags, DivConfig& newFlags, DivS
|
|||
newFlags.set("echoDelay",(int)(oldFlags&0xfff));
|
||||
newFlags.set("echoFeedback",(int)((oldFlags>>12)&255));
|
||||
break;
|
||||
case DIV_SYSTEM_K007232:
|
||||
if (oldFlags&1) newFlags.set("stereo",true);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,14 +128,14 @@ void DivPlatformK007232::tick(bool sysTick) {
|
|||
if (chan[i].std.panL.had) {
|
||||
chan[i].panning&=0xf0;
|
||||
chan[i].panning|=chan[i].std.panL.val&15;
|
||||
if (!isMuted[i] && stereo) {
|
||||
if ((!isMuted[i]) && stereo) {
|
||||
chan[i].volumeChanged=true;
|
||||
}
|
||||
}
|
||||
if (chan[i].std.panR.had) {
|
||||
chan[i].panning&=0x0f;
|
||||
chan[i].panning|=(chan[i].std.panR.val&15)<<4;
|
||||
if (!isMuted[i] && stereo) {
|
||||
if ((!isMuted[i]) && stereo) {
|
||||
chan[i].volumeChanged=true;
|
||||
}
|
||||
}
|
||||
|
|
@ -158,7 +158,7 @@ void DivPlatformK007232::tick(bool sysTick) {
|
|||
else {
|
||||
chan[i].lvol=chan[i].rvol=isMuted[i]?0:chan[i].outVol&0xf;
|
||||
const unsigned char prevVolume=lastVolume;
|
||||
lastVolume=(lastVolume&~(0xf<<(i<<2)))|((chan[i].outVol&0xf)<<(i<<2));
|
||||
lastVolume=(lastVolume&~(0xf<<(i<<2)))|((chan[i].lvol&0xf)<<(i<<2));
|
||||
if (prevVolume!=lastVolume) {
|
||||
rWrite(0xc,lastVolume);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ class DivPlatformK007232: public DivDispatch, public k007232_intf {
|
|||
friend void putDispatchChip(void*,int);
|
||||
friend void putDispatchChan(void*,int,int);
|
||||
|
||||
void chWrite(unsigned char ch, unsigned int addr, unsigned char val);
|
||||
public:
|
||||
u8 read_sample(u8 ne, u32 address);
|
||||
void acquire(short* bufL, short* bufR, size_t start, size_t len);
|
||||
|
|
@ -128,8 +129,6 @@ class DivPlatformK007232: public DivDispatch, public k007232_intf {
|
|||
DivDispatch(),
|
||||
k007232_intf(),
|
||||
k007232(*this) {}
|
||||
private:
|
||||
void chWrite(unsigned char ch, unsigned int addr, unsigned char val);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1694,7 +1694,7 @@ void DivEngine::registerSystems() {
|
|||
);
|
||||
|
||||
sysDefs[DIV_SYSTEM_K007232]=new DivSysDef(
|
||||
"Konami K007232", NULL, 0xc1 /*Placeholder*/, 0, 2, false, true, 0, false, 1U<<DIV_SAMPLE_DEPTH_8BIT,
|
||||
"Konami K007232", NULL, 0xc1, 0, 2, false, true, 0, false, 1U<<DIV_SAMPLE_DEPTH_8BIT,
|
||||
"this PCM chip was widely used at Konami arcade boards in 1986-1990.",
|
||||
{"Channel 1", "Channel 2"},
|
||||
{"CH1", "CH2"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue