* 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
44 lines
1.1 KiB
C#
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();
|
|
}
|
|
}
|
|
}
|