<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>124351</bug_id>
          
          <creation_ts>2013-11-14 07:17:02 -0800</creation_ts>
          <short_desc>[GStreamer] Not possible to play more than 32 simultaneous audio stream due to a limitation in PulseAudio</short_desc>
          <delta_ts>2020-10-29 10:03:30 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>124353</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Andres Gomez Garcia">agomez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>agomez</cc>
    
    <cc>andrunko</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>pnormand</cc>
    
    <cc>slomo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>950637</commentid>
    <comment_count>0</comment_count>
    <who name="Andres Gomez Garcia">agomez</who>
    <bug_when>2013-11-14 07:17:02 -0800</bug_when>
    <thetext>As it is explained in bug 85994 comment 33 , autoaudiosink will often use pulsesink. When opening a web in which more than 32 simultaneous audio streams are created, we will hit a limit in PulseAudio.

It is expected that PA 5.0 will increase the limit to 256. This will not solve the issue completely, but the situation would be better.

This bug has been opened to track this problem and should block bug 85994.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>950644</commentid>
    <comment_count>1</comment_count>
    <who name="Andres Gomez Garcia">agomez</who>
    <bug_when>2013-11-14 07:28:25 -0800</bug_when>
    <thetext>Changing, to block 124353 , as it is a meta bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>987166</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-03-05 00:20:59 -0800</bug_when>
    <thetext>Increasing this limit is just a workaround though :( 

I keep wondering if we should investigate building our own audio-sink that would maintain a single connection with PA, whatever the number of media elements present in the page...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1053687</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-12-09 00:54:35 -0800</bug_when>
    <thetext>Sebastian suggested to have one pipeline for audio playback maintaining a single connection to PA and then for each playbin pipeline set the audio-sink to connect to the audio playback pipeline using the &quot;inter&quot; elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1053688</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-12-09 00:55:25 -0800</bug_when>
    <thetext>The playback pipeline would also have an audiomixer to combine all incoming audio streams to one, IIUC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702685</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-10-29 05:55:06 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #3)
&gt; Sebastian suggested to have one pipeline for audio playback maintaining a
&gt; single connection to PA and then for each playbin pipeline set the
&gt; audio-sink to connect to the audio playback pipeline using the &quot;inter&quot;
&gt; elements.

This was done in https://bugs.webkit.org/show_bug.cgi?id=207634 BTW.

(In reply to Philippe Normand from comment #4)
&gt; The playback pipeline would also have an audiomixer to combine all incoming
&gt; audio streams to one, IIUC.

Same. To enable the mixer, set WEBKIT_GST_ENABLE_AUDIO_MIXER=1 at runtime.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>