mvEnableAudio(3dm) mvEnableAudio(3dm)
mvSetEnableAudio, mvGetEnableAudio - Enable/disable audio playback for a
movie instance
#include <dmedia/moviefile.h>
#include <dmedia/movieplay.h>
void mvSetEnableAudio(MVid movieid, DMboolean onoff);
DMboolean mvGetEnableAudio(MVid movieid);
mvSetEnableAudio(3dm) enables or disables all audio playback for a movie.
To play audio, specify DM_TRUE for the onoff parameter; to mute audio,
specify DM_FALSE. If the movie has no sound track, or the system does
not have audio capability, this call has no effect. The default is
DM_TRUE. You may play or mute audio regardless of whether or not the
specified movie is currently playing.
mvGetEnableAudio(3dm) returns the current audio playback status for the
specified movie.
You may only call these functions for a specified movie while it is bound
to a window (see mvBindOpenGLWindow(3dm)).
mvBindOpenGLWindow(3dm), mvIntro(3dm), mvPlay(3dm).
PPPPaaaaggggeeee 1111 [ Back ]
|