Results 1 to 8 of 8
-
20-01-2011, 15:38 #1
-= TeamSpeak Lover =-
- Join Date
- Feb 2010
- Location
- Seattle
- Posts
- 76
onEditPostProcessVoiceDataEvent returned sample stream is not used
When performing stream manipulation with the onEditPostProcessVoiceDataEvent, the data does not seem to actually be used - it is just providing me with the stream data, but not utilizing my return of the stream.
Example:
The below works fine on the pre-processed stream it does perform my transformations.
The following does nothing.Code:ACRE_RESULT CTsEngine::onEditPlaybackVoiceDataEvent(uint64 server, ACRE_ID id, short* samples, int sampleCount, int channels) { //TRACE("[%d] - s:[%d],c:[%d]", id, sampleCount, channels); g_testRadioFilter.process(samples, sampleCount, channels); return ACRE_OK; }
Still transforms the provided stream - but it is not utilized for the actual audio output to TS3.Code:ACRE_RESULT CTsEngine::onEditPostProcessVoiceDataEvent(uint64 server, ACRE_ID id, short* samples, int sampleCount, int channels) { //TRACE("[%d] - s:[%d],c:[%d]", id, sampleCount, channels); g_testRadioFilter.process(samples, sampleCount, channels); return ACRE_OK; }
-
20-01-2011, 16:03 #2
-= TeamSpeak Team =-
- Join Date
- Jun 2002
- Location
- Netherlands
- Posts
- 1,196
This bug has been fixed in the next release. Thank you for the report.
-
20-01-2011, 16:39 #3
-= TeamSpeak Lover =-
- Join Date
- Feb 2010
- Location
- Seattle
- Posts
- 76
Thanks! Will report back on next release.
-
26-04-2012, 00:10 #4
-= TeamSpeak Lover =-
- Join Date
- Mar 2010
- Location
- Tacoma
- Posts
- 49
[3.0.6] Stereo panning via onEditPostProcessVoiceDataEvent totally broken
This "fix" for stereo surround sound has totally broken any sort of ability for us to do this manually, using our own methods via the onEditPostProcessVoiceDataEvent. This was working fine with stereo sound data before 3.0.6 and now it seems like this API event does nothing to the audio.
Please fix this ASAP, as it is preventing a large portion of the Arma 2 community from updating to 3.0.6 due to the fact that it now breaks the ACRE plugin.
-
26-04-2012, 00:13 #5
-= TeamSpeak Lover =-
- Join Date
- Mar 2010
- Location
- Tacoma
- Posts
- 49
This looks like its been a bug before: http://forum.teamspeak.com/showthrea...am-is-not-used
Please address this quickly. It is seriously causing a major lack of confidence in the Arma community over the viability of Teamspeak as a stable platform for development of plugins.
-
26-04-2012, 08:59 #6
-= TeamSpeak Team =-
- Join Date
- Jun 2002
- Location
- Netherlands
- Posts
- 1,196
I did a test but it seems to be working as expected, so right now I suspect you are using the api incorrectly. The only relevant change i can think of is that we defined 3 new speaker constants:
This can cause code that is looking for SPEAKER_FRONT_(LEFT|RIGHT) to fail if teamspeak detects a headset/headphones or a mono output system.Code:#define SPEAKER_HEADPHONES_LEFT 0x10000000 #define SPEAKER_HEADPHONES_RIGHT 0x20000000 #define SPEAKER_MONO 0x40000000
If that is not it, please post/send me the relevant code, so I can see what is going on.
As an example here is my test routine. It is very very crude, please don't use it in real code. It just replaces the current voice output with a sine wave. It does not look at what channels are filled, or even verifies the clientID, so it sucks if more than 1 person speaks. Also, it only works if you connect less than 11 times per client startup
Code:void ts3plugin_onEditPostProcessVoiceDataEvent(uint64 serverConnectionHandlerID, anyID clientID, short* samples, int sampleCount, int channels, const unsigned int* channelSpeakerArray, unsigned int* channelFillMask) { static int connections[]={0,0,0,0,0,0,0,0,0,0,0,0}; int i,j; int period = connections[serverConnectionHandlerID]; for(i=0; i < sampleCount; ++i){ short sample = (0.5f*sin(120.0*2.0*3.1415f*period/48000.0))*32767; period = (period + 1) % 48000; for(j=0; j < channels; ++j){ *samples++ = sample; } } connections[serverConnectionHandlerID] = period; }
-
26-04-2012, 10:04 #7
-= TeamSpeak Lover =-
- Join Date
- Mar 2010
- Location
- Tacoma
- Posts
- 49
Actually it was that the signature for the function changed in the current SDK and I didn't see that.
Added in the additional arguments and now its calling it (wasn't even firing before haha).
Sorry for the confusion.
-
26-04-2012, 10:12 #8
-= TeamSpeak Team =-
- Join Date
- Jun 2002
- Location
- Netherlands
- Posts
- 1,196
No problem
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
onEditPostProcessVoiceDataEvent returned sample stream is not used
By jaynus in forum Bug ReportsReplies: 2Last Post: 20-01-2011, 16:39 -
Panning
By crazzyt9 in forum [TeamSpeak 2] General QuestionsReplies: 1Last Post: 13-06-2008, 03:31 -
Totally Stucked
By TiBiA in forum [TeamSpeak 2] Server SupportReplies: 1Last Post: 29-06-2004, 01:39 -
panning sound output
By RG_LunAnder in forum [TeamSpeak 2] Client SupportReplies: 2Last Post: 17-01-2004, 10:47 -
Totally new......Help
By EVIL_SHREDDER in forum [TeamSpeak 2] Client SupportReplies: 17Last Post: 31-05-2003, 21:25


Reply With Quote