Added master output gain function.

Signed-off-by: robertsonics <jamie@robertsonics.com>