Skip to content

Commit

Permalink
Enable ALSA support by default.
Browse files Browse the repository at this point in the history
Add some compatibility defines.
  • Loading branch information
0-wiz-0 committed Oct 30, 2024
1 parent 98b115f commit 43d6ea1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ option ( enable-trap-on-fpe "enable SIGFPE trap on Floating Point Exceptions" of
option ( enable-ubsan "compile and link against UBSan (for debugging fluidsynth internals)" off )

# Options enabled by default
option ( enable-alsa "compile ALSA support (if it is available)" on )
option ( enable-aufile "compile support for sound file output" on )
option ( BUILD_SHARED_LIBS "Build a shared object or DLL" on )
option ( enable-dbus "compile DBUS support (if it is available)" on )
Expand All @@ -101,10 +102,6 @@ option ( enable-threads "enable multi-threading support (such as parallel voice
option ( enable-openmp "enable OpenMP support (parallelization of soundfont decoding, vectorization of voice mixing, etc.)" on )

# Platform specific options
if ( CMAKE_SYSTEM MATCHES "Linux|FreeBSD|DragonFly" )
option ( enable-alsa "compile ALSA support (if it is available)" on )
endif ( CMAKE_SYSTEM MATCHES "Linux|FreeBSD|DragonFly" )

if ( CMAKE_SYSTEM MATCHES "Linux" )
option ( enable-systemd "compile systemd support (if it is available)" on )
endif ( CMAKE_SYSTEM MATCHES "Linux" )
Expand Down
8 changes: 8 additions & 0 deletions src/drivers/fluid_alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@

#define BUFFER_LENGTH 512

#ifndef ESTRPIPE
#define ESTRPIPE EPIPE
#endif

#ifndef EBADFD
#define EBADFD EBADF
#endif

/** fluid_alsa_audio_driver_t
*
* This structure should not be accessed directly. Use audio port
Expand Down

0 comments on commit 43d6ea1

Please sign in to comment.