Skip to contentSkip to conversation

bug in alsa-plugins: #if SND_PCM_EXTPLUG_VERSION wrong

DISCUSSION Ethan Grammatikidis 2 participants 2 messages Mar 18, 2015

lore
Share & tools
lore
#0 lore raw

in alsa-plugins 1.0.28 and 1.0.29, mix/*.c contain the following line:

#if SND_PCM_EXTPLUG_VERSION >= 0x102

that 0x102 needs to be 0x10002. i have alsa-lib 1.0.26 installed. its headers define SND_PCM_EXTPLUG_VERSION to 0x10001, corresponding to version number 1.0.1. that #if effectively tests for >= 0.1.2, so attempting to build alsa-plugins 1.0.28 or 1.0.29 results in a long list of errors. SND_CHMAP_MONO, SND_CHMAP_FL, etc are undeclared and snd_pcm_chmap_query_t is an unknown type.

in alsa-plugins 1.0.26 SND_PCM_EXTPLUG_VERSION is not tested. i didn't look at 1.0.27

reporting here because the bug tracker is down.

Signature · 1 line
Wir mussen wissen, wir werden wissen.
#1 lore raw

At Wed, 18 Mar 2015 15:58:39 +0000,

Quoted 8 lines · Ethan Grammatikidis

in alsa-plugins 1.0.28 and 1.0.29, mix/*.c contain the following line:

#if SND_PCM_EXTPLUG_VERSION >= 0x102

that 0x102 needs to be 0x10002. i have alsa-lib 1.0.26 installed. its headers define SND_PCM_EXTPLUG_VERSION to 0x10001, corresponding to version number 1.0.1. that #if effectively tests for >= 0.1.2, so attempting to build alsa-plugins 1.0.28 or 1.0.29 results in a long list of errors. SND_CHMAP_MONO, SND_CHMAP_FL, etc are undeclared and snd_pcm_chmap_query_t is an unknown type.

in alsa-plugins 1.0.26 SND_PCM_EXTPLUG_VERSION is not tested. i didn't look at 1.0.27

Good catch, I fixed now in git tree.

Takashi