Skip to content

Instantly share code, notes, and snippets.

@thejustinwalsh
Created March 30, 2019 21:54
Show Gist options
  • Save thejustinwalsh/5bc83bc1d64eba37025724063df5fae6 to your computer and use it in GitHub Desktop.
Save thejustinwalsh/5bc83bc1d64eba37025724063df5fae6 to your computer and use it in GitHub Desktop.
EFX shim for OpenAL when using OpenAL without the EFX extension [iOS]
#include <hl.h>
void openal_al_get_auxiliary_effect_slotfv(int a, int b, vbyte* c) { }
float openal_al_get_auxiliary_effect_slotf(int a, int b) { return 0.f; }
void openal_al_get_auxiliary_effect_slotiv(int a, int b, vbyte* c) { }
int openal_al_get_auxiliary_effect_sloti(int a, int b) { return 0; }
void openal_al_auxiliary_effect_slotfv(int a, int b, vbyte* c) { }
void openal_al_auxiliary_effect_slotf(int a, int b, float c) { }
void openal_al_auxiliary_effect_slotiv(int a, int b, vbyte* c) { }
void openal_al_auxiliary_effect_sloti(int a, int b, int c) { }
bool openal_al_is_auxiliary_effect_slot(int a) { return false; }
void openal_al_delete_auxiliary_effect_slots(int a, vbyte* b) { }
void openal_al_gen_auxiliary_effect_slots(int a, vbyte* b) { }
void openal_al_get_filterfv(int a, int b, vbyte* c) { }
float openal_al_get_filterf(int a, int b) { return 0.f; }
void openal_al_get_filteriv(int a, int b, vbyte* c) { }
int openal_al_get_filteri(int a, int b) { return 0; }
void openal_al_filterfv(int a, int b, vbyte* c) { }
void openal_al_filterf(int a, int b, float c) { }
void openal_al_filteriv(int a, int b, vbyte* c) { }
void openal_al_filteri(int a, int b, int c) { }
bool openal_al_is_filter(int a) { return false; }
void openal_al_delete_filters(int a, vbyte* b) { }
void openal_al_gen_filters(int a, vbyte* b) { }
void openal_al_get_effectfv(int a, int b, vbyte* c) { }
float openal_al_get_effectf(int a, int b) { return 0.f; }
void openal_al_get_effectiv(int a, int b, vbyte* c) { }
int openal_al_get_effecti(int a, int b) { return 0; }
void openal_al_effectfv(int a, int b, vbyte* c) { }
void openal_al_effectf(int a, int b, float c) { }
void openal_al_effectiv(int a, int b, vbyte* c) { }
void openal_al_effecti(int a, int b, int c) { }
bool openal_al_is_effect(int a) { return false; }
void openal_al_delete_effects(int a, vbyte* b) { }
void openal_al_gen_effects(int a, vbyte* b) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment