====== Example Programs ====== {{:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:figures:examples.png}} ---- This chapter provides reference documentation for most of the examples in the Examples folder on the Portfolio 2.5 CD-ROM. The examples provide a useful introduction to many of the features of the 3DO system, including graphics, audio, the event broker, and the kernel. Click on any of the example names for more information. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs001#xref16758|3doorbit]]-Demonstrates incorporating moving animations and sound effects. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs002#xref24733|aaplayer]]-Loads and plays back an anti-aliased animation, using timer mechanisms. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs003#xref23065|access]]-Demonstrates how to use Access for simple user-interface displays. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs004|allocate]]-Allocates blocks for a file. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs005#xref42093|allocmem]]-Demonstrates how to allocate a block of memory and return it. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs006#xref18997|animationvdl]]-Manipulates an animation against a background image. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs007#xref24836|animsample]]-Loads and displays an animation and a background. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs008#xref12095|beep]]-Simple beep demonstration. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs009#xref38764|bounce]]-Interactive component animation with sound [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs010#xref23122|bs_example]]-Peripheral example program. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs011#xref10302|capture_audio]]-Record the output from the DSPP to a host file. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs012#xref31523|CoalRiver]]-Playsa MIDI file using Juggler and Score toolbox. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs013#xref36882|colorecho]]-Shows interesting visual effects in tune with audio. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs014#xref17063|compression]]-Demonstrates use of the compression folio. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs015#xref28546|cpdump]]-Queries the event broker and prints out a summary of what's connected to the control port. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs016#xref28041|drumbox]]-Simple single-pattern drum machine. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs017#xref18785|effectshandler]]-Utility code for mixers and sound effects. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs018#xref24770|focus]]-Talks to the event broker and switches the focus to a different listener. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs019#xref37834|fontlibexample]]-Exercises the font and text libraries. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs020#xref21459|fontviewer]]-Displays and manipulates a font. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs021#xref38524|joystick_example]]-Demonstrates programming for joystick. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs022#xref10620|jsanimation]]-Demonstrates how to play an animation (a Jumpstart program). [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs023#xref10983|jsbasicslideshow]]-Demonstrates a basic slideshow (a Jumpstart program). [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs024#xref37974|jsinteractivemusic]]-Starts background music as an independent task (a Jumpstart program). [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs025#xref32362|jsinteractivesound]]-Demonstrates using sound effects (a Jumpstart program). [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs026#xref24616|jsintmusicthread]]-Demonstrates starting background music as a thread (a Jumpstart program). [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs027#xref30411|jsmovecel]]-Demonstrates moving and distorting cels (a Jumpstart program). [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs028#xref20383|jsplaybgndmusic]]-Plays an audio loop as a separate background task. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs029#xref23319|jsshowcel]]-Demonstrates how to display cels (a Jumpstart program). [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs030#xref27781|jsslideshowvdl]]-Loads and displays image files which may contain custom VDLs (a Jumpstart program). [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs031#xref17979|kanjifontviewer]]-Displays and manipulates Kanji fonts [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs032#xref30884|lightgundemo]]-Simple example program which uses lightgun.c functions. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs033#xref19268|lookie]]-Connects to the event broker and reports any events that occur. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs034#xref22247|lrex]]-Demonstrates subcel extraction from an image. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs035#xref19663|ls]]-Displays the contents of a directory. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs036#xref13672|luckie]]-Uses the event broker to read events from the first control pad. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs037#xref21620|maus]]-Uses the event broker to read events from the first mouse. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs038#xref41839|memdebug]]-Demonstrates the memory debugging subsystem. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs039#xref20452|menu]]-Displays a list of programs and lets the user launch one. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs040#xref25472|minmax_audio]]-Measures the maximum and minimum output from the DSP. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs041#xref29960|mouseufo]]-A basic player/target game with mouse support. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs042#xref23329|msgpassing]]-Demonstrates sending and receiving messages between two threads. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs043#xref34310|nvram]]-Demonstrate how to save files to nvram and other writable devices. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs044#xref14707|perftest]]-Displays bouncing 16-bit uncoded cels over an image background. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs045#xref19330|playmf]]-Plays a standard MIDI file. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs046#xref41344|playsample]]-Plays an AIFF sample in memory using the control pad. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs047#xref31063|playsoundfile]]-Plays AIFF sound files from disk. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs048#xref34603|signals]]-Demonstrates how to use signals. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs049#xref41548|simple_envelope]]-Simple audio envelope example. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs050#xref12581|slideshow]]-Slideshow program which displays NTSC or PAL images. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs051#xref36295|slideshow24]]-Version of slideshow that supports displays of 24-bit 3DO images. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs052#xref32076|spoolsoundfile]]-Plays an AIFF sound file from a thread using the original sound file player. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs053#xref33907|storagetuner]]-NVRAM management tool which can delete files. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs054#xref27345|symanim]]-Demonstrates playing animations with optional rotation and scaling. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs055#xref29292|ta_attach]]-Experiments with sample attachments. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs056#xref27928|ta_customdelay]]-Demonstrates a delay line attachment. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs057#xref29655|ta_envelope]]-Tests various envelope options by passing test index. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs058#xref25453|ta_pitchnotes]]-Plays a sample at different MIDI pitches. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs059#xref29007|ta_spool]]-Demonstrates the music.lib sound spooler. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs060#xref14818|ta_sweeps]]-Demonstrates tweaking knobs. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs061#xref21851|ta_timer]]-Demonstrates use of the audio timer. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs062#xref12532|ta_tuning]] -Demonstrates custom tuning a DSP instrument. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs063#xref14256|ta_tweakknobs]]-Tweaks the knobs available on an instrument. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs064#xref19147|timerread]]-Demonstrates how to use the timer device to read the current system time. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs065#xref17923|timersleep]]-Demonstrates how to use the timer device to wait for an amount of time specified on the command-line. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs066#xref41268|tj_canon]]-Uses the juggler to create and play a semi-random canon. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs067#xref19721|tj_multi]]-Uses the juggler to play a collection. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs068#xref38866|tj_simple]]-Uses the juggler to play two sequences. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs069#xref41879|tsc_soundfx]]-Uses the score player as a sound effects manager. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs070#xref12219|tsp_algorithmic]]-Advanced sound player example showing algorithmic sequencing of sound playback. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs071#xref30384|tsp_rooms]]-Room-sensitive soundtrack example using advanced sound player. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs072#xref11133|tsp_spoolsoundfile]]-Plays an AIFF sound file from a thread using the advanced sound player. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs073#xref12413|tsp_switcher]]-Advanced sound player example that switches between sounds based on control pad input. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:#xref10845|type]]-Type a file's content to the output terminal. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs075#xref26687|ufo]]-A basic player/target game. [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs077#xref23867|walker]]-Recursively displays the contents of a directory, and all nested directories.