No sound playback with Pale Moon on Gentoo

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
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: 35583
Joined: 2011-08-28, 17:27
Location: Motala, SE
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.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

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
   }
}

Locked