This project has moved. For the latest updates, please go here.

AudioClient.AudioClockClient throws InvalidCastException

Jul 5, 2014 at 4:47 PM

I'm trying to use IAudioClock but when I get the interface from AudioClient.AudioClockClient, the GetService call throws an InvalidCastException.

For instance, in WasapiOut.cs if I retrieve the clock at the end in the Init call like this:
    // Get the RenderClient
    renderClient = audioClient.AudioRenderClient;

    var clockClient = audioClient.AudioClockClient;
...I get the InvalidCastException.

Any ideas?
Jul 17, 2014 at 3:27 PM
It appears there are several problems with the code to get the AudioClockClient. I've checked in an experimental fix, will need to make sure it still works with Win 8.