Game Development Community

dev|Pro Game Development Curriculum

Closed Captioning

by Eelke Folmer · 09/11/2007 (9:39 am) · 4 comments

Download Code File

To add the closed captioning to the Torque engine copy the two source files to \engine\audio\ and add them to the "source files/audio" directory of the torque demo project. Copy FileCaptions.txt, radar.png, SoundPing.png and blank.png to the directory which contains the executable for the FPS demo. Then add the following line to the beginning of audio.cc

#include "audio/ClosedCaptioning.h"


In audio.cc add the following line to the alxPlay(const AudioProfile *profile, ...) function after the call to alxCreateSource(...);

AddClosedCaptionSound((char*)profile->mFilename,transform);


Once it compiles correctly run the applications executable and get to the screen where captioning should be added. Then press F10 to enter Torques built in GUI editor. Click the New Control box and select GuiCCRadarHud from the drop down list. Reposition and resize as desired. Repeat for GuiCCTextHud.

About the author

Recent Blogs


#1
09/11/2007 (10:51 am)
Sorry for ignorance, but what is this concept of Closed Captioning? I mean, wha it does?
#2
09/12/2007 (5:59 am)
@Novack: Closed captioning is for people who can not hear sounds or can not hear them well. As most of us know, sound is very important in games, as it can add atmosphere and excitment, as well as letting the player know what is going on in the game world.

This resource, which I have yet to try, is trying to help people who are hearing impared to still be able to play the game by letting them know where sound is coming from via the sound radar and for spoken sounds, like speech from NPC's you have the closed captioning.

I will be adding this to any game I do. I am disabled, although I am not hearing impared, and I am glad to see someone thinking of disabled gamers as well.
#3
09/12/2007 (7:07 am)
Thanks for the explanation Chris, very usefull indeed. Ive never know of that till now.

When the time comes of my project finished, Ill come back here! :)
#4
09/20/2007 (7:34 am)
Gotta give props to Eelke and Tyler Winters for making this component. I'm hearing impaired and one of the first advocates for closed captioning in games, something I've been doing for several years now. Here are some resources if people are looking for more info on CC in games.

http://gamescc.rbkdesign.com/

http://www.game-accessibility.com/index.php?pagefile=auditory

http://en.wikipedia.org/wiki/Closed_captioning