mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
soundddddd
This commit is contained in:
parent
3362289e3a
commit
c5b30bab75
1 changed files with 6 additions and 5 deletions
|
@ -25,7 +25,7 @@
|
||||||
#define rWrite(a,v) if (!skipRegisterWrites) {pendingWrites[a]=v;}
|
#define rWrite(a,v) if (!skipRegisterWrites) {pendingWrites[a]=v;}
|
||||||
#define immWrite(a,v) if (!skipRegisterWrites) {writes.emplace(a,v); if (dumpWrites) {addWrite(a,v);} }
|
#define immWrite(a,v) if (!skipRegisterWrites) {writes.emplace(a,v); if (dumpWrites) {addWrite(a,v);} }
|
||||||
|
|
||||||
#define CHIP_FREQBASE 9440540
|
#define CHIP_FREQBASE 1180067
|
||||||
|
|
||||||
const char* DivPlatformOPLL::getEffectName(unsigned char effect) {
|
const char* DivPlatformOPLL::getEffectName(unsigned char effect) {
|
||||||
switch (effect) {
|
switch (effect) {
|
||||||
|
@ -80,7 +80,8 @@ void DivPlatformOPLL::acquire_nuked(short* bufL, short* bufR, size_t start, size
|
||||||
|
|
||||||
for (size_t h=start; h<start+len; h++) {
|
for (size_t h=start; h<start+len; h++) {
|
||||||
if (!writes.empty() && --delay<0) {
|
if (!writes.empty() && --delay<0) {
|
||||||
delay=1;
|
// 84 is safe value
|
||||||
|
delay=18;
|
||||||
QueuedWrite& w=writes.front();
|
QueuedWrite& w=writes.front();
|
||||||
if (w.addrOrVal) {
|
if (w.addrOrVal) {
|
||||||
OPLL_Write(&fm,1,w.val);
|
OPLL_Write(&fm,1,w.val);
|
||||||
|
@ -95,10 +96,10 @@ void DivPlatformOPLL::acquire_nuked(short* bufL, short* bufR, size_t start, size
|
||||||
}
|
}
|
||||||
|
|
||||||
OPLL_Clock(&fm,o);
|
OPLL_Clock(&fm,o);
|
||||||
if (o[0]<-32768) o[0]=-32768;
|
//if (o[0]<-32768) o[0]=-32768;
|
||||||
if (o[1]>32767) o[1]=32767;
|
//if (o[1]>32767) o[1]=32767;
|
||||||
|
|
||||||
bufL[h]=(o[0]+o[1])<<4;
|
bufL[h]=(o[0]+o[1])<<12;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue