dimanche 21 décembre 2014

Set audio output device per application

How can I change the playback audio output device for an application with WASAPI.


I'm using C# and already have code to set volume per application



public static void SetApplicationVolume(string name, float level)
{
ISimpleAudioVolume volume = GetVolumeObject(name);
if (volume == null)
return;

Guid guid = Guid.Empty;
volume.SetMasterVolume(level / 100, ref guid);
}

Aucun commentaire:

Enregistrer un commentaire