#include <samples.h>
Collaboration diagram for Sample:
Public Member Functions | |
Sample (C6510 *a6510) | |
C'tor. | |
~Sample () | |
D'tor. | |
void | sampleEmuInit (sidEmu *aTheSidEmu) |
precalculate tables + reset | |
void | sampleEmuCheckForInit () |
void | sampleEmuReset (sidEmu *aTheSidEmu) |
reset some important variables | |
Private Types | |
enum | { FM_NONE, FM_GALWAYON, FM_GALWAYOFF, FM_HUELSON, FM_HUELSOFF } |
Private Member Functions | |
void | channelReset (sampleChannel &ch) |
void | channelFree (sampleChannel &ch, const uword regBase) |
void | channelTryInit (sampleChannel &ch, const uword regBase) |
ubyte | channelProcess (sampleChannel &ch, const uword regBase) |
void | sampleEmuTryStopAll () |
sbyte | sampleEmuSilence () |
sbyte | sampleEmu () |
sbyte | sampleEmuTwo () |
void | GalwayInit () |
sbyte | GalwayReturnSample () |
void | GetNextFour () |
Private Attributes | |
friend | Mixer |
udword | sampleClock |
sampleChannel | ch4 |
sampleChannel | ch5 |
ubyte | galwayNoiseTab2 [64 *16] |
sbyte(Sample::* | sampleEmuRout )() |
function pointer to the sampler routine | |
ubyte * | c64mem1 |
pointer to 64KB C64-RAM owned by C6510 | |
ubyte * | c64mem2 |
pointer to Basic-ROM, VIC, SID, I/O, Kernal-ROM owned by C6510 |
Definition at line 59 of file samples.h.
|
|
|
C'tor.
Definition at line 46 of file samples.cpp. References C6510::c64mem1, c64mem1, C6510::c64mem2, c64mem2, CTOR, sampleEmuRout, and sampleEmuSilence(). |
|
D'tor.
Definition at line 60 of file samples.cpp. References DTOR. |
|
Definition at line 83 of file samples.cpp. References sampleChannel::Active, c64mem2, FM_NONE, and sampleChannel::Mode. Referenced by channelProcess(), sampleEmuCheckForInit(), and sampleEmuReset(). |
|
Definition at line 152 of file samples.cpp. References sampleChannel::Address, c64mem1, channelFree(), sampleChannel::EndAddr, HI, LO, sampleChannel::Pos_stp, sampleChannel::PosAdd_stp, sampleChannel::RepAddr, sampleChannel::Repeat, sampleChannel::SampleOrder, sampleChannel::Scale, SO_LOWHIGH, ubyte, udword, and uword. Referenced by sampleEmu(), and sampleEmuTwo(). |
|
Definition at line 69 of file samples.cpp. References sampleChannel::Active, FM_NONE, sampleChannel::Mode, sampleChannel::Period, and sampleChannel::Pos_stp. Referenced by sampleEmuReset(). |
|
Definition at line 90 of file samples.cpp. References sampleChannel::Active, sampleChannel::Address, c64mem2, sampleChannel::EndAddr, FM_GALWAYON, FM_HUELSON, FM_NONE, sampleChannel::Mode, sampleChannel::Period, sampleChannel::Pos_stp, sampleChannel::PosAdd_stp, readLEword(), sampleChannel::RepAddr, sampleChannel::Repeat, sampleClock, sampleChannel::SampleOrder, sbyte, sampleChannel::Scale, udword, uword, and sampleChannel::VolShift. Referenced by sampleEmuCheckForInit(). |
|
Definition at line 393 of file samples.cpp. References sampleChannel::Active, sampleChannel::Address, c64mem2, ch4, sampleChannel::Counter, FM_GALWAYON, GalwayReturnSample(), GetNextFour(), sampleChannel::LoopWait, sampleChannel::Mode, sampleChannel::NullWait, sampleChannel::Pos_stp, readLEword(), sampleChannel::SamAddr, sampleChannel::SamLen, sampleEmuRout, sampleEmuSilence(), and uword. Referenced by sampleEmuCheckForInit(). |
|
Definition at line 439 of file samples.cpp. References sampleChannel::Active, ch4, sampleChannel::Counter, FM_GALWAYOFF, galwayNoiseTab2, GetNextFour(), HI, sampleChannel::Mode, sampleChannel::Period_stp, sampleChannel::Pos_stp, sampleChannel::SamAddr, sampleChannel::SamLen, sampleEmuRout, sampleEmuSilence(), sbyte, and udword. Referenced by GalwayInit(). |
|
Definition at line 366 of file samples.cpp. References sampleChannel::Address, c64mem1, ch4, sampleChannel::Counter, sampleChannel::LoopWait, sampleChannel::NullWait, sampleChannel::Period, sampleChannel::Period_stp, sampleClock, udword, and uword. Referenced by GalwayInit(), and GalwayReturnSample(). |
|
Definition at line 345 of file samples.cpp. References sampleChannel::Active, ch4, channelProcess(), sampleConvertTab, sbyte, and sampleChannel::VolShift. Referenced by sampleEmuCheckForInit(). |
|
Definition at line 294 of file samples.cpp. References c64mem2, ch4, ch5, channelFree(), channelTryInit(), FM_HUELSON, GalwayInit(), sampleChannel::Mode, sampleEmu(), sampleEmuRout, sampleEmuTryStopAll(), and sampleEmuTwo(). Referenced by sidEmu::sidEmuFillBuffer(). |
|
precalculate tables + reset
Definition at line 263 of file samples.cpp. References galwayNoiseTab1, galwayNoiseTab2, and sampleEmuReset(). Referenced by sidEmu::sidEmuConfigure(). |
|
reset some important variables
Definition at line 243 of file samples.cpp. References sidEmu::C64_clockSpeed, c64mem2, ch4, ch5, channelFree(), channelReset(), sidEmu::PCMfreq, sampleClock, sampleEmuRout, sampleEmuSilence(), and udword. Referenced by emuEngine::resetSampleEmu(), sampleEmuInit(), and sidEmu::sidEmuReset(). |
|
Definition at line 281 of file samples.cpp. References sbyte. Referenced by GalwayInit(), GalwayReturnSample(), Sample(), sampleEmuReset(), and sampleEmuTryStopAll(). |
|
Definition at line 286 of file samples.cpp. References sampleChannel::Active, ch4, ch5, sampleEmuRout, and sampleEmuSilence(). Referenced by sampleEmuCheckForInit(). |
|
Definition at line 354 of file samples.cpp. References sampleChannel::Active, ch4, ch5, channelProcess(), sampleConvertTab, sbyte, and sampleChannel::VolShift. Referenced by sampleEmuCheckForInit(). |
|
pointer to 64KB C64-RAM owned by C6510
Definition at line 102 of file samples.h. Referenced by channelProcess(), GetNextFour(), and Sample(). |
|
pointer to Basic-ROM, VIC, SID, I/O, Kernal-ROM owned by C6510
Definition at line 103 of file samples.h. Referenced by channelFree(), channelTryInit(), GalwayInit(), Sample(), sampleEmuCheckForInit(), and sampleEmuReset(). |
|
Definition at line 97 of file samples.h. Referenced by GalwayInit(), GalwayReturnSample(), GetNextFour(), sampleEmu(), sampleEmuCheckForInit(), sampleEmuReset(), sampleEmuTryStopAll(), and sampleEmuTwo(). |
|
Definition at line 97 of file samples.h. Referenced by sampleEmuCheckForInit(), sampleEmuReset(), sampleEmuTryStopAll(), and sampleEmuTwo(). |
|
Definition at line 98 of file samples.h. Referenced by GalwayReturnSample(), and sampleEmuInit(). |
|
|
|
Definition at line 96 of file samples.h. Referenced by channelTryInit(), GetNextFour(), and sampleEmuReset(). |
|