mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 04:55:13 +00:00
resVol isn't shared
This commit is contained in:
parent
b903a4276e
commit
e58fb42d52
3 changed files with 7 additions and 4 deletions
|
@ -56,11 +56,10 @@ struct SharedChannelFreq: public SharedChannel {
|
|||
// common shared channel volume struct
|
||||
template<typename T>
|
||||
struct SharedChannelVolume {
|
||||
T vol, outVol, resVol;
|
||||
T vol, outVol;
|
||||
SharedChannelVolume(T initVol):
|
||||
vol(initVol),
|
||||
outVol(initVol),
|
||||
resVol(initVol) {}
|
||||
outVol(initVol) {}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
class DivPlatformN163: public DivDispatch {
|
||||
struct Channel: public SharedChannelFreq, public SharedChannelVolume<signed char> {
|
||||
signed char resVol;
|
||||
short wave, wavePos, waveLen;
|
||||
unsigned char waveMode;
|
||||
short loadWave, loadPos, loadLen;
|
||||
|
@ -43,6 +44,7 @@ class DivPlatformN163: public DivDispatch {
|
|||
Channel():
|
||||
SharedChannelFreq(),
|
||||
SharedChannelVolume<signed char>(15),
|
||||
resVol(15),
|
||||
wave(-1),
|
||||
wavePos(0),
|
||||
waveLen(0),
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
class DivPlatformQSound: public DivDispatch {
|
||||
struct Channel: public SharedChannelFreq, public SharedChannelVolume<int> {
|
||||
int resVol;
|
||||
int sample, wave;
|
||||
int panning;
|
||||
int echo;
|
||||
|
@ -38,7 +39,8 @@ class DivPlatformQSound: public DivDispatch {
|
|||
}
|
||||
Channel():
|
||||
SharedChannelFreq(),
|
||||
SharedChannelVolume<int>(4095),
|
||||
SharedChannelVolume<int>(255),
|
||||
resVol(4095),
|
||||
sample(-1),
|
||||
panning(0x10),
|
||||
echo(0),
|
||||
|
|
Loading…
Reference in a new issue