Finish TODO in SPU header
This commit is contained in:
parent
5350380764
commit
c308fba040
|
@ -9,7 +9,6 @@ namespace JabyEngine {
|
||||||
using SimpleVolume = SPU_IO::SimpleVolume;
|
using SimpleVolume = SPU_IO::SimpleVolume;
|
||||||
using SweepVolume = SPU_IO::SweepVolume;
|
using SweepVolume = SPU_IO::SweepVolume;
|
||||||
|
|
||||||
// TODO: Rename to sample...?
|
|
||||||
struct Voice {
|
struct Voice {
|
||||||
size_t get_id() const {
|
size_t get_id() const {
|
||||||
return reinterpret_cast<size_t>(this);
|
return reinterpret_cast<size_t>(this);
|
||||||
|
@ -24,7 +23,6 @@ namespace JabyEngine {
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_volume(SimpleVolume left, SimpleVolume right) {
|
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()].volumeLeft.write(SweepVolume::create(left));
|
||||||
SPU_IO::Voice[Voice::get_id()].volumeRight.write(SweepVolume::create(right));
|
SPU_IO::Voice[Voice::get_id()].volumeRight.write(SweepVolume::create(right));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue