Forum

Results 1 to 10 of 10
  1. #1
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69

    Solved set3DWaveAttributes does not seem to be respected when playing files

    Title says it all. I cannot get a wave play with handle to actually utilize its 3d settings. I've tried:

    1. playWaveFileHandle, then set3DWaveAttributes
    2. playWaveFileHandle, then pause with pauseWaveFileHandle, then set3DWaveAttributes, then unpause with pauseWaveFileHandle

    code of the example try:
    Code:
    	TS3_VECTOR vector = {-10.0f, position.y, position.z};
    	TRACE("HIT [%f,%f,%f]", vector.x, vector.y, vector.z);
    	if(flag == ACRE_SQUAWK_ON) {
    		ret = ts3Functions.playWaveFileHandle(ts3Functions.getCurrentServerConnectionHandlerID(),
    										this->getSquawkOnPath(),
    										0,
    										&playHandle);
    	} else {
    		ret = ts3Functions.playWaveFileHandle(ts3Functions.getCurrentServerConnectionHandlerID(),
    										this->getSquawkOffPath(),
    										0,
    										&playHandle);
    	}
    	ret = ts3Functions.pauseWaveFileHandle(ts3Functions.getCurrentServerConnectionHandlerID(),
    										playHandle,
    										1);
    
    	ret = ts3Functions.set3DWaveAttributes(ts3Functions.getCurrentServerConnectionHandlerID(),
    										playHandle,
    										&vector);
    
    	ret = ts3Functions.pauseWaveFileHandle(ts3Functions.getCurrentServerConnectionHandlerID(),
    										playHandle,
    										0);

    Debug outputs a correct vector of -10, 0, 0. But the wave still appears to play at 0,0,0 regardless of what this is set to or when.

  2. #2
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69
    deleted, created new thread
    Last edited by jaynus; January 20th, 2011 at 04:39 PM.

  3. #3
    Join Date
    June 2002
    Location
    Netherlands
    Posts
    1,049
    Wav files with more than 1 channel could not be 3d positioned. The next release will allow 2 channel wav files to be 3d positioned by down mixing it to 1 channel before 3d processing.

  4. #4
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69
    Not fixed in pre-7.

  5. #5
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69
    Just tested again with both stereo and mono wave files on pre8, neither seem to be 3D directional when set using the code example above.

    Wave files being used:

    http://srv1.unitedoperations.net/acre/sounds/

  6. #6
    Join Date
    June 2002
    Location
    Netherlands
    Posts
    1,049
    Noted and working on it

  7. #7
    Join Date
    June 2002
    Location
    Netherlands
    Posts
    1,049
    As a general note: It might be beneficial to check the error codes those functions return.

  8. #8
    Join Date
    June 2002
    Location
    Netherlands
    Posts
    1,049
    Last spam

    This is fixed in the next revision. (from: 13569). The problem was that if set3DWaveAttributes was called "too soon" after playWaveFileHandle, it would be ignored. There is no need to pause/unpause

  9. #9
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69
    Understood and thanks

    And just to comment on above (even though you found the problem and its fixed), the return codes were all returning OK.

    Anyways - I await the next pre

  10. #10
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69
    Confirmed fixed in pre10.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. TSX Bot speaking and playing mp3 files plus plugin system
    By Master_Jochen in forum Tools / Web Based
    Replies: 13
    Last Post: December 12th, 2013, 01:08 AM
  2. [Resolved] 3D Sound and Attenuation set via API's is not respected
    By jaynus in forum Bug Reports [EN/DE]
    Replies: 2
    Last Post: January 25th, 2011, 07:48 PM
  3. [PLUGIN API] sendPluginCommand SCOPE is not respected
    By jaynus in forum Client Plugins / Lua Scripts
    Replies: 4
    Last Post: July 2nd, 2010, 03:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •