{"id":2999,"date":"2004-10-15T09:08:00","date_gmt":"2004-10-14T23:08:00","guid":{"rendered":"http:\/\/new.radio-active.net.au\/web3\/managed-directx-programming\/"},"modified":"2014-10-10T13:13:00","modified_gmt":"2014-10-10T02:13:00","slug":"managed-directx-programming","status":"publish","type":"post","link":"http:\/\/www.radio-active.net.au\/web3\/2999","title":{"rendered":"Managed DirectX Programming"},"content":{"rendered":"<p>I am starting to get up to speed with what I have to do to get sound sampled. The only problem is that now I am getting an error message &#8211; &#8220;Exception Details: System.InvalidOperationException: The operation is not valid due to the current state of the object.&#8221;<\/p>\n<p>I have not yet been able to work out what is happening. The code at the moment is<\/p>\n<p>    Private Sub WaitThread()<br \/>\n<br \/>        Dim capturePos As Integer<br \/>\n<br \/>        Dim readPos As Integer<br \/>\n<br \/>        Dim buf(Notifysize) As Int16<\/p>\n<p>        While threadon = True<br \/>\n<br \/>            NotificationEvent.WaitOne(Timeout.Infinite, True)<\/p>\n<p>            capturebuffer.GetCurrentPosition(capturePos, readPos)<br \/>\n<br \/>            buf = capturebuffer.Read(readPos, buf.GetType, LockFlag.None, Notifysize)<br \/>\n<br \/>            Debug.WriteLine(Now)<br \/>\n<br \/>        End While<\/p>\n<p>    End Sub<\/p>\n<p>Not all I need to do is find out why it is not working.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am starting to get up to speed with what I have to do to get sound sampled. The only problem is that now I am getting an error message &#8211; &#8220;Exception Details: System.InvalidOperationException: The operation is not valid due &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"http:\/\/www.radio-active.net.au\/web3\/2999\"> <span class=\"screen-reader-text\">Managed DirectX Programming<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5cfmK-Mn","_links":{"self":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts\/2999"}],"collection":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/comments?post=2999"}],"version-history":[{"count":0,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts\/2999\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/media?parent=2999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/categories?post=2999"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/tags?post=2999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}