Hi. I have RH 7.1 with kernel 2.4.9 Compiled only with Sound Card support.
I downloaded PD version 33 and 34patch8
Tried compiling: Results:
cc -g -O2 -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused
-Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer
-DALSA01 -DINSTALL_PREFIX="/usr/local" -I. -c -o ../obj/s_linux.o
s_linux.c
s_linux.c: In function alsa_open_audio': s_linux.c:1947:
SNDRV_PCM_ACCESS_RW_INTERLEAVED' undeclared (first use in
this
function)
s_linux.c:1947: (Each undeclared identifier is reported only once
s_linux.c:1947: for each function it appears in.)
s_linux.c:1951: SNDRV_PCM_FORMAT_S32' undeclared (first use in this function) s_linux.c:1957:
SNDRV_PCM_FORMAT_S16' undeclared (first use in this
function)
s_linux.c:1968: `SNDRV_PCM_SUBFORMAT_STD' undeclared (first use in this
function)
make: *** [s_linux.o] Error 1
Any suggestions how to resolve it? I hvae alsa 0.9beta7 version driver, lib, utils, oss compatib. lib, tools
Best Regards .. Jarek Myszewski
This should be fixed with Pd version 0.34 ... cheers Miller
On Tue, Sep 04, 2001 at 01:53:27PM -0400, JaReK wrote:
Hi. I have RH 7.1 with kernel 2.4.9 Compiled only with Sound Card support.
I downloaded PD version 33 and 34patch8
Tried compiling: Results:
cc -g -O2 -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -DALSA01 -DINSTALL_PREFIX="/usr/local" -I. -c -o ../obj/s_linux.o s_linux.c s_linux.c: In function
alsa_open_audio': s_linux.c:1947:
SNDRV_PCM_ACCESS_RW_INTERLEAVED' undeclared (first use in this function) s_linux.c:1947: (Each undeclared identifier is reported only once s_linux.c:1947: for each function it appears in.) s_linux.c:1951:SNDRV_PCM_FORMAT_S32' undeclared (first use in this function) s_linux.c:1957:
SNDRV_PCM_FORMAT_S16' undeclared (first use in this function) s_linux.c:1968: `SNDRV_PCM_SUBFORMAT_STD' undeclared (first use in this function) make: *** [s_linux.o] Error 1Any suggestions how to resolve it? I hvae alsa 0.9beta7 version driver, lib, utils, oss compatib. lib, tools
Best Regards .. Jarek Myszewski
Czesc,
get the latest pd-0.34-0 release. It compiles fine. And runs fine! :))
Thanks Miller!.
./MiS
On 9/4/01 1:53 PM, "JaReK" myszewsk@cse.Buffalo.EDU wrote:
Hi. I have RH 7.1 with kernel 2.4.9 Compiled only with Sound Card support.
I downloaded PD version 33 and 34patch8
Tried compiling: Results:
cc -g -O2 -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -DALSA01 -DINSTALL_PREFIX="/usr/local" -I. -c -o ../obj/s_linux.o s_linux.c s_linux.c: In function
alsa_open_audio': s_linux.c:1947:
SNDRV_PCM_ACCESS_RW_INTERLEAVED' undeclared (first use in this function) s_linux.c:1947: (Each undeclared identifier is reported only once s_linux.c:1947: for each function it appears in.) s_linux.c:1951:SNDRV_PCM_FORMAT_S32' undeclared (first use in this function) s_linux.c:1957:
SNDRV_PCM_FORMAT_S16' undeclared (first use in this function) s_linux.c:1968: `SNDRV_PCM_SUBFORMAT_STD' undeclared (first use in this function) make: *** [s_linux.o] Error 1Any suggestions how to resolve it? I hvae alsa 0.9beta7 version driver, lib, utils, oss compatib. lib, tools
Best Regards .. Jarek Myszewski
Howdy. I got PD .35 for linux running on mandrake 8.1.
However, I have a problem with the 'select' statements.
Select works fine with one parameter (select 1) However, it does not work with multiple params (select 1 2 3). Specifically, it will send out bang to first outlet (on the bottom left) if the input matches the first condition (for example 1), for all other inputs I get the following output in the right bottom outlet - 'nan'
I also get seg-fault and error: socket receive error: Connection reset by peer (104) when trying to open 'Test audio and MIDI'
Regards ... Jarek
Subject: [PD] PD for Linux - Select Problems
Date: gio, ago 29, 2002 at 05:04:59 -0400
Quoting JaReK (myszewsk@cse.Buffalo.EDU):
However, I have a problem with the 'select' statements.
Select works fine with one parameter (select 1) However, it does not work with multiple params (select 1 2 3). Specifically, it will send out bang to first outlet (on the bottom left) if the input matches the first condition (for example 1), for all other inputs I get the following output in the right bottom outlet - 'nan'
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
<mathematics> (NaN) An IEEE floating point representation for the result of a numerical operation which cannot return a valid number value. A NaN can result from multiplying an infinity by a zero, or from subtracting one infinity from another
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
What do you feed to select's input? Did you try it with the output of a standard number box (the one you obtain with Ctrl-3)? The simple patch that I include works as expected here.
I also get seg-fault and error: socket receive error: Connection reset by peer (104) when trying to open 'Test audio and MIDI'
This can depend from a lot of things, mainly from what is your sound card, whether you have ALSA or not, and the correct compilation and start-up options of PD. Can you use your audio card under Linux for other tasks? With what kind of software?
Carlo
hi Jarek,
that is quite interesting:) Is select the only object which behaves so weird? Does putting just '2' -> [select 1 2 3] -> [print] in a patch cause 'nan' to be sent into a terminal window?
Cannot see any flaws in select, other than not handling mixed types (bashing all mistyped arguments to the first one's type). Certainly it should not corrupt floats...
Krzysztof
JaReK wrote: ...
Select works fine with one parameter (select 1) However, it does not work with multiple params (select 1 2 3). Specifically, it will send out bang to first outlet (on the bottom left) if the input matches the first condition (for example 1), for all other inputs I get the following output in the right bottom outlet - 'nan'