annotate m4/amidi-plug.m4 @ 1090:09eb2c83097a trunk

[svn] Psychoaccoustics support (to disable, temporarily add -UPSYCHO to your CFLAGS.): This commit brings psychoaccoustics support (as used in mp3surround decoders) to libmpgdec. For example, we can now almost fully compensate for lack of bandwidth in ISO compliant MP3 encodings. In addition, further inaccuracies with pitch and the lack of reverb feeling that some MP3s have are detected and automatically compensated for.
author nenolod
date Sat, 20 May 2006 20:36:10 -0700
parents 68f20f7ac954
children b0590e16329f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
1 # Checks for amidi-plug
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
2
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
3 dnl AM_PATH_AMIDIPLUG([ACTION-IF-FOUND , ACTION-IF-NOT-FOUND])
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
4 dnl Test for AMIDI-Plug and ALSA-supported hardware synth
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
5 dnl
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
6 AC_DEFUN([AM_PATH_AMIDIPLUG],
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
7 [
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
8
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
9 AMIDIPLUG_EVERYTHINGOK="yes"
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
10
527
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
11 dnl **** Search for a hardware synth (ALSA managed) ****
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
12 AC_CHECK_FILE([/proc/asound/card0/wavetableD1],
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
13 [ap_hwsynth_found=yes], [ap_hwsynth_found=no])
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
14 if test "x$ap_hwsynth_found" = "xno"; then
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
15 AC_CHECK_FILE([/proc/asound/card1/wavetableD1],
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
16 [ap_hwsynth_found=yes], [ap_hwsynth_found=no])
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
17 if test "x$ap_hwsynth_found" = "xno"; then
527
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
18 AC_CHECK_FILE([/proc/asound/card2/wavetableD1],
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
19 [ap_hwsynth_found=yes], [ap_hwsynth_found=no])
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
20 if test "x$ap_hwsynth_found" = "xno"; then
527
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
21 AMIDIPLUG_EVERYTHINGOK="no"
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
22 AC_MSG_WARN([*** Could not find an ALSA-supported hardware synth, amidi-plug won't be compiled. If you wish to compile it anyway, use --enable-amidiplug in configure. ***])
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
23 fi
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
24 fi
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
25 fi
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
26
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
27 if test "x$AMIDIPLUG_EVERYTHINGOK" = "xyes"; then
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
28 ifelse([$1], , :, [$1])
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
29 else
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
30 ifelse([$2], , :, [$2])
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
31 fi
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
32
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
33 ])