Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Allegro Video

This thread is locked; no one can reply to it. rss feed Print
Allegro Video
chanochambure
Member #15,725
September 2014
avatar

Hi.
How to change the gain in a ALLEGRO_VIDEO? ???

SiegeLord
Member #7,827
October 2006
avatar

Audio gain? You can adjust the gain of the mixer the video is attached to:

al_start_video(video, al_get_default_mixer());
al_set_mixer_gain(al_get_default_mixer(), 0.5);

That will affect all sounds playing through that mixer, so you could create another mixer and attach the video to that mixer instead.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

chanochambure
Member #15,725
September 2014
avatar

Thanks for Reply!! ;D

Go to: