Difference between revisions of "Documentation:Hacker's Guide/Audio Mixers"

From VideoLAN Wiki
Jump to navigation Jump to search
(New page: =Writing an audio mixer= Writing an audio mixer is very similar to writing an audio filter. The only difference is that you have to deal with the input buffers yourself, and request for n...)
 
(Redirected page to Hacker Guide/Audio Filters)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
=Writing an audio mixer=
+
#redirect[[Hacker Guide/Audio Filters]]
 
 
Writing an audio mixer is very similar to writing an audio filter. The only difference is that you have to deal with the input buffers yourself, and request for new buffers when you need to. Between two calls to pf_do_work, the position in the buffer is remembered in p_input->p_first_byte_to_mix (it isn't always the start of the buffer, since input and output buffers can be of different length). It is your job to set this pointer at the end of pf_do_work.
 
 
 
For more details, please have a look at the float32 mixer. It's much more understandable than lines of documentation.
 

Latest revision as of 11:31, 28 November 2011