SyntaxHighlighter

Tuesday 27 August 2013

Day 50: Resounding progress

The sounds I have need to be split into the background sounds, and the sound effects. Both have different characteristics and logically should be implemented in different ways.

Background music and such can be imported directly as MP3 or WMA, and then played, paused, stopped etc.

Sound effects should be handled by creating an XACT project from WAVs, and then importing the XACT project into the AR program. 3D positioning and attenuation can be applied to the effects as well as looping counts (up to infinite) and they are instantiated as Cue objects and then played at the appropriate times.

I've decided to classify the sounds into the two groups based on their usage. If a sound needs to have 3D effects (including attenuation), or is intended to be played as an effect (i.e. played once and forgotten) then it's an effect. Otherwise it's background music.
Background Music:
guitar music
breathe through gasmask
(various insect sounds)
crackle fire
flamethrower
lear jet engine panning
ticking clock
swam buggy revving
spooky wind

Effects:
golf ball in sand
gravel crunching

Finished the code regarding sound effects for when the heads are being shown. It now plays eerie background sounds whenever the current model set is a head set, and correctly stops all other sound effects regardless of what marker cards are showing (e.g. boots walking, fire sounds etc from other models), starting them off again when we switch the current model set back to a non-head model set.

This was made efficient by putting the code to enable or disable a model (non-head) sound effect into one method that takes a variable specifying whether the sound should be enabled or disabled, declared thusly:
private void processFoundModelAudio(int foundModelIndex, bool Enable)

And something like this deactivates all current sounds with a bang:
for (int i = 0; i < MarkerNodes.Length; i++)
    processFoundModelAudio(i, false);

perform_bang();

(Um the bang bit is a joke)
Okay all looking good. Adding some simple code to play correct effects for the non-head models now.

The email address guinea pig thing is underway, my account is done I'm now on the Office 365 system and have some lovely tasks involving documenting how to set up email on Linux and Windows machines, complete with screenshots, videos if necessary and all the general stuff. Should be fun.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.