Forum

Results 1 to 3 of 3
  1. #1
    Join Date
    July 2014
    Posts
    14

    playWaveFile() not working properly? o_O

    hi guys,

    I am using this piece of code:

    Code:
    void ts3plugin_onClientMoveMovedEvent(uint64 serverConnectionHandlerID, anyID clientID, uint64 oldChannelID, uint64 newChannelID, int visibility, anyID moverID, const char* moverName, const char* moverUniqueIdentifier, const char* moveMessage) {
    	char appPath[PATH_BUFSIZE];
    	ts3Functions.getAppPath(appPath, PATH_BUFSIZE);
    	char* requestedPath = appPath;
    	char reqPath[] = "sound/default/talkpower_requested.wav";
    	strcat(requestedPath, reqPath);
    	char* grantedPath = appPath;
    	char graPath[] = "sound/default/talkpower_granted.wav";
    	strcat(grantedPath, graPath);
    
    	if (newChannelID == 15 || newChannelID == 16)
    	{
    		ts3Functions.playWaveFile(serverConnectionHandlerID, requestedPath);
    	}
    	if (newChannelID == 17 || newChannelID == 18 || newChannelID == 19 || newChannelID == 201)
    	{
    		ts3Functions.playWaveFile(serverConnectionHandlerID, grantedPath);
    		//ts3Functions.requestSendChannelTextMsg(serverConnectionHandlerID, "event triggered", 98, NULL);
        }
    }
    when I used
    Code:
    ts3Functions.requestSendChannelTextMsg(serverConnectionHandlerID, "event triggered", 98, NULL);
    , it worked perfectly, but I didn't get the playWaveFile soundoutput. I hear nothing.

    I think I just have to pass the serverConnectionHandlerID provided by ts3plugin_onClientMoveMovedEvent to ts3Functions.playWaveFile, haven't I?
    The Path should be correct too...

  2. #2
    Join Date
    September 2012
    Posts
    6,077
    Quote Originally Posted by Dione View Post
    The Path should be correct too...
    emphasis on should. Did you ever check that it actually is?

    Because it shouldn't be correct based on what you're doing...
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  3. #3
    Join Date
    July 2014
    Posts
    14
    I don't exactly know, what I did wrong, but now it works
    nevertheless, thanks for your answer^^

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. PTT not working properly
    By xSixOneThirdx in forum Windows
    Replies: 8
    Last Post: October 1st, 2013, 07:57 AM
  2. Beta 29 not working properly
    By Billy885 in forum Windows
    Replies: 2
    Last Post: September 11th, 2010, 01:23 PM

Posting Permissions

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