Mesen2/Core/PCE/CdRom/PceAudioFader.h
Sour c6b86ba887 PCE: CD-ROM emulation improvements
-ADPCM edge cases work better (reset, length latching, dma, etc.)
-BRAM unlocking/locking fixes
-Read ToC command returns the correct amount of data
-SCSI data port returns the drive's reply whenever a reply is being read, regardless of the value written to the port through $1801
-Implemented/fixed audio sample read behavior (latching, L/R toggle)
-Fixed missing (unused) readable/writable bits in some registes

All of these fixes are based on the test results from krikzz's test rom here: https://github.com/krikzz/turbo-ed-pro-pub/tree/main/tcd-verificator
2023-12-27 23:27:07 +09:00

23 lines
No EOL
458 B
C++

#pragma once
#include "pch.h"
#include "PCE/PceTypes.h"
#include "Utilities/ISerializable.h"
class PceConsole;
class PceAudioFader : public ISerializable
{
private:
PceConsole* _console = nullptr;
PceAudioFaderState _state = {};
public:
PceAudioFader(PceConsole* console);
PceAudioFaderState& GetState() { return _state; }
uint8_t Read();
void Write(uint8_t value);
double GetVolume(PceAudioFaderTarget target);
void Serialize(Serializer& s);
};