
150 II Buildable Tools
// to the update buffer .
SoundCategory *category = SoundEngine::getFirstCategory();
for ( ; category ; category = category -> getNextCategory() )
{
buff -> addCategoryInfo(category -> getName (),
category -> getVolume());
}
// Send the buffer over to the GUI Tool!
SendBufferToGUITool(buff);
}
Listing 11.2. Sending the game’s audio state to the GUI tool.
As well as sending audio state information, the game-side tool must receive
information on which of the sound categories the sound designer wishes to mute.
Listing 11.3 shows an example of how we might receive this information from a
buffer sent from the GUI tool.
Because the GUI portion ...