Raised This Month: $32 Target: $400
 8% 

VoiceHook - Developer preview of something.


Post New Thread Reply   
 
Thread Tools Display Modes
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 07-27-2011 , 11:17   Re: VoiceHook - Developer preview of something.
Reply With Quote #61

Quote:
Originally Posted by asherkin View Post
And what advantage would that bring you?
i would know how you achieved it
Zephyrus is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 08-14-2011 , 10:48   Re: VoiceHook - Developer preview of something.
Reply With Quote #62

Quote:
Originally Posted by Zephyrus View Post
i wish it was opensource
SourceOP is now open-source. I haven't looked through it myself, but I think it also hooked voice chat.
GoD-Tony is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-14-2011 , 12:55   Re: VoiceHook - Developer preview of something.
Reply With Quote #63

Quote:
Originally Posted by GoD-Tony View Post
SourceOP is now open-source. I haven't looked through it myself, but I think it also hooked voice chat.
The actual voice decoding is done in the remote admin client, which afaik he has not open sourced yet (one of the reasons being the inclusion of the speex code, since he used it directly rather than going through the vaudio codecs).
__________________
asherkin is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 08-17-2011 , 07:25   Re: VoiceHook - Developer preview of something.
Reply With Quote #64

Quote:
Originally Posted by GoD-Tony View Post
SourceOP is now open-source. I haven't looked through it myself, but I think it also hooked voice chat.
im not interested anymore but thank you
Zephyrus is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-05-2011 , 19:40   Re: VoiceHook - Developer preview of something.
Reply With Quote #65

http://www.dspdimension.com/admin/pi...-using-the-ft/

Code:
void smbPitchShift(float pitchShift, long numSampsToProcess, long fftFrameSize, long osamp, float sampleRate, float *indata, float *outdata);

void VoiceTest::OnVoiceBroadcast(int client, char *pVoiceData, int *nSamples)
{
	float *samples = new float[*nSamples];

	for (int i = 0; i < (*nSamples * 2); i += 2)
	{
		short sample = (pVoiceData[i+1] << 8) | pVoiceData[i];
		samples[i/2] = (float)sample / 32768.0f;
	}

	smbPitchShift(2.0, *nSamples, 1024, 32, 11025.0f, samples, samples);

	for (int i = 0; i < (*nSamples * 2); i += 2)
	{
		samples[i/2] = clamp<float>(samples[i/2], -1.0f, 0.999f);

		short sample = samples[i/2] * 32768.0f;
		pVoiceData[i+1] = (sample & 0xFF00) >> 8;
		pVoiceData[i] = sample & 0xFF;
	}

	delete samples;
}
__________________
asherkin is offline
weeb1e
SourceMod Donor
Join Date: Sep 2011
Old 10-14-2011 , 04:22   Re: VoiceHook - Developer preview of something.
Reply With Quote #66

Massive update broke extension


[META] Failed to load plugin addons/voicehook_mm: Could not find SV_BroadcastVoiceData function.
weeb1e is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-14-2011 , 06:49   Re: VoiceHook - Developer preview of something.
Reply With Quote #67

Update.

Changes:
  • Added "raw" listeners, these are called before decompression takes place.
  • Made decompression bail-out if sv_use_steam_voice is enabled, this means that only raw listeners get called, not regular ones (and there is no longer any console spam).
  • Updated gamedata for today's update.
  • Minor fixes for changing the voice data in the listener callback.
__________________
asherkin is offline
BoBzY
AlliedModders Donor
Join Date: Aug 2010
Location: Bruxelles
Old 10-17-2011 , 19:43   Re: VoiceHook - Developer preview of something.
Reply With Quote #68

Hello,

I got this error : Failed to load plugin addons/voice/bin/voicehook_mm (Could not find SV_BroadcastVoiceData function.).

?
BoBzY is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-18-2011 , 20:00   Re: VoiceHook - Developer preview of something.
Reply With Quote #69

I'm afraid Valve's descision to split CS:S from Source 2009 has broken this for it.
I... haven't decided what to do about it yet.
__________________
asherkin is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 10-19-2011 , 08:49   Re: VoiceHook - Developer preview of something.
Reply With Quote #70

Quote:
Originally Posted by asherkin View Post
I'm afraid Valve's descision to split CS:S from Source 2009 has broken this for it.
I... haven't decided what to do about it yet.
Is it just the hassle of compiling a separate binary, or has a lot changed between SDKs?
__________________
GoD-Tony is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode