Game Development Community

Playing audio tracks?

by Jedive · in Torque Game Engine · 03/26/2005 (6:29 pm) · 1 replies

Taking a look at the TorqueScript Reference that comes in the Apendix A of the 3DGPAI1 book, the only functions to play audio I have found are the RedBook functions (which doesn't do what I need, as they are for playing CD tracks), the ShapeBase::playAudio() function (which isn't also what I need, as I want an environmental audio track playing, and not a sound emitted by a shape) and the OpenAL functions which only seem to wrap the original OAL API. Do I have to use these OpenAL functions to just play music in the background (I guess it's done with alxPlay())?.

#1
03/27/2005 (6:05 pm)
Ok, I've looked the space shooter example that comes with Torque 2D (as the TGE examples does not play background music), and this is done with alxPlay(), so I guess that's the way to do it...