Page 5 of 5

Re: No sound playback with Pale Moon on Gentoo

Posted: 2019-07-30, 02:56
by Case_Of
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?

Re: No sound playback with Pale Moon on Gentoo

Posted: 2019-07-30, 10:09
by Moonchild
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.

Re: No sound playback with Pale Moon on Gentoo

Posted: 2019-07-30, 14:02
by Case_Of
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
   }
}