|
Untitled
|
Audio probe baking, portal creation, probe volumes, and emitter functions. More...
#include "core/engine_types.h"Go to the source code of this file.
Functions | |
| void | update_player_audio_probe () |
| Determines if a new IR needs to be signaled from the background thread. | |
| void | update_audio_occlusion (Player *player) |
| Raycasts from player to audio sources to determine occlusion and performs a star if necessary. | |
| int | find_closest_visible_aportal (vec3 pos) |
| Finds the closest audio portal for a star to travel through. | |
| void | recalculate_audio_portal_paths () |
| Recalculates the adjacency map of portals between each other. | |
| void | init_new_audio_portal (vec3 pos) |
| Creates an audio portal by expanding the vector. | |
| void | remove_audio_portal (int id) |
| Removes an audio portal from the vector. | |
| AudioEmitter * | init_emitter (const char *filepath, bool is_loop, bool is_occludable, float base_volume) |
| Initialized an audio emitter and sets up its audio object in miniaudio. | |
| void | load_emitter (AudioEmitter *emitter, const char *filepath, bool is_loop, bool is_occludable, float base_volume) |
| Loads an existing emitter into miniaudio. | |
| void | play_emitter (AudioEmitter *emitter, vec3 pos) |
| Starts playing an emitter. | |
| void | end_emitter (AudioEmitter *e) |
| Stops playing an emitter. | |
| void | audio_update (Player *player) |
| Spatializes the audio from the player's position. | |
| void | unload_emitter (int id) |
| Unloads an emitter from miniaudio. | |
| void | destroy_emitter (int id) |
| Unloads an emitter from miniaudio and frees the emitter as well. | |
| void | bake_audio_probe_volume (ProbeVolume *pv) |
| Bakes an audio probe volume. | |
| void | SDLAudioCallback (void *pUserData, Uint8 *pStream, int frameCountInBytes) |
| Passes frames to miniaudio in the audio thread. | |
| int | query_audio_probe (ProbeVolume *pv, vec3 pos, ivec3 *out_local) |
| Queries which audio probe is closest to given position. | |
| void | init_band_kernels (float sample_rate, float f1_hz, float f2_hz, float f3_hz, float f4_hz, float f5_hz, float out_kernels[AUDIO_NUM_BANDS][AUDIO_KERNEL_SIZE]) |
| Initializes kernels used for IR sample filtering. | |
| void | check_audio_pv () |
| Finds the closest audio PVs to the player and loads the closest ones into open slots based on distance. | |
| void | reset_audio_pvs () |
| Reset audio pvs, frees each slot in the global audio pv slots. | |
Audio probe baking, portal creation, probe volumes, and emitter functions.
Definition in file audio.h.