You are not logged in.

#1 2012-01-26 17:03:23

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Need some ALSA help (device IDs, flash plugin)

I use a wireless headset at work that connects via USB.  Here's what aplay has to say about it:

$ aplay -L
...
front:CARD=DECT,DEV=0
    Sennheiser DECT, USB Audio
    Front speakers
surround40:CARD=DECT,DEV=0
    Sennheiser DECT, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=DECT,DEV=0
    Sennheiser DECT, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=DECT,DEV=0
    Sennheiser DECT, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=DECT,DEV=0
    Sennheiser DECT, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=DECT,DEV=0
    Sennheiser DECT, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=DECT,DEV=0
    Sennheiser DECT, USB Audio
    IEC958 (S/PDIF) Digital Audio Output

So, I should be able to run speaker-test on it, right?  So...

$ speaker-test -D 'front:CARD=DECT,DEV=0'

speaker-test 1.0.24.2

Playback device is front:CARD=DECT,DEV=0
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate 48000Hz not available for playback: Invalid argument
Setting of hwparams failed: Invalid argument

I'm sure I'm botching the ALSA device string here smile

Also, I can't seem to get a ~/.asoundrc going that configures flash to run the audio through the headset.  I don't use my onboard audio, but I would prefer not to blacklist it.  I'd rather learn how to do it this way smile

Offline

#2 2012-01-29 13:29:24

masutu
Member
Registered: 2010-01-30
Posts: 40

Re: Need some ALSA help (device IDs, flash plugin)

Have you tried to make the speaker-test with another sample rate like

speaker-test -D 'front:CARD=DECT,DEV=0' -r 44100

Very unlikely, but maybe your card doesn't support 48000Hz.

Question to your second issue. Do i understand correctly, that you want *only* flash to go to the external device?

Offline

#3 2012-03-12 16:13:20

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Need some ALSA help (device IDs, flash plugin)

I'd want all audio to use this "DECT" card as the default regardless of what software, if possible.

It looks like it doesn't like the 44.1 KHz setting, either.  Is -D 'front:CARD=DECT,DEV=0' the correct option to use?

$ speaker-test -D 'front:CARD=DECT,DEV=0' -r 44100

speaker-test 1.0.25

Playback device is front:CARD=DECT,DEV=0
Stream parameters are 44100Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate 44100Hz not available for playback: Invalid argument
Setting of hwparams failed: Invalid argument

Offline

#4 2012-03-12 17:49:30

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Need some ALSA help (device IDs, flash plugin)

Define the PCM named "default", in your ~/.asoundrc - example.

This is what flash will use.

Your USB headset probably only supports 48khz, as mentioned.

Offline

Board footer

Powered by FluxBB