Game Development Community

Cannot stop sound playing - RESOLVED

by Steven Chiu · in Torque 3D Professional · 03/13/2011 (4:56 am) · 4 replies

I play a sound profile using sfxPlayOnce:
$soundbk = sfxPlayOnce(BackgroundSound);
Then on player been disabled, I stop the sound playing using:
$soundbk.stop();

This used to be working in T3D B1 but not working in Beta 3 now! Any clue for this?

#1
03/14/2011 (10:51 am)
I cannot reproduce the problem here but it has been reported before so there is definitely something going on.

Can you give me some more details on your particular setup? Like the profile you are using and the description you are using. Also, the SFX provider (FMOD, OAL, ...) you are using. And basically anything else that might be relevant :)

//Edit:
Other details: what format is your sound (ogg or wav; stereo or mono)? is this in-game or in the menus?
#2
03/14/2011 (6:11 pm)
singleton SFXDescription( BackgroundMusicLoop3D : AudioMusic )
{
isStreaming = false;
is3D = false;
isLooping = true;
};

datablock SFXProfile(BackgroundSound)
{
filename = "art/sound/background";
description = BackgroundMusicLoop3D; //AudioDefaultLoop3D;
preload = true;
};

The sound file is in wave format, stereo , and play in-game.
#3
03/15/2011 (11:57 pm)
Greetings!

Logged as THREED-1480. Thanks!

- Dave
#4
10/06/2011 (5:29 pm)
Fixed in 1.2, should be fixed in 1.1 as well.