Skip to content

Commit

Permalink
Fix Fluidlite minivorbis+SF3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Jan 17, 2025
1 parent a85ce22 commit 645182c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions libraries/fluidlite/src/fluid_defsfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
#include "fluid_sys.h"

#if SF3_SUPPORT == SF3_XIPH_VORBIS
#include "vorbis/codec.h"
#include "vorbis/vorbisenc.h"
#include "vorbis/vorbisfile.h"
#define OV_EXCLUDE_STATIC_CALLBACKS
#include "minivorbis.h"

struct VorbisData {
int pos; // current position in audio->data()
Expand Down
3 changes: 2 additions & 1 deletion source_files/edge/p_user.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
//----------------------------------------------------------------------------

#include <float.h>
#include <math.h>

#include "AlmostEquals.h"
#include "bot_think.h"
Expand Down Expand Up @@ -925,7 +926,7 @@ bool PlayerThink(Player *player)
line_lengths += abs(player_x - room_checker.X);
PathTraverse(player_x, player_y, 32768.0f, player_y, kPathAddLines, P_RoomPath, &room_checker);
line_lengths += abs(room_checker.X - player_x);
// not reverbe per se, but approximately matches how we use to do "reverb" - Dasho
// not reverb per se, but approximately matches how we used to do "reverb" - Dasho
ma_delay_node_set_decay(&reverb_node, log1p(line_lengths * 0.125f) * .020f);
}

Expand Down

0 comments on commit 645182c

Please sign in to comment.