I'm basically copying code I've found elsewhere on stackoverflow and running into issues. Perhaps someone can help me out here.
I've seen this code pattern posted around stackexchange with regards to SharpDX a couple of times:
sourceVoice.BufferStart += new EventHandler<ContextEventArgs>(sourceVoice_BufferStart);
private void sourceVoice_BufferStart(object sender, EventArgs e)
{
....event handler actions...
}
This doesn't work with the Windows Phone 8 version of SharpDX, because ContextEventArgs doesn't exist. The question is, has this been deprecated for another way of delegating (both posts I saw were more than a year old), or is it just missing entirely from the WP8 version? And the real question is, how would I go about doing this properly on WP8?
Edit: links to previous questions on stackoverflow: Playing sinus through XAudio2
Playing a sound from a generated buffer in a Windows 8 app
http://www.gamedev.net/topic/562982-slimdxxaudio2-playing-buffer-from-memory/