Re: [Discuss-gnuradio] gr-audio: add query device names?

2014-02-06 Thread Alexandru Csete
2014-02-06 11:10 GMT+01:00 Volker Schroer :
>
>> Hi Volker,
>>
>> The idea is to enumerate using library calls, which is the right way to do
>> this.
>>
>> Alex
>>
> Hi Alex,
>
> Yes, I know, but sometimes this does not help. Here is a list of my devices
> from aplay -l:
>
> Karte 0: SB [HDA ATI SB], Gerät 0: ID 892 Analog [ID 892 Analog]
>   Sub-Geräte: 0/1
>   Sub-Gerät #0: subdevice #0
> Karte 0: SB [HDA ATI SB], Gerät 1: ID 892 Digital [ID 892 Digital]
>   Sub-Geräte: 1/1
>   Sub-Gerät #0: subdevice #0
> Karte 1: M44 [M Audio Delta 44], Gerät 0: ICE1712 multi [ICE1712 multi]
>   Sub-Geräte: 1/1
>   Sub-Gerät #0: subdevice #0
> Karte 2: Loopback [Loopback], Gerät 0: Loopback PCM [Loopback PCM]
>   Sub-Geräte: 7/8
>   Sub-Gerät #0: subdevice #0
>   Sub-Gerät #1: subdevice #1
>   Sub-Gerät #2: subdevice #2
>   Sub-Gerät #3: subdevice #3
>   Sub-Gerät #4: subdevice #4
>   Sub-Gerät #5: subdevice #5
>   Sub-Gerät #6: subdevice #6
>   Sub-Gerät #7: subdevice #7
> Karte 2: Loopback [Loopback], Gerät 1: Loopback PCM [Loopback PCM]
>   Sub-Geräte: 8/8
>   Sub-Gerät #0: subdevice #0
>   Sub-Gerät #1: subdevice #1
>   Sub-Gerät #2: subdevice #2
>   Sub-Gerät #3: subdevice #3
>   Sub-Gerät #4: subdevice #4
>   Sub-Gerät #5: subdevice #5
>   Sub-Gerät #6: subdevice #6
>   Sub-Gerät #7: subdevice #7
> Karte 4: HDMI [HDA ATI HDMI], Gerät 3: HDMI 0 [HDMI 0]
>   Sub-Geräte: 1/1
>   Sub-Gerät #0: subdevice #0
>
>
> But to use the Delta card I have to use plughw:1 as device or some other
> plugin defined in my personal .asoundrc .

Maybe "aplay -L" is better; however, formatted output from an
application is hardly any indication of what is possible with library
calls.

Alex

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-audio: add query device names?

2014-02-06 Thread Volker Schroer



Hi Volker,

The idea is to enumerate using library calls, which is the right way to do this.

Alex


Hi Alex,

Yes, I know, but sometimes this does not help. Here is a list of my 
devices from aplay -l:


Karte 0: SB [HDA ATI SB], Gerät 0: ID 892 Analog [ID 892 Analog]
  Sub-Geräte: 0/1
  Sub-Gerät #0: subdevice #0
Karte 0: SB [HDA ATI SB], Gerät 1: ID 892 Digital [ID 892 Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 1: M44 [M Audio Delta 44], Gerät 0: ICE1712 multi [ICE1712 multi]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 2: Loopback [Loopback], Gerät 0: Loopback PCM [Loopback PCM]
  Sub-Geräte: 7/8
  Sub-Gerät #0: subdevice #0
  Sub-Gerät #1: subdevice #1
  Sub-Gerät #2: subdevice #2
  Sub-Gerät #3: subdevice #3
  Sub-Gerät #4: subdevice #4
  Sub-Gerät #5: subdevice #5
  Sub-Gerät #6: subdevice #6
  Sub-Gerät #7: subdevice #7
Karte 2: Loopback [Loopback], Gerät 1: Loopback PCM [Loopback PCM]
  Sub-Geräte: 8/8
  Sub-Gerät #0: subdevice #0
  Sub-Gerät #1: subdevice #1
  Sub-Gerät #2: subdevice #2
  Sub-Gerät #3: subdevice #3
  Sub-Gerät #4: subdevice #4
  Sub-Gerät #5: subdevice #5
  Sub-Gerät #6: subdevice #6
  Sub-Gerät #7: subdevice #7
Karte 4: HDMI [HDA ATI HDMI], Gerät 3: HDMI 0 [HDMI 0]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0


But to use the Delta card I have to use plughw:1 as device or some other 
plugin defined in my personal .asoundrc .


-- Volker




___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-audio: add query device names?

2014-02-06 Thread Alexandru Csete
On Thu, Feb 6, 2014 at 7:33 AM, Volker Schroer  wrote:
> There may a problem with alsa and linux.
> You can find all available cards in the file /proc/asound/cards.
>
> But in some cases you can't use a card directly.
> For instance the Delta M44 offers 10 channels, but in many use cases you
> only work with 2 channels. So you have to use plugins.
>
> Of course, you could list the available hardware.
>

Hi Volker,

The idea is to enumerate using library calls, which is the right way to do this.

Alex

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-audio: add query device names?

2014-02-05 Thread Volker Schroer

There may a problem with alsa and linux.
You can find all available cards in the file /proc/asound/cards.

But in some cases you can't use a card directly.
For instance the Delta M44 offers 10 channels, but in many use cases you 
only work with 2 channels. So you have to use plugins.


Of course, you could list the available hardware.

-- Volker



Am 05.02.2014 17:43, schrieb Michael Dickens:

It's all well and good to send in an audio device name to the gr-audio 
sink/source, and then see if that device name matches anything / works / is 
found.  In my fixes to gr-audio-osx, if the audio device was specified but not 
found, the code will print out a list of available device names and use the 
default device.

This got me thinking: Why not change the gr-audio API to include a method that 
returns all known device names (output ones for sink and input ones for 
source)?  I can easily do it on OSX native, and Alex Csete has a means for 
doing it on PortAudio; I have no idea how difficult this would be for any other 
audio option, but I generally like the idea.

What do others think? - MLD
--
Michael Dickens, OSX Programmer
Ettus Research Technical Support
Email: supp...@ettus.com
Web: http://www.ettus.com


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] gr-audio: add query device names?

2014-02-05 Thread Michael Dickens
It's all well and good to send in an audio device name to the gr-audio 
sink/source, and then see if that device name matches anything / works / is 
found.  In my fixes to gr-audio-osx, if the audio device was specified but not 
found, the code will print out a list of available device names and use the 
default device.

This got me thinking: Why not change the gr-audio API to include a method that 
returns all known device names (output ones for sink and input ones for 
source)?  I can easily do it on OSX native, and Alex Csete has a means for 
doing it on PortAudio; I have no idea how difficult this would be for any other 
audio option, but I generally like the idea.

What do others think? - MLD
--
Michael Dickens, OSX Programmer
Ettus Research Technical Support
Email: supp...@ettus.com
Web: http://www.ettus.com


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio