5 |
|
|
6 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
7 |
LINUXSAMPLER_RELEASE_MINOR=3 |
LINUXSAMPLER_RELEASE_MINOR=3 |
8 |
LINUXSAMPLER_RELEASE_BUILD=3 |
LINUXSAMPLER_RELEASE_BUILD=3cvs |
9 |
|
|
10 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
11 |
# The following is the libtool / shared library version. This doesn't have to |
# The following is the libtool / shared library version. This doesn't have to |
99 |
fi |
fi |
100 |
fi |
fi |
101 |
|
|
102 |
|
# check for <features.h> |
103 |
|
AC_CHECK_HEADERS(features.h) |
104 |
|
|
105 |
# Checks for available audio and MIDI systems / drivers |
# Checks for available audio and MIDI systems / drivers |
106 |
# (we throw an error if there's not at least one system for audio output and MIDI input available) |
# (we throw an error if there's not at least one system for audio output and MIDI input available) |
107 |
have_midi_input_driver="false" |
have_midi_input_driver="false" |
215 |
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
216 |
|
|
217 |
# Check presence of libgig |
# Check presence of libgig |
218 |
libgig_version="2.0.1" |
libgig_version="2.0.2" |
219 |
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
220 |
if test "$HAVE_GIG" = "false"; then |
if test "$HAVE_GIG" = "false"; then |
221 |
echo "Required libgig version not found!" |
echo "Required libgig version not found!" |
262 |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
263 |
|
|
264 |
AC_ARG_ENABLE(asm, |
AC_ARG_ENABLE(asm, |
265 |
[ --disable-asm |
[ --enable-asm |
266 |
Disable hand-crafted assembly optimizations |
Enable hand-crafted assembly optimizations |
267 |
(default=on). LinuxSampler provides CPU specific |
(default=off). LinuxSampler provides CPU specific |
268 |
assembly optimizations for the most important |
assembly optimizations for the most important |
269 |
synthesis algorithms. You usually don't want to |
synthesis algorithms. This is currently disabled |
270 |
disable that.], |
by default since current asm code is broken.], |
271 |
[config_asm="no"], |
[config_asm="yes"], |
272 |
[config_asm="yes"] |
[config_asm="no"] |
273 |
) |
) |
274 |
if test "$config_asm" = "yes"; then |
if test "$config_asm" = "yes"; then |
275 |
AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable hand-crafted asm optimizations.]) |
AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable hand-crafted asm optimizations.]) |
276 |
fi |
fi |
277 |
|
|
278 |
AC_ARG_ENABLE(dev-mode, |
AC_ARG_ENABLE(dev-mode, |
279 |
[ --enable-dev-mode |
[ --disable-dev-mode |
280 |
Enable development mode (default=no). In that mode |
Disable development mode (default=on). In that mode |
281 |
we do some extra sanity checks here and there. |
we do some extra sanity checks here and there. |
282 |
This helps to spot possible problems, but reduces |
This helps to spot possible problems, but reduces |
283 |
efficiency a bit], |
efficiency a bit], |
284 |
[config_dev_mode="yes"], |
[config_dev_mode="no"], |
285 |
[config_dev_mode="no"] |
[config_dev_mode="yes"] |
286 |
) |
) |
287 |
if test "$config_dev_mode" = "yes"; then |
if test "$config_dev_mode" = "yes"; then |
288 |
AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.]) |
AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.]) |
439 |
) |
) |
440 |
AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.]) |
AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.]) |
441 |
|
|
442 |
|
AC_ARG_ENABLE(subfragment-size, |
443 |
|
[ --enable-subfragment-size |
444 |
|
Every audio fragment will be splitted into |
445 |
|
subfragments. Where each subfragment renders |
446 |
|
audio with constant synthesis parameters. This is |
447 |
|
done for efficiency reasons. This parameter |
448 |
|
defines the default size of a subfragment in |
449 |
|
sample points. A large value means less CPU time |
450 |
|
whereas a low value means better audio quality |
451 |
|
(default=32).], |
452 |
|
[config_subfragment_size="${enableval}"], |
453 |
|
[config_subfragment_size="32"] |
454 |
|
) |
455 |
|
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).]) |
456 |
|
|
457 |
|
AC_ARG_ENABLE(global-attenuation, |
458 |
|
[ --enable-global-attenuation |
459 |
|
To prevent clipping all samples will be lowered |
460 |
|
in amplitude by this given factor. |
461 |
|
(default=0.35)], |
462 |
|
[config_global_attenuation="${enableval}"], |
463 |
|
[config_global_attenuation="0.35"] |
464 |
|
) |
465 |
|
AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION, $config_global_attenuation, [Define global volume attenuation (as floating point factor).]) |
466 |
|
|
467 |
AC_ARG_ENABLE(voice-steal-algo, |
AC_ARG_ENABLE(voice-steal-algo, |
468 |
[ --enable-voice-steal-algo |
[ --enable-voice-steal-algo |
469 |
Voice stealing algorithm to be used. Currently |
Voice stealing algorithm to be used. Currently |
497 |
) |
) |
498 |
AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.]) |
AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.]) |
499 |
|
|
|
AC_ARG_ENABLE(filter-update-steps, |
|
|
[ --enable-filter-update-steps |
|
|
Amount of sample points after which filter |
|
|
parameters (cutoff, resonance) are going to be |
|
|
updated (default=64). Higher value means less CPU |
|
|
load, but also worse parameter resolution, this |
|
|
value will be aligned to a power of two.], |
|
|
[config_filter_update_steps="${enableval}"], |
|
|
[config_filter_update_steps="64"] |
|
|
) |
|
|
AC_DEFINE_UNQUOTED(CONFIG_FILTER_UPDATE_STEPS, $config_filter_update_steps, [Define amount of steps to refresh filter coefficients.]) |
|
|
|
|
500 |
AC_ARG_ENABLE(force-filter, |
AC_ARG_ENABLE(force-filter, |
501 |
[ --enable-force-filter |
[ --enable-force-filter |
502 |
If enabled will force filter to be used even if |
If enabled will force filter to be used even if |
697 |
AC_TRY_RUN([ |
AC_TRY_RUN([ |
698 |
#define SIGNED 1 |
#define SIGNED 1 |
699 |
#define SILENT 1 |
#define SILENT 1 |
700 |
#include "benchmarks/triang.cpp" |
#include "${srcdir}/benchmarks/triang.cpp" |
701 |
], |
], |
702 |
triang_signed=0, |
triang_signed=0, |
703 |
triang_signed=$?, |
triang_signed=$?, |
720 |
exit -1; |
exit -1; |
721 |
fi |
fi |
722 |
fi |
fi |
723 |
AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, signed_triang_algo_${config_signed_triang_algo}, [Define signed triangular wave algorithm to be used.]) |
AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.]) |
724 |
|
|
725 |
if test "$config_unsigned_triang_algo" = "benchmark"; then |
if test "$config_unsigned_triang_algo" = "benchmark"; then |
726 |
echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... " |
echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... " |
728 |
AC_TRY_RUN([ |
AC_TRY_RUN([ |
729 |
#define SIGNED 0 |
#define SIGNED 0 |
730 |
#define SILENT 1 |
#define SILENT 1 |
731 |
#include "benchmarks/triang.cpp" |
#include "${srcdir}/benchmarks/triang.cpp" |
732 |
], |
], |
733 |
triang_unsigned=0, |
triang_unsigned=0, |
734 |
triang_unsigned=$?, |
triang_unsigned=$?, |
741 |
config_unsigned_triang_algo="diharmonic" |
config_unsigned_triang_algo="diharmonic" |
742 |
echo "di harmonics" |
echo "di harmonics" |
743 |
elif test "$triang_unsigned" = "5"; then |
elif test "$triang_unsigned" = "5"; then |
744 |
config_signed_triang_algo="intmathabs" |
config_unsigned_triang_algo="intmathabs" |
745 |
echo "integer math using abs()" |
echo "integer math using abs()" |
746 |
else |
else |
747 |
echo "Benchmark of unsigned triangular wave algorithms failed!" |
echo "Benchmark of unsigned triangular wave algorithms failed!" |
751 |
exit -1; |
exit -1; |
752 |
fi |
fi |
753 |
fi |
fi |
754 |
AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, unsigned_triang_algo_${config_unsigned_triang_algo}, [Define unsigned triangular wave algorithm to be used.]) |
AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.]) |
755 |
|
|
756 |
AC_LANG_RESTORE |
AC_LANG_RESTORE |
757 |
|
|
828 |
echo "# Stream Size: ${config_stream_size}" |
echo "# Stream Size: ${config_stream_size}" |
829 |
echo "# Maximum Disk Streams: ${config_max_streams}" |
echo "# Maximum Disk Streams: ${config_max_streams}" |
830 |
echo "# Maximum Voices: ${config_max_voices}" |
echo "# Maximum Voices: ${config_max_voices}" |
831 |
|
echo "# Default Subfragment Size: ${config_subfragment_size}" |
832 |
|
echo "# Global Volume Attenuation: ${config_global_attenuation}" |
833 |
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
834 |
echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}" |
echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}" |
835 |
echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}" |
echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}" |
836 |
echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte" |
echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte" |
|
echo "# Filter Update Steps: ${config_filter_update_steps}" |
|
837 |
echo "# Force Filter Usage: ${config_force_filter}" |
echo "# Force Filter Usage: ${config_force_filter}" |
838 |
echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz" |
echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz" |
839 |
echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz" |
echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz" |