kopia lustrzana https://github.com/pimoroni/pimoroni-pico
commit
ec0077ae71
|
@ -517,6 +517,7 @@ namespace pimoroni {
|
|||
value = value < 0.0f ? 0.0f : value;
|
||||
value = value > 1.0f ? 1.0f : value;
|
||||
this->volume = floor(value * 255.0f);
|
||||
this->synth.volume = this->volume * 255.0f;
|
||||
}
|
||||
|
||||
float GalacticUnicorn::get_volume() {
|
||||
|
|
|
@ -106,7 +106,7 @@ namespace pimoroni {
|
|||
|
||||
class PicoSynth {
|
||||
public:
|
||||
const uint16_t volume = 0x2fff;
|
||||
uint16_t volume = 0x2fff;
|
||||
|
||||
static const uint CHANNEL_COUNT = 8;
|
||||
AudioChannel channels[CHANNEL_COUNT];
|
||||
|
|
Ładowanie…
Reference in New Issue