Added DSP routines.
[cantaveria.git] / sound.c
blob0425de9b4823ad0bc41a5bc0766ddd9d86a22610
1 /*
2 Cantaveria - action adventure platform game
3 Copyright (C) 2009 Evan Rinehart
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to
18 The Free Software Foundation, Inc.
19 51 Franklin Street, Fifth Floor
20 Boston, MA 02110-1301, USA
23 #include <stdlib.h>
25 #include "synth.h"
26 #include "sound.h"
27 #include "util.h"
30 struct {
31 float* sounds[64];
32 int sound_c;
33 } my;
35 void process_audio(float lout[], float rout[], int len){
36 for(int i=0; i<len; i++){
37 lout[i] = 0;
38 rout[i] = 0;
42 int load_sound(char* filename){
43 return 0;
46 void play_sound(int id){
52 void init_sound(){
53 my.sound_c = 0;
55 init_synth();