68 void MHEG5audioPrint(
MHEG5Audio *audio,
char *out)
70 MHEG5ingredientPrint(&audio->ingredient, out);
72 MHEG_PRINT(out,
":ComponentTag ");
73 MHEG5intPrint(audio->componentTag, out);
75 if (audio->originalVolume != 0)
78 MHEG_PRINT(out,
":Volume ");
79 MHEG5intPrint(audio->originalVolume, out);
131 audio->volume = audio->originalVolume;
148 if (!audio->ingredient.root.runningStatus)
150 if (!audio->ingredient.root.availabilityStatus)
156 if (audio->parent->ingredient.root.runningStatus)
164 audio->ingredient.root.runningStatus = MHEG5TRUE;
181 if (audio->ingredient.root.runningStatus)
190 if (audio->parent->ingredient.root.runningStatus)
195 audio->ingredient.root.runningStatus = MHEG5FALSE;
209 MHEG5displayAudioDestroy( audio );
227 if (target->clazz != MHEG5AUDIO)
229 return MHEG5ERR_WRONGTARGET;
234 return MHEG5ERR_WRONGNUMBEROFPARAMS;
236 MHEG5resolveGenericInteger(params, &volume);
241 return MHEG5ERR_NOERROR;
259 if (target->clazz != MHEG5AUDIO)
261 return MHEG5ERR_WRONGTARGET;
266 return MHEG5ERR_WRONGNUMBEROFPARAMS;
268 MHEG5resolveORef(params, &vVar);
271 return MHEG5ERR_WRONGNUMBEROFPARAMS;
273 if (vVar->clazz != MHEG5INTEGERVARIABLE)
275 return MHEG5ERR_WRONGPARAM;
277 if (!vVar->runningStatus)
279 return MHEG5ERR_PARAMNOTACTIVE;
284 return MHEG5ERR_NOERROR;
void MHEG5audioDeactivate(MHEG5Audio *audio)
Apply the deactivation behaviour off the audio class. As this class has no own deactivation behaviour...
void MHEG5ingredientInit(MHEG5Ingredient *ingredient)
Initialise a ingredient object with default values.
void MHEG5audioPrepare(MHEG5Audio *audio)
Apply the preparation behaviour off the audio class Apply the preparation behaviour off the audio cla...
void MHEG5ingredientDestruct(MHEG5Ingredient *ingredient)
Implementation of the Destruction behaviour Execute the following sequence of actions: ...
void MHEG5audioActivate(MHEG5Audio *audio)
Apply the activation behaviour off the audio class. Apply the activation behaviour of the base class...
void MHEG5ingredientActivate(MHEG5Ingredient *ingredient)
Implementation of Activate behaviour Inherrited from Root class.
void MHEG5audioInit(MHEG5Audio *audio)
<Function description>="">
void MHEG5audioDestruct(MHEG5Audio *audio)
Destruct an audio object.
Implement the MHEG5 Variable Class 21 Variable Class Defines a variable within the context of a Group...
void MHEG5displayAudioPlay(MHEG5Audio *audio)
Begin playback of the specified audio object.
MHEG5ErrorCode MHEG5getVolume(MHEG5Root *target, MHEG5GList *params)
Returns the volume of an Audio. Implementation of the GetVolume (VolumeVar) action of the audio class...
void MHEG5displaySetVolume(MHEG5Int volume)
Volume Control.
void MHEG5audioFree(MHEG5Audio *audio)
Free off all memory associated with the specified object, including any exchanged attributes and inte...
MHEG5ErrorCode MHEG5setVolume(MHEG5Root *target, MHEG5GList *params)
Change the volume of an audio. Implementation of the SetVolume (NewVolume) action of the audio class...
void MHEG5displayAudioStop(void)
Stops playback of the audio media decoder.
Event handling. Implementation of a combined queue for events and actions. This is the eventsystem wh...
void MHEG5ingredientDeactivate(MHEG5Ingredient *ingredient)
Implementation of Deactivate behaviour Inherrited from Root class.
Implement functions to retrieve MHEG5objects by GroupID and ID.
void MHEG5ingredientPrepare(MHEG5Ingredient *ingredient)
Implementation of the Preparation behaviour Inherrited from Root class.
Implementation of the MHEG5 Application Class Defines a set of Ingredient objects, which are shared within an application scope. Base class: Group Subclasses: None Status: Concrete class.
Mheg5 logging and debug printing.
void MHEG5ingredientFree(MHEG5Ingredient *ingredient)
Free off all memory associated with the specified object, including any exchanged attributes and inte...
Implement the MHEG5 Audio Class Audio Class Defines the attributes and behaviour of an elementary aud...
Implement generic MHEG5-display functions - independent from the OSD These are generic functions used...
void MHEG5sendSync(MHEG5Root *source, MHEG5EventType event, MHEG5Int data)
Store an event in the synchronous event queue.
MHEG5Application * MHEG5getCurrentApplication(void)
<Function description>="">