bsnes/higan/gba/apu/registers.cpp

13 lines
289 B
C++

APU::Registers::SoundBias::operator uint16() const {
return (
(level << 0)
| (amplitude << 14)
);
}
auto APU::Registers::SoundBias::operator=(uint16 source) -> uint16 {
level = (source >> 0) & 1023;
amplitude = (source >> 14) & 3;
return operator uint16();
}