No sound playback with Pale Moon on Gentoo

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

Case_Of
Moongazer
Moongazer
Posts: 10
Joined: 2017-07-14, 15:15

Re: No sound playback with Pale Moon on Gentoo

Unread post by Case_Of » 2019-07-30, 02:56

Hello,

I've written /etc/asound.conf like here to make sound goes through both my laptop speackers and hdmi output (it's the best way I found to do this).

But after this, I found that there is no more sound on Pale Moon. I tried also on Firefox by curiosity and there is no sound either. All other programs have working sound.

After some research on ddg, I found this topic on Gentoo Forums, which links to this old Mozilla's bugreport that seems to be still unresolved.

How could I fix this issue?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 24592
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: No sound playback with Pale Moon on Gentoo

Unread post by Moonchild » 2019-07-30, 10:09

After some research:
Try using plughw or plug + hw instead of just "hw". There's no guarantee that the rate output by Pale Moon matches what your hardware expects. If it mismatches then the card will reject it -> no sound.
"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

Case_Of
Moongazer
Moongazer
Posts: 10
Joined: 2017-07-14, 15:15

Re: No sound playback with Pale Moon on Gentoo

Unread post by Case_Of » 2019-07-30, 14:02

Hi,
@Moonchild: I succeeded to make a working configuration. I'm sharing it here if it can help others.

I changed Gentoo's wiki instructions to that:

Code: Select all

ctl.!default {
   type hw
   #set Your default card
   card 0
}

pcm.!default {
   type plug
   slave {
      pcm "both"
   }
}

pcm.both {
   type softvol
   slave {
      pcm {
         type plug
         slave {
            pcm {
               type route
               slave {
                  pcm {
                     type multi;
                     slaves.a.pcm{
                        type dmix
                        ipc_key 2589455
                        ipc_perm 0666
                        slave {
                           pcm {
                              # add the default card - change to suit your sound card #1
                              type hw
                              card 0
                              device 0
                           }
                        buffer_size 4096
                        channels 2
                        }
                     }
                     slaves.b.pcm{
                        type dmix
                        ipc_key 4855689
                        ipc_perm 0666
                        slave {
                              pcm {
                                 #add the slave sound card - change to suit your sound card #2
                                 type hw
                                 card 0
                                 device 7
                              }
                        buffer_size 4096
                        channels 2
                        }
                     }
                     slaves.a.channels 2;
                     slaves.b.channels 2;
                     bindings.0.slave a;
                     bindings.0.channel 0;
                     bindings.1.slave a;
                     bindings.1.channel 1;
                     bindings.2.slave b;
                     bindings.2.channel 0;
                     bindings.3.slave b;
                     bindings.3.channel 1;
                     }
                  }
               ttable.0.0 1;
               ttable.1.1 1;
               ttable.0.2 1;
               ttable.1.3 1;
            }
         }
      }
   }
   control{
      # define volume control name
      name PCM
      # Set to the Default card
      card 0
   }
}

Post Reply