class Yuno::Chips::QSound
- Yuno::Chips::QSound
- Yuno::AbstractChip
- Reference
- Object
Overview
Capcom DL-1425 QSound sound chip emulator interface
Defined in:
yunosynth/chips/qsound-ctr.cryunosynth/chips/qsound.cr
Constant Summary
-
CHIP_ID =
31_u32
Constructors
Class Method Summary
Instance Method Summary
-
#baseVolume : UInt16
Returns the base volume for this chip.
-
#chip : AbstractEmulator
The internal interface for the chip.
-
#emuCore : Symbol
Returns a symbol representing the emulation core that this chip is set up to use.
-
#getClock : UInt32
Gets the correct clock value for this chip using the given
VgmFile
. -
#getStartFlags(vgm : VgmFile) : ChipFlags | Nil
Gets a set of flags, if any, that are needed to call the
#start
method. -
#getVolModifier : UInt32
Gets a volume modification value for this chip.
-
#id : UInt32
A numeric ID that is used to identify the chip.
-
#name : String
Returns the human-readable name for this chip.
-
#read(chipIndex : UInt8, offset : Int) : UInt8 | UInt16 | UInt32
Reads a value from the chip at the given memory offset.
-
#reset(chipIndex : UInt8) : Nil
Resets this chip to its initial state.
-
#setMuteMask(chipIndex : UInt8, mask : UInt32) : Nil
Sets the mute mask for this chip.
-
#shortName : String
Returns a short version of the human-readable name for this chip.
-
#start(chipIndex : UInt8, clock : UInt32, flags : ChipFlags | Nil = nil) : UInt32
Starts this chip, setting the clock rate to the given value.
-
#type : ChipType
Returns the
ChipType
for this chip. -
#update(chipIndex : UInt8, outputs : OutputBuffers, samples : Int) : Nil
Updates the chip's internal state, then writes the new audio data to
outputs
. -
#write(chipIndex : UInt8, offset : Int, data : Int, port : UInt8 = 0) : Nil
Writes a value to the given memory offset for this chip.
-
#writeDac(port : Int, command : Int, data : Int) : Nil
Writes DAC commands to this chip.
- #writeRom(romSize : Int32, dataStart : Int32, dataLength : Int32, romData : Slice(UInt8)) : Nil
Instance methods inherited from class Yuno::AbstractChip
baseVolume : UInt16
baseVolume,
emuCore : Symbol
emuCore,
getClock : UInt32
getClock,
getStartFlags(vgm : VgmFile) : ChipFlags | Nil
getStartFlags,
getVolModifier : UInt32
getVolModifier,
id : UInt32
id,
name : String
name,
playerSampleRate : UInt32
playerSampleRate,
read(chipIndex : UInt8, offset : Int) : UInt8 | UInt16 | UInt32
read,
resamplerType : Resampler::ResamplerType
resamplerType,
resamplerType=(resamplerType : Resampler::ResamplerType)
resamplerType=,
reset(chipIndex : UInt8) : Nil
reset,
sampleRate : UInt32
sampleRate,
sampleRate=(sampleRate : UInt32)
sampleRate=,
setMuteMask(chipIndex : UInt8, mask : UInt32) : Nil
setMuteMask,
setStereoMask(chipIndex : UInt8, mask : UInt32) : Nil
setStereoMask,
shortName : String
shortName,
start(chipIndex : UInt8, clock : UInt32, flags : ChipFlags | Nil = nil) : UInt32
start,
toChipTable : ChipTable
toChipTable,
type : ChipType
type,
update(chipIndex : UInt8, outputs : Array(Slice(Int32)), samples : Int) : Nil
update,
updatePaired(chipIndex : UInt8, outputs : OutputBuffers, samples : UInt32) : Nil
updatePaired,
volume : UInt16
volume,
volume=(volume : UInt16)
volume=,
write(chipIndex : UInt8, offset : Int, data : Int, port : UInt8 = 0) : Nil
write,
writeDac(port : Int, command : Int, data : Int) : Nil
writeDac
Constructor methods inherited from class Yuno::AbstractChip
new(vgm : VgmFile, playbackSampleRate : UInt32, newSamplingMode : UInt8, newPlayerSampleRate : UInt32, *, emuCore : Symbol | Nil = nil, flags : ChipFlags | Nil = nil)
new
Class methods inherited from class Yuno::AbstractChip
defaultEmuCore : Symbol
defaultEmuCore
Constructor Detail
Class Method Detail
Instance Method Detail
Returns the base volume for this chip. This is the value used by
VgmFile#getChipVolume
to calculate the appropriate output volume for a
chip.
Returns a symbol representing the emulation core that this chip is set up to use.
Gets the correct clock value for this chip using the given VgmFile
.
Gets a set of flags, if any, that are needed to call the #start
method.
Gets a volume modification value for this chip. This is used because not all emulators output at the same level.
A numeric ID that is used to identify the chip. This is used internally by VGM files.
Returns the human-readable name for this chip.
Reads a value from the chip at the given memory offset.
Resets this chip to its initial state.
Sets the mute mask for this chip.
Returns a short version of the human-readable name for this chip.
Starts this chip, setting the clock rate to the given value. Not all
chips use the flags
parameter.
Updates the chip's internal state, then writes the new audio data to outputs
.
Writes a value to the given memory offset for this chip. Not all chips
use the port
parameter.
Writes DAC commands to this chip.