2019-03-17 14:40:57 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
< html >
< head >
< title > Booklet Title< / title >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" >
< meta http-equiv = "Content-Language" content = "en-gb" >
< link href = "inweb.css" rel = "stylesheet" rev = "stylesheet" type = "text/css" >
< / head >
< body >
<!-- Weave of '1/mm' generated by 7 -->
< ul class = "crumbs" > < li > < a href = "../webs.html" > ★ < / a > < / li > < li > < a href = "index.html" > multimedia< / a > < / li > < li > < a href = "index.html#1" > Chapter 1: Starting Up< / a > < / li > < li > < b > Multimedia Module< / b > < / li > < / ul > < p class = "purpose" > Setting up the use of this module.< / p >
< ul class = "toc" > < li > < a href = "#SP1" > § 1. Introduction< / a > < / li > < li > < a href = "#SP3" > § 3. The beginning< / a > < / li > < li > < a href = "#SP4" > § 4. The end< / a > < / li > < / ul > < hr class = "tocbar" >
< p class = "inwebparagraph" > < a id = "SP1" > < / a > < b > § 1. Introduction. < / b > < / p >
< pre class = "definitions" >
< span class = "definitionkeyword" > define< / span > < span class = "constant" > MULTIMEDIA_MODULE< / span > < span class = "plain" > < / span > < span class = "identifier" > TRUE< / span >
< / pre >
< p class = "inwebparagraph" > < a id = "SP2" > < / a > < b > § 2. < / b > To begin with, this module needs to allocate memory:
< / p >
< pre class = "definitions" >
< span class = "definitionkeyword" > enum< / span > < span class = "constant" > blorb_figure_MT< / span >
< span class = "definitionkeyword" > enum< / span > < span class = "constant" > blorb_sound_MT< / span >
< span class = "definitionkeyword" > enum< / span > < span class = "constant" > external_file_MT< / span >
< / pre >
< pre class = "display" >
< span class = "identifier" > ALLOCATE_INDIVIDUALLY< / span > < span class = "plain" > (< / span > < span class = "reserved" > blorb_figure< / span > < span class = "plain" > )< / span >
< span class = "identifier" > ALLOCATE_INDIVIDUALLY< / span > < span class = "plain" > (< / span > < span class = "reserved" > blorb_sound< / span > < span class = "plain" > )< / span >
< span class = "identifier" > ALLOCATE_INDIVIDUALLY< / span > < span class = "plain" > (< / span > < span class = "reserved" > external_file< / span > < span class = "plain" > )< / span >
< / pre >
< p class = "inwebparagraph" > < / p >
< p class = "inwebparagraph" > < a id = "SP3" > < / a > < b > § 3. The beginning. < / b > (The client doesn't need to call the start and end routines, because the
foundation module does that automatically.)
< / p >
< pre class = "display" >
< span class = "reserved" > void< / span > < span class = "plain" > < / span > < span class = "functiontext" > MultimediaModule::start< / span > < span class = "plain" > (< / span > < span class = "reserved" > void< / span > < span class = "plain" > ) {< / span >
< < span class = "cwebmacro" > Register this module's stream writers< / span > < span class = "cwebmacronumber" > 3.1< / span > > < span class = "character" > ;< / span >
< < span class = "cwebmacro" > Register this module's debugging log aspects< / span > < span class = "cwebmacronumber" > 3.2< / span > > < span class = "character" > ;< / span >
< < span class = "cwebmacro" > Register this module's debugging log writers< / span > < span class = "cwebmacronumber" > 3.3< / span > > < span class = "character" > ;< / span >
< < span class = "cwebmacro" > Register this module's command line switches< / span > < span class = "cwebmacronumber" > 3.4< / span > > < span class = "character" > ;< / span >
< span class = "plain" > }< / span >
< / pre >
< p class = "inwebparagraph" > < / p >
< p class = "endnote" > The function MultimediaModule::start appears nowhere else.< / p >
< p class = "inwebparagraph" > < a id = "SP3_1" > < / a > < b > § 3.1. < / b > < code class = "display" >
< < span class = "cwebmacrodefn" > Register this module's stream writers< / span > < span class = "cwebmacronumber" > 3.1< / span > > =
< / code > < / p >
< pre class = "displaydefn" >
< span class = "plain" > ;< / span >
< / pre >
< p class = "inwebparagraph" > < / p >
< p class = "endnote" > This code is used in < a href = "#SP3" > § 3< / a > .< / p >
< p class = "inwebparagraph" > < a id = "SP3_2" > < / a > < b > § 3.2. < / b > < code class = "display" >
< < span class = "cwebmacrodefn" > Register this module's debugging log aspects< / span > < span class = "cwebmacronumber" > 3.2< / span > > =
< / code > < / p >
< pre class = "displaydefn" >
< span class = "plain" > ;< / span >
< / pre >
< p class = "inwebparagraph" > < / p >
< p class = "endnote" > This code is used in < a href = "#SP3" > § 3< / a > .< / p >
< p class = "inwebparagraph" > < a id = "SP3_3" > < / a > < b > § 3.3. < / b > < code class = "display" >
< < span class = "cwebmacrodefn" > Register this module's debugging log writers< / span > < span class = "cwebmacronumber" > 3.3< / span > > =
< / code > < / p >
< pre class = "displaydefn" >
< span class = "plain" > ;< / span >
< / pre >
< p class = "inwebparagraph" > < / p >
< p class = "endnote" > This code is used in < a href = "#SP3" > § 3< / a > .< / p >
< p class = "inwebparagraph" > < a id = "SP3_4" > < / a > < b > § 3.4. < / b > < code class = "display" >
< < span class = "cwebmacrodefn" > Register this module's command line switches< / span > < span class = "cwebmacronumber" > 3.4< / span > > =
< / code > < / p >
< pre class = "displaydefn" >
< span class = "plain" > ;< / span >
< / pre >
< p class = "inwebparagraph" > < / p >
< p class = "endnote" > This code is used in < a href = "#SP3" > § 3< / a > .< / p >
< p class = "inwebparagraph" > < a id = "SP4" > < / a > < b > § 4. The end. < / b > < / p >
< pre class = "display" >
< span class = "reserved" > void< / span > < span class = "plain" > < / span > < span class = "functiontext" > MultimediaModule::end< / span > < span class = "plain" > (< / span > < span class = "reserved" > void< / span > < span class = "plain" > ) {< / span >
< span class = "plain" > }< / span >
< / pre >
< p class = "inwebparagraph" > < / p >
< p class = "endnote" > The function MultimediaModule::end appears nowhere else.< / p >
< hr class = "tocbar" >
< ul class = "toc" > < li > < i > (This section begins Chapter 1: Starting Up.)< / i > < / li > < li > < i > (This section ends Chapter 1: Starting Up.)< / i > < / li > < / ul > < hr class = "tocbar" >
2019-04-22 17:06:29 +03:00
<!-- End of weave: 54 lines from a web of 1098 -->
2019-03-17 14:40:57 +02:00
< / body >
< / html >