Finish TODO in SPU header

This commit is contained in:
Jaby 2024-09-28 13:19:40 +02:00
parent 5350380764
commit c308fba040
1 changed files with 0 additions and 2 deletions

View File

@ -9,7 +9,6 @@ namespace JabyEngine {
using SimpleVolume = SPU_IO::SimpleVolume;
using SweepVolume = SPU_IO::SweepVolume;
// TODO: Rename to sample...?
struct Voice {
size_t get_id() const {
return reinterpret_cast<size_t>(this);
@ -24,7 +23,6 @@ namespace JabyEngine {
}
void set_volume(SimpleVolume left, SimpleVolume right) {
// TODO: Verify that assembly code is super simple
SPU_IO::Voice[Voice::get_id()].volumeLeft.write(SweepVolume::create(left));
SPU_IO::Voice[Voice::get_id()].volumeRight.write(SweepVolume::create(right));
}