|
Stardew Engine
|
#include "Audio.h"#include <stdio.h>#include <errno.h>#include <string.h>#include <float.h>#include "AL/al.h"#include "AL/alc.h"#include "AL/alext.h"#include "Log.h"#include <stdlib.h>#include <math.h>#include "EngineUtils.h"#include "AssertLib.h"
Macros | |
| #define | PI 3.14159265358979323846 |
| #define | PI2 (2.0 * PI) |
| #define | MAX(x, y) (((x) > (y)) ? (x) : (y)) |
| #define | MIN(x, y) (((x) < (y)) ? (x) : (y)) |
Functions | |
| int | zzfx_Generate (float *buffer, int bufferSize, float sampleRate, struct ZZFXSound *inSfx) |
| a port of https://github.com/KilledByAPixel/ZzFX - far from perfect | |
| float | Au_PlaySoundTest (struct ZZFXSound *sound, float masterVol) |
| int | Au_Init (char ***argv, int *argc) |
| void | Au_DeInit () |
| float | signf (float v) |
| float | RandFloat01 () |
| int | SafeMod (int a, int b) |
Variables | |
| ALCint | gDevRate = 0 |
| ALuint | gBasicSource = -1 |
| #define MAX | ( | x, | |
| y | |||
| ) | (((x) > (y)) ? (x) : (y)) |
| #define MIN | ( | x, | |
| y | |||
| ) | (((x) < (y)) ? (x) : (y)) |
| #define PI 3.14159265358979323846 |
| #define PI2 (2.0 * PI) |
| void Au_DeInit | ( | ) |
| int Au_Init | ( | char *** | argv, |
| int * | argc | ||
| ) |
| float Au_PlaySoundTest | ( | struct ZZFXSound * | sound, |
| float | masterVol | ||
| ) |
| float RandFloat01 | ( | ) |
| int SafeMod | ( | int | a, |
| int | b | ||
| ) |
| float signf | ( | float | v | ) |
| int zzfx_Generate | ( | float * | buffer, |
| int | bufferSize, | ||
| float | sampleRate, | ||
| struct ZZFXSound * | inSfx | ||
| ) |
a port of https://github.com/KilledByAPixel/ZzFX - far from perfect
| buffer | buffer to populate |
| bufferSize | max size of buffer |
| sampleRate | sample rate |
| inSfx | parameters to generate sound effect |
| ALuint gBasicSource = -1 |
| ALCint gDevRate = 0 |