Files
libremetaverse/VoiceTest/VoiceTest.cs
John Hurliman fa9b7830a3 * Added the beginnings of VoiceManager to libsecondlife.Utilities
* Added VoiceTest to test VoiceManager. For now you will have to manually run the voice daemon (shipped with Second Life) each time

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1345 52acb1d6-8a22-11de-b505-999d5b087335
2007-08-03 07:07:49 +00:00

44 lines
1.1 KiB
C#

using System;
using libsecondlife;
using libsecondlife.Utilities;
namespace VoiceTest
{
class VoiceTest
{
static void Main(string[] args)
{
SecondLife client = new SecondLife();
VoiceManager voice = new VoiceManager(client);
if (voice.ConnectToDaemon())
{
voice.RequestCaptureDevices();
voice.RequestRenderDevices();
voice.RequestSetRenderDevice("Speakers (Realtek High Definiti");
voice.RequestSetSpeakerVolume(75);
voice.RequestSetCaptureVolume(75);
voice.RequestStartTuningMode(10000);
//voice.RequestCreateConnector();
voice.RequestRenderAudioStart("bugsbunny1.wav", true);
voice.RequestRenderAudioStart("bugsbunny1.wav", false);
}
Console.ReadKey();
voice.RequestRenderAudioStop();
voice.RequestStopTuningMode();
Console.ReadKey();
}
}
}