Audio backend notes

This commit is contained in:
Clownacy 2020-06-28 22:18:00 +01:00
parent 63dd995343
commit 1fbdbf6015
2 changed files with 12 additions and 7 deletions

View file

@ -17,15 +17,15 @@ struct Mixer_Sound
signed char *samples; signed char *samples;
size_t frames; size_t frames;
size_t position; size_t position;
unsigned long sample_offset_remainder; // 16.16 fixed-point unsigned long sample_offset_remainder; // 16.16 fixed-point
unsigned long advance_delta; unsigned long advance_delta; // 16.16 fixed-point
bool playing; bool playing;
bool looping; bool looping;
short volume; short volume; // 8.8 fixed-point
short pan_l; short pan_l; // 8.8 fixed-point
short pan_r; short pan_r; // 8.8 fixed-point
short volume_l; short volume_l; // 8.8 fixed-point
short volume_r; short volume_r; // 8.8 fixed-point
struct Mixer_Sound *next; struct Mixer_Sound *next;
}; };

View file

@ -1,3 +1,8 @@
// This darned thing doesn't work - sounds just randomly refuse to play,
// particularly the ones used by Organya.
// If anyone could figure out what causes this, that would be great.
#include "../Audio.h" #include "../Audio.h"
#include <math.h> #include <math.h>