Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

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

    Wave files are machine specific (suspect codec?)

    When playing a wav file via playWaveFileHandle, on my own system it works correctly.

    When attempting to use my plugin on another persons system and utilizing playWaveFileHandle, the wave file does *not* play.

    Settings on my end:
    Playback - automagic (works with both WASAPI and DirectSound)
    Playback Device - manually selected


    His Settings:
    Playback - automagic (does NOT Work with either)
    PlayBack Device - attempted both automagic and manual selection; did not work.

    Again, the wav file is the exact same on both systems, as is the plugin and settings. It seems to possibly be some sort of machine-dependent issue?

  2. #2
    Join Date
    June 2008
    Posts
    18,513
    what client version are you both using? Is it our defualt soundpack you both use here? What is your plugin doing exactly? Does it play the sound on your client??

  3. #3
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69
    This was tested with pre6 and pre7, it was present in both.

    The wave will not play on his client (e.g. the function returns no error, but he hears nothing), but will play on mine (I hear it just fine).

    This is playing via the API function playWaveFileHandle() locally from the plugin.

    Code:
    ACRE_RESULT CTsSoundEngine::playSquawk(CPlayer *player, ACRE_SQUAWK flag, float volume, ACRE_VECTOR position) {
    	unsigned long long playHandle;
    	unsigned int ret;
    
    	TS3_VECTOR vector = {position.x,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.set3DWaveAttributes(ts3Functions.getCurrentServerConnectionHandlerID(),
    										playHandle,
    										&vector);
    	return ACRE_OK;
    }
    Which is loaded from a wave file, available here:
    http://srv1.unitedoperations.net/acre/sounds/

  4. #4
    Join Date
    January 2010
    Location
    Catalunya
    Posts
    2,350
    Try with pre-8

  5. #5
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69
    Tested with pre-8, just confirmed it actually does work - but it only worked because it updated and it changed his settings.

    playWaveFileHandle() uses the sound pack volume - which most of our players turn all the way down/off.

    Is there a way to either:
    1. Have a different function, which plays within the regular playback stream instead?
    or
    2. a way to pass the function a flag for which sound output method to use? e.g. so I can output into the regular voice output volumes rather than the soundpack volume.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: December 23rd, 2014, 11:12 PM
  2. Replies: 2
    Last Post: November 14th, 2014, 07:31 PM
  3. Granting Talk Power in specific Channels. Need Specific Access.
    By zangetsuslayer in forum Permission System
    Replies: 1
    Last Post: July 2nd, 2014, 09:36 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
  •