In need of a sound explanation to Torque Sound Scripting.
by Kuju Manila · in Torque Game Engine · 11/23/2006 (8:21 am) · 2 replies
I am having troubles in creating sounds in Torque the way I wanted to, specifically in terms of having sound networked or not. I know, you use new to make non-networked sound and datablocks for networked sounds. But I am still have these problems on getting to play sounds. To address the problem I have two questions:
1) What is the ending effect of the following?
CASE A:
new AudioDescription, new AudioProfile = Non-networked
CASE B:
new AudioDescription, datablock AudioProfile = ???
CASE C:
datablock AudioDescription, new AudioProfile = ???
CASE D:
datablock AudioDescription, datablock AudioProfile = ???
2) Given the cases above, I have 2D sound and I have a setup such that my server and client are on a single computer for a Single Player Torque game. I use alxPlay() script command to play sounds, but only CASE A do produce the sound. Now, I want some of my sounds to be networked, so I tried CASES B-D, but the sound doesn't play. What is wrong?
1) What is the ending effect of the following?
CASE A:
new AudioDescription, new AudioProfile = Non-networked
CASE B:
new AudioDescription, datablock AudioProfile = ???
CASE C:
datablock AudioDescription, new AudioProfile = ???
CASE D:
datablock AudioDescription, datablock AudioProfile = ???
2) Given the cases above, I have 2D sound and I have a setup such that my server and client are on a single computer for a Single Player Torque game. I use alxPlay() script command to play sounds, but only CASE A do produce the sound. Now, I want some of my sounds to be networked, so I tried CASES B-D, but the sound doesn't play. What is wrong?
Kuju Manila
Default Studio Name