You are not logged in.

#1 2013-03-17 12:01:58

Nudin
Member
Registered: 2012-11-22
Posts: 13

Flash blocks sound with upmixing

Hi,

I configured alsa to use upmixing to my 5.1 system, as descriped in the Wiki. First it seemed all to work fine, having 5.1 sound for videos and upmixing for Stereosound, but when I open a video in Flashplayer, I can't use sound with any other program. Aplay says "resource busy".

This it my ~/.asound:

defaults.pcm.rate_converter "samplerate_best"

pcm.!default "plug:upmix51"

pcm.upmix51 {
    type upmix
    slave.pcm "surround51"
    delay 15
    channels 6
}

I tryed to remove the high quality resampler and add a dmix as mentiond in the wiki:

pcm.!default "plug:upmix51"

pcm.upmix51 {
    type upmix
    slave.pcm "dmix6"
    delay 15
    channels 6
}
pcm.dmix6 {
    type asym
    playback.pcm {
        type dmix
        ipc_key 567829
        slave {
            pcm "hw:0,0"
            channels 6
        }
    }
}

But the effect was, that sound in Flashplayer wasn't working at all.
My audio-hardware:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI DAC/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 1: CMI8738-MC6 [C-Media PCI 2nd DAC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Can please someone help me? I can't use fullscreenmode with flashplayer cause another problem and used to pause flashplayer and then play the file from the proc-dir of the flashplugin with mplayer. So at the moment I can't look at flash-videos in fullscreen.

Michi

Offline

#2 2013-03-17 13:35:54

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

Re: Flash blocks sound with upmixing

See example in my sig. I've added a new line, "nonblock true" - maybe it helps.

Your config doesn't specify e.g. period_size and buffer_size, so it's at the mercy of apps choosing settings which other apps may not want to use.

Useful command:
# Show opened settings:
# cat /proc/asound/card0/pcm0p/sub0/hw_params

Offline

Board footer

Powered by FluxBB