| 1 | #cxx . . $ `<file>/mednafen/vb/vsu.h`/ifndef __VB_VSU_H |
| 2 | #define __VB_VSU_Hcxx . . $ `mednafen/vb/vsu.h:2:9`! |
| 3 | |
| 4 | #include "../include/blip/Blip_Buffer.h"cxx . . $ `<file>/mednafen/include/blip/Blip_Buffer.h`/ |
| 5 | |
| 6 | class VSUcxx . . $ VSU# |
| 7 | { |
| 8 | public: |
| 9 | |
| 10 | VSUcxx . . $ VSU#VSU(ad7d7afb16d524bd).(Blip_Buffercxx . . $ Blip_Buffer# *bb_l, Blip_Buffercxx . . $ Blip_Buffer# *bb_r) MDFN_COLDcxx . . $ `mednafen/mednafen-types.h:103:9`!; |
| 11 | ~cxx . . $ VSU#`~VSU`(ced63f7c635d850d).VSUcxx . . $ VSU#() MDFN_COLDcxx . . $ `mednafen/mednafen-types.h:103:9`!; |
| 12 | |
| 13 | void Powercxx . . $ VSU#Power(49f6e7a06ebc5aa8).(void) MDFN_COLDcxx . . $ `mednafen/mednafen-types.h:103:9`!; |
| 14 | |
| 15 | void Writecxx . . $ VSU#Write(1d21b704d38112cf).(int32cxx . . $ int32# timestamp, uint32cxx . . $ uint32# A, uint8cxx . . $ uint8# V); |
| 16 | |
| 17 | void EndFramecxx . . $ VSU#EndFrame(d4f767463ce0a6b3).(int32cxx . . $ int32# timestamp); |
| 18 | |
| 19 | int StateActioncxx . . $ VSU#StateAction(a45b884b8cf568d5).(StateMemcxx . . $ StateMem# *sm, int load, int data_only); |
| 20 | |
| 21 | uint8cxx . . $ uint8# PeekWavecxx . . $ VSU#PeekWave(e77b674d7ec06db6).(const unsigned int which, uint32cxx . . $ uint32# Address); |
| 22 | void PokeWavecxx . . $ VSU#PokeWave(10e3fdc6547212ea).(const unsigned int which, uint32cxx . . $ uint32# Address, uint8cxx . . $ uint8# value); |
| 23 | |
| 24 | uint8cxx . . $ uint8# PeekModWavecxx . . $ VSU#PeekModWave(32407b39b2dfce37).(uint32cxx . . $ uint32# Address); |
| 25 | void PokeModWavecxx . . $ VSU#PokeModWave(cc289a6b3dfc48da).(uint32cxx . . $ uint32# Address, uint8cxx . . $ uint8# value); |
| 26 | |
| 27 | private: |
| 28 | |
| 29 | void CalcCurrentOutputcxx . . $ VSU#CalcCurrentOutput(4b55c833e9dbf0bc).(int ch, int &left, int &right); |
| 30 | |
| 31 | void Updatecxx . . $ VSU#Update(d4f767463ce0a6b3).(int32cxx . . $ int32# timestamp); |
| 32 | |
| 33 | uint8cxx . . $ uint8# IntlControlcxx . . $ VSU#IntlControl.[6]; |
| 34 | uint8cxx . . $ uint8# LeftLevelcxx . . $ VSU#LeftLevel.[6]; |
| 35 | uint8cxx . . $ uint8# RightLevelcxx . . $ VSU#RightLevel.[6]; |
| 36 | uint16cxx . . $ uint16# Frequencycxx . . $ VSU#Frequency.[6]; |
| 37 | uint16cxx . . $ uint16# EnvControlcxx . . $ VSU#EnvControl.[6]; // Channel 5/6 extra functionality tacked on too. |
| 38 | |
| 39 | uint8cxx . . $ uint8# RAMAddresscxx . . $ VSU#RAMAddress.[6]; |
| 40 | |
| 41 | uint8cxx . . $ uint8# SweepControlcxx . . $ VSU#SweepControl.; |
| 42 | |
| 43 | uint8cxx . . $ uint8# WaveDatacxx . . $ VSU#WaveData.[5][0x20]; |
| 44 | |
| 45 | uint8cxx . . $ uint8# ModDatacxx . . $ VSU#ModData.[0x20]; |
| 46 | |
| 47 | // |
| 48 | // |
| 49 | // |
| 50 | int32cxx . . $ int32# EffFreqcxx . . $ VSU#EffFreq.[6]; |
| 51 | int32cxx . . $ int32# Envelopecxx . . $ VSU#Envelope.[6]; |
| 52 | |
| 53 | int32cxx . . $ int32# WavePoscxx . . $ VSU#WavePos.[6]; |
| 54 | int32cxx . . $ int32# ModWavePoscxx . . $ VSU#ModWavePos.; |
| 55 | |
| 56 | int32cxx . . $ int32# LatcherClockDividercxx . . $ VSU#LatcherClockDivider.[6]; |
| 57 | |
| 58 | int32cxx . . $ int32# FreqCountercxx . . $ VSU#FreqCounter.[6]; |
| 59 | int32cxx . . $ int32# IntervalCountercxx . . $ VSU#IntervalCounter.[6]; |
| 60 | int32cxx . . $ int32# EnvelopeCountercxx . . $ VSU#EnvelopeCounter.[6]; |
| 61 | int32cxx . . $ int32# SweepModCountercxx . . $ VSU#SweepModCounter.; |
| 62 | |
| 63 | int32cxx . . $ int32# EffectsClockDividercxx . . $ VSU#EffectsClockDivider.[6]; |
| 64 | int32cxx . . $ int32# IntervalClockDividercxx . . $ VSU#IntervalClockDivider.[6]; |
| 65 | int32cxx . . $ int32# EnvelopeClockDividercxx . . $ VSU#EnvelopeClockDivider.[6]; |
| 66 | int32cxx . . $ int32# SweepModClockDividercxx . . $ VSU#SweepModClockDivider.; |
| 67 | |
| 68 | int32cxx . . $ int32# NoiseLatcherClockDividercxx . . $ VSU#NoiseLatcherClockDivider.; |
| 69 | uint32cxx . . $ uint32# NoiseLatchercxx . . $ VSU#NoiseLatcher.; |
| 70 | |
| 71 | uint32cxx . . $ uint32# lfsrcxx . . $ VSU#lfsr.; |
| 72 | |
| 73 | int32cxx . . $ int32# last_outputcxx . . $ VSU#last_output.[6][2]; |
| 74 | int32cxx . . $ int32# last_tscxx . . $ VSU#last_ts.; |
| 75 | |
| 76 | Blip_Buffercxx . . $ Blip_Buffer# *sbufcxx . . $ VSU#sbuf.[2]; |
| 77 | Blip_Synthcxx . . $ Blip_Synth#<blip_good_qualitycxx . . $ blip_good_quality., 1024> Synthcxx . . $ VSU#Synth.; |
| 78 | Blip_Synthcxx . . $ Blip_Synth#<blip_med_qualitycxx . . $ blip_med_quality., 1024> NoiseSynthcxx . . $ VSU#NoiseSynth.; |
| 79 | }; |
| 80 | |
| 81 | #endif |