dipl/code/textadv/src/sound.c
Tyrolyean a78cc80bb2
Added stuff from corona start
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
2020-03-14 22:30:05 +01:00

34 lines
914 B
C

/* Copyright © 2020 tyrolyean
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "sound.h"
#include "dac.h"
void update_sound(){
static unsigned long long audio_time = 0;
audio_time++;
if(!(audio_time%2000)){
dac_mode++;
if(dac_mode > DAC_MODE_NOISE){
dac_mode = 1;
}
}
return;
}