Optimize busses; add samplerate changing library

This commit is contained in:
2023-01-16 05:27:28 +00:00
parent 8f6c8774de
commit 5da19ec407
8 changed files with 93 additions and 57 deletions

View File

@@ -2,7 +2,6 @@
#define SOUND_H
struct circbuf;
struct SDL_AudioStream;
struct Mix_Chunk {
int i;
@@ -23,16 +22,15 @@ struct soundstream {
};
struct soundconvstream {
// SDL_AudioStream *srconv;
void *data;
};
struct soundstream *soundstream_make();
/* A playing sound;
/* A playing sound */
struct sound {
int loop;
unsigned int frame;
int loop; /* How many times to loop */
unsigned int frame; /* Pointing to the current frame on the wav */
int playing;
float gain;