38 typedef void (
Sound::*Synthesizer)(void);
347 mTonEnA = value & 1 ?
false :
true;
349 mTonEnB = value & 2 ?
false :
true;
351 mTonEnC = value & 4 ?
false :
true;
381 #endif // CPC_SOUND_H int mLevelBR[32]
Definition: sound.h:236
TCounter mTonCounterB
Definition: sound.h:191
tUBYTE * mSndBufferEnd
Definition: sound.h:138
tUBYTE mTonB
Definition: sound.h:231
uint stereo() const
Definition: sound.h:100
bool mEnvelopeEnC
Definition: sound.h:228
void synthesizerStereo8()
Definition: sound.cpp:481
TCounter mTonCounterA
Definition: sound.h:191
tUBYTE * mSndStream
Definition: sound.h:139
bool mNoiseEnA
Definition: sound.h:223
union cpcx::Sound::@3 mEnvelopeCounter
void initAYCounterVars()
Definition: sound.cpp:762
tUBYTE mIndexCR
Definition: sound.h:247
void caseEnvType11()
Definition: sound.cpp:156
void setCycleCountHigh(uint value)
Definition: sound.h:118
void setStream(tUBYTE *ptr)
Definition: sound.h:78
void synthesizerLogicQ()
Definition: sound.cpp:298
int mLevelTape
Definition: sound.h:241
uint cycleCountInitHigh() const
Definition: sound.h:109
void synthesizerMono16()
Definition: sound.cpp:612
tUBYTE mIndexBL
Definition: sound.h:244
void synthesizerMixerQ()
Definition: sound.cpp:339
TCounter mTonCounterC
Definition: sound.h:191
union cpcx::Sound::LoopCount mLoopCount
void setAmplitudeB(tUBYTE value)
Definition: psg.h:87
void setBufferPtrU(tUBYTE ptr)
Definition: sound.h:92
Namespace for all CPC components.
Definition: colours.cpp:22
uint mSndDevice
Definition: sound.h:130
uint mSndStereo
Definition: sound.h:128
tINT64 * mLoopCount64
Definition: sound.h:168
uint mSndBits
Definition: sound.h:127
tUBYTE mIndexAL
Definition: sound.h:242
const tINT64 & cycleCountInitBoth() const
Definition: sound.h:107
void setVolume(uint value)
Definition: sound.h:86
tINT64 mLoopCountInit
Definition: sound.h:170
void setAYRegister(int num, tUBYTE value)
Definition: sound.h:257
uint playbackRate() const
Definition: sound.h:98
uint device() const
Definition: sound.h:102
bool mTonEnA
Definition: sound.h:220
void synthesizerStereo16()
Definition: sound.cpp:455
union cpcx::Sound::@2 mNoise
The sound chip of the CPC.
Definition: sound.h:31
int64_t tINT64
Definition: types.h:64
void setCycleCountBoth(const tINT64 &value)
Definition: sound.h:116
void setFirstPeriod(bool value)
Definition: psg.h:96
Synthesizer mSynthesizer
Definition: sound.h:123
void setMixerRegister(tUBYTE value)
Definition: sound.h:344
bool bufferFull() const
Definition: sound.h:95
int mPreAmpMax
Definition: sound.h:250
bool mNoiseEnC
Definition: sound.h:225
int mLevelPP[256]
Definition: sound.h:215
void initAY()
Definition: sound.cpp:774
tUBYTE * mSndBuffer
Definition: sound.h:137
void synthesizerMixerQMono()
Definition: sound.cpp:506
static const tDWORD mFreqTable[5]
Definition: sound.h:218
void setBits(uint value)
Definition: sound.h:84
uint cycleCountLow() const
Definition: sound.h:112
void caseEnvType10()
Definition: sound.cpp:134
void setAmplitudeC(tUBYTE value)
Definition: psg.h:88
tDWORD seed
Definition: sound.h:200
bool mTonEnB
Definition: sound.h:221
void setBufferFull(bool bf)
Definition: sound.h:94
void init(Psg *psg=0)
Definition: sound.cpp:42
int mLeftChan
Definition: sound.h:251
bool mTonEnC
Definition: sound.h:222
void setRegisterAY(int num, tUBYTE val)
Definition: psg.h:76
void caseEnvType4_7__15()
Definition: sound.cpp:116
void caseEnvType8()
Definition: sound.cpp:129
tWORD val
Definition: sound.h:198
tUBYTE mTonA
Definition: sound.h:230
uint cycleCountHigh() const
Definition: sound.h:113
void setNoise(tUBYTE value)
Definition: psg.h:84
bool mSndEnabled
Definition: sound.h:125
bool mEnvelopeEnA
Definition: sound.h:226
tDWORD high
Definition: sound.h:208
void setBufferSize(uint value)
Definition: sound.h:88
int mLevelAR[32]
Definition: sound.h:234
uint mSndBufferSize
Definition: sound.h:131
int mLevelCR[32]
Definition: sound.h:238
void setAmplitudeA(tUBYTE value)
Definition: psg.h:86
tUBYTE * bufferPtr() const
Definition: sound.h:104
static const tUWORD mAmplitudesAY[16]
Definition: sound.h:217
void setCycleCountInitBoth(const tINT64 &value)
Definition: sound.h:115
void setAmplA(tUBYTE value)
Definition: sound.h:357
void setCycleCountLow(uint value)
Definition: sound.h:117
Sound(Psg *psg=0)
Definition: sound.cpp:37
tUBYTE mIndexBR
Definition: sound.h:245
Psg * mPsg
Definition: sound.h:121
bool mBufferFull
Definition: sound.h:145
int mPreAmp
Definition: sound.h:249
uint mSndVolume
Definition: sound.h:129
void setBufferEnd(tUBYTE *ptr)
Definition: sound.h:77
int mLevelBL[32]
Definition: sound.h:237
tUBYTE * stream() const
Definition: sound.h:74
void setPlaybackRate(uint value)
Definition: sound.h:83
tDWORD freqTable(int num) const
Definition: sound.h:80
tUBYTE mTapeLevel
Definition: sound.h:140
void setEnvType(tUBYTE value)
Definition: psg.h:91
int mLevelCL[32]
Definition: sound.h:239
void setBufferPtrDW(tDWORD ptr)
Definition: sound.h:90
uint high
Definition: sound.h:152
tUBYTE * mSndBufferPtr
Definition: sound.h:132
tUBYTE * bufferEnd() const
Definition: sound.h:73
#define ROLAND_DEFAULT
Definition: compspec.h:46
tWORD low
Definition: sound.h:197
uint8_t tUBYTE
Definition: types.h:74
unsigned int uint
Definition: types.h:121
void setAmplC(tUBYTE value)
Definition: sound.h:373
tUBYTE mIndexAR
Definition: sound.h:243
uint bufferSize() const
Definition: sound.h:103
void setStereo(uint value)
Definition: sound.h:85
uint low
Definition: sound.h:151
void synthesizerMono8()
Definition: sound.cpp:634
int mRightChan
Definition: sound.h:252
void setAmplitudeEnv(int value)
Definition: psg.h:95
void setEnvelopeRegister(tUBYTE value)
Definition: sound.h:294
tDWORD low
Definition: sound.h:207
void caseEnvType14()
Definition: sound.cpp:187
void resetAYChipEmulation()
Definition: sound.cpp:747
uint bits() const
Definition: sound.h:99
bool enabled() const
Definition: sound.h:97
void caseEnvType12()
Definition: sound.cpp:169
void caseEnvType0_3__9()
Definition: sound.cpp:104
const tINT64 & cycleCountBoth() const
Definition: sound.h:111
uint volume() const
Definition: sound.h:101
void caseEnvType13()
Definition: sound.cpp:174
uint16_t tUWORD
Definition: types.h:80
int16_t tWORD
Definition: types.h:46
tINT64 both
Definition: sound.h:154
Synthesizer synthesizer()
Definition: sound.h:44
tUBYTE mIndexCL
Definition: sound.h:246
tUBYTE * buffer() const
Definition: sound.h:72
tUBYTE mTonC
Definition: sound.h:232
CaseEnvType mCaseEnvType
Definition: sound.h:213
uint cycleCountInitLow() const
Definition: sound.h:108
bool mEnvelopeEnB
Definition: sound.h:227
void setMixer(tUBYTE value)
Definition: psg.h:85
struct cpcx::Sound::@0::S s
void setSynthesizer(Synthesizer syn)
Definition: sound.h:43
uint mSndPlaybackRate
Definition: sound.h:126
void calculateLevelTables()
Definition: sound.cpp:657
bool mNoiseEnB
Definition: sound.h:224
void setBufferPtrW(tWORD ptr)
Definition: sound.h:91
~Sound() ROLAND_DEFAULT typedef void(Sound typedef void(Sound::* CaseEnvType)(void)
Definition: sound.h:39
void setBufferPtr(tUBYTE *ptr)
Definition: sound.h:89
void setBuffer(tUBYTE *ptr)
Definition: sound.h:76
int32_t tDWORD
Definition: types.h:52
union cpcx::Sound::@1 mCycleCountInit
void setAmplB(tUBYTE value)
Definition: sound.h:365
TCounter mNoiseCounter
Definition: sound.h:191
void setDevice(uint value)
Definition: sound.h:87
union cpcx::Sound::@0 mCycleCount
int mLevelAL[32]
Definition: sound.h:235
void setEnabled(bool value)
Definition: sound.h:82