[pulseaudio-tickets] [PulseAudio] #953: Mixing of Two Audio Sources

PulseAudio trac-noreply at tango.0pointer.de
Wed Jun 15 17:12:00 PDT 2011


#953: Mixing of Two Audio Sources
----------------------------+-----------------------------------------------
  Reporter:  debamalya1987  |       Owner:  ossman            
      Type:  tracking       |      Status:  new               
 Milestone:                 |   Component:  alsa-plugins-pulse
Resolution:                 |    Keywords:                    
----------------------------+-----------------------------------------------

Comment(by coling):

 Can I ask you to clarify the term "sources"? Normally in audio discussions
 a "source" is an input device (e.g. a mic), but I get the impression this
 isn't what you mean....

 If you want to mix two playback streams, then no, there is no direct API
 to do that. If you just wanted to mix two streams then you'd create a null
 sink, play two streams on it then capture the output from the null sinks'
 monitor source to get the result, but this is obviously something that you
 would not expect a user to setup :D

 It's generally quite deliberate that we do not expose fine grained APIs as
 the mixing logic is very much involved and requires us to consider the use
 of flat volumes logic etc. (e.g. using h/w volume controls when possible
 and only opting to do per-stream volume adjustments in software when we
 have >1 stream playing - and even then we still use h/w controls for
 loudest single channel, with all other softvol stuff being relative to
 that.


 The mixing code is in git if you want to take a look.

-- 
Ticket URL: <http://pulseaudio.org/ticket/953#comment:2>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list