Audio Mixer: Usage In GraphEdit


Instructions for using the Audio Mixer in GraphEdit:
  • Add media files to GraphEdit (using the "Render" function) or insert audio source filters.
  • Add the Audio Mixer filter to GraphEdit, open its properties window, and select "Custom" mode. Click "Apply" or "OK" on propertry frame.
  • Connect the outputs (containing PCM-format audio) from the upstream filters to the inputs of the Audio Mixer. The Audio Mixer’s inputs can have any sampling rate; however, all output streams from the Audio Mixer must have the same sampling rate (selected via "Output frequency" control).
  • Perform a "Render" operation on one or more output pins of the Audio Mixer.
  • In the Audio Mixer properties window, you can configure the following common filter parameters:
    • "Max delay" - defines the maximum time interval between the output of audio data from the Audio Mixer and its actual playback through the speakers.
    • "Don't correct delay" - if this option is enabled, delay correction (as well as the "Max delay" parameter) is disabled.
    • "Wait for EndOfStream from all input pins" - determines when an "EndOfStream" notification is sent to the output pins: either when an "EndOfStream" signal has been received from all connected input pins, or when it has been received from at least one of them.
    • "Fill gaps" - if this option is enabled, the output stream is filled with silence whenever data is missing from any of the input pins.

    Using Audio Mixer to mix in custom mode.
    Using Audio Mixer to mix in custom mode.

  • For each output pin (selected via the "Output" control), you can configure the following parameters:
    • "Channels" - the number of channels (from 1 to 32).
    • "Bits" - the number of bits per mono sample (from 8 to 32).
    • "Mask" - the channel mask (a hexadecimal value).
    • Dynamic compression parameters (threshold and compression ratio).
    • Mixing parameters (gain matrix): 0.0 corresponds to silence, 1.0 to the original volume level.