Bladeren bron

Fix compiler warnings

dds
PaulStoffregen 10 jaren geleden
bovenliggende
commit
7b16c9dc0c
2 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. +2
    -2
      Audio.cpp
  2. +3
    -3
      Audio.h

+ 2
- 2
Audio.cpp Bestand weergeven

@@ -1420,7 +1420,7 @@ void dma_ch4_isr(void)
const int16_t *src, *end;
int16_t *dest;
audio_block_t *block;
uint32_t saddr, offset;
uint32_t saddr;

saddr = (uint32_t)DMA_TCD4_SADDR;
DMA_CINT = 4;
@@ -1437,7 +1437,7 @@ void dma_ch4_isr(void)
}
block = AudioOutputAnalog::block_left_1st;
if (block) {
src = &block->data[offset];
src = block->data;
do {
// TODO: this should probably dither
*dest++ = ((*src++) + 32767) >> 4;

+ 3
- 3
Audio.h Bestand weergeven

@@ -127,9 +127,9 @@ public AudioStream
{
public:
AudioSynthWaveform(void) :
AudioStream(0,NULL), tone_amp(0), ramp_up(0), ramp_down(0),
ramp_length(0), tone_phase(0), tone_incr(0),
tone_type(0), tone_freq(0)
AudioStream(0,NULL),
tone_freq(0), tone_phase(0), tone_incr(0), tone_type(0),
ramp_down(0), ramp_up(0), ramp_length(0)
{
}
// Change the frequency on-the-fly to permit a phase-continuous

Laden…
Annuleren
Opslaan