Import the base tree (MIT, see LICENSE)

This commit is contained in:
Valiantsin Dzerakh
2026-11-04 22:16:41 +03:00
committed by chrg6
commit 0478c13e45
734 changed files with 233953 additions and 0 deletions

19
runtime/audio_reverb.h Normal file
View File

@@ -0,0 +1,19 @@
// Adapted from MacNativeGames games/<game>/runtime/audio_reverb.c @ b75be8c (MIT, Copyright (c) 2026 MacNativeGames
// contributors), based on Ryujinx.Audio (MIT, Copyright (c) Ryujinx Team and Contributors).
#ifndef NX2NAVI_AUDIO_REVERB_H
#define NX2NAVI_AUDIO_REVERB_H
#include <stdint.h>
typedef struct {
uint8_t input[6], output[6]; uint16_t channel_max, channels;
uint32_t reserved, sample_rate;
float room_hf, hf_reference, decay_time, hf_decay_ratio, room_gain, reflections_gain,
reverb_gain, diffusion, reflection_delay, reverb_delay, density, dry_gain;
uint8_t status;
} Reverb3dParam;
_Static_assert(__builtin_offsetof(Reverb3dParam, status) == 72, "reverb3d wire layout");
typedef struct Reverb3d Reverb3d;
Reverb3d *audio_reverb_create(const Reverb3dParam *p);
void audio_reverb_free(Reverb3d *s);
void audio_reverb_update(Reverb3d *s, const Reverb3dParam *p);
void audio_reverb_process(Reverb3d *s, float *const input[6], float *const output[6], int frames);
#endif