Re: portaudio (again)

2008-08-18 Thread Stefan Kost
hi,

could you please reply to the list?

Chris Dobbs schrieb:
 Hi Stefan,
 Yes, I have realised OSS is not there now.
 If alsa is available , why do I only see the ctrl device for alsa :

 Nokia-N800-44-4:~# ls /dev/snd
 controlC0
   
Because its an io plugin. It routes audio to the dsp. There is no full
fledged alsa driver.
Have a look at /proc/asound/ for more audio system info. Also consider
usingHAL if you want to lookup the audio-device.

Stefan
 I would have expected to see something along the lines of
 [EMAIL PROTECTED]:/usr/dev$ ls /dev/snd
 controlC0  controlC1  controlC2  pcmC0D0c  pcmC0D0p  pcmC0D1c  pcmC0D2c
 pcmC0D3c  pcmC0D4p  pcmC1D0c  pcmC1D0p  pcmC2D0c  seq  timer
 do


 Is there something I have to do to load this alsa io module as I cant find
 any reference to it?

 Thansk,
 -Chris

 - Original Message -
 From: Stefan Kost [EMAIL PROTECTED]
 To: Chris Dobbs [EMAIL PROTECTED]
 Cc: maemo-developers@maemo.org
 Sent: Sunday, August 17, 2008 12:21 PM
 Subject: Re: portaudio (again)


   
 Hi,

 Chris Dobbs schrieb:
 
 Hi all,
 I am trying to get portaudio working on the N800. I can compile and
 build everything ok but when I try to run the pa test programs on the
 N800 I get things this:


 Nokia-N800-44-4:~# ./pa_devs-v19
 Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, temp )' failed in
 'src/hostapi/oss/pa_unix_oss.c', line: 405
 Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, temp )' failed in
 'src/hostapi/oss/pa_unix_oss.c', line: 405
 PortAudio version number = 1899
 PortAudio version text = 'PortAudio V19-devel (built Aug 11 2008)'
 Number of devices = 0
 --

 I realised early on that PA used /dev/dsp so I did ln -s
 /dev/dsptask/pcm1 /dev/dsp
   
 Don't do that. There is no OSS. There is alsa in the form of an alsa io
 
 plugin
   
 that talks to the DSP.

 
 I have tried various others but to no avail, can anyone help I know PA
 supports OSS and ALSA which are both installed on the N800, although I
 think esd is the default driver.
   
 Esd is there for compatibillity reasons. Default linux audio (low level)
 
 api is
   
 alsa. For highlevel apis there is esound and gstreamer.

 Stefan

 
 -Chris




 

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers
   

   

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: portaudio (again)

2008-08-17 Thread Stefan Kost
Hi,

Chris Dobbs schrieb:
 Hi all,
 I am trying to get portaudio working on the N800. I can compile and 
 build everything ok but when I try to run the pa test programs on the 
 N800 I get things this:
  
  
 Nokia-N800-44-4:~# ./pa_devs-v19
 Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, temp )' failed in 
 'src/hostapi/oss/pa_unix_oss.c', line: 405
 Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, temp )' failed in 
 'src/hostapi/oss/pa_unix_oss.c', line: 405
 PortAudio version number = 1899
 PortAudio version text = 'PortAudio V19-devel (built Aug 11 2008)'
 Number of devices = 0
 --
  
 I realised early on that PA used /dev/dsp so I did ln -s 
 /dev/dsptask/pcm1 /dev/dsp

Don't do that. There is no OSS. There is alsa in the form of an alsa io plugin 
that talks to the DSP.

 I have tried various others but to no avail, can anyone help I know PA 
 supports OSS and ALSA which are both installed on the N800, although I 
 think esd is the default driver.

Esd is there for compatibillity reasons. Default linux audio (low level) api is 
alsa. For highlevel apis there is esound and gstreamer.

Stefan

  
 -Chris
  
  
 
 
 
 
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


portaudio (again)

2008-08-12 Thread Chris Dobbs
Hi all,
I am trying to get portaudio working on the N800. I can compile and build 
everything ok but when I try to run the pa test programs on the N800 I get 
things this:


Nokia-N800-44-4:~# ./pa_devs-v19
Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, temp )' failed in 
'src/hostapi/oss/pa_unix_oss.c', line: 405
Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, temp )' failed in 
'src/hostapi/oss/pa_unix_oss.c', line: 405
PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Aug 11 2008)'
Number of devices = 0
--


I realised early on that PA used /dev/dsp so I did ln -s /dev/dsptask/pcm1 
/dev/dsp
I have tried various others but to no avail, can anyone help I know PA supports 
OSS and ALSA which are both installed on the N800, although I think esd is the 
default driver.

-Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: portaudio (again)

2008-08-12 Thread David Huggins-Daines
Chris Dobbs wrote:

 I realised early on that PA used /dev/dsp so I did ln -s /dev/dsptask/pcm1 
 /dev/dsp
 I have tried various others but to no avail, can anyone help I know PA 
 supports OSS and ALSA which are both installed on the N800, although I think 
 esd is the default driver.

I have never known OSS to work on the N800, but I could be wrong...

There is an ALSA driver which seems to be somewhat unreliable for
recording - at least, it doesn't work for me, but it could be my code
rather than the driver itself.  I believe (but this may have changed)
that it's a package in extras that needs to be installed.  This may have
improved lately, but I haven't checked.

Your mileage may vary.  I've only really had success with GStreamer for
recording audio on the Maemo platform.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


portaudio

2008-08-11 Thread Chris Dobbs
 All,
I managed to compile and build the V19 libportaudio.so library using the 
scratchbox CHINOOK environent. The test program pa_devs when run in the 
scratchbox envoronment works fine and reports 3 sound devices. When I try this 
on the actual N800 machine I get 0 devices found. Has anyone managed to get 
portaudio working on the N800 ?
-Chris Dobbs
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers