{"id":880,"date":"2011-06-28T10:56:48","date_gmt":"2011-06-28T10:56:48","guid":{"rendered":"http:\/\/www.linkovitch.me.uk\/blog\/?p=880"},"modified":"2014-10-20T13:04:03","modified_gmt":"2014-10-20T13:04:03","slug":"still-going","status":"publish","type":"post","link":"https:\/\/www.linkovitch.me.uk\/blog\/2011\/06\/still-going\/","title":{"rendered":"Still going"},"content":{"rendered":"<p>Been a little bit lax with the updates, but I am going to put that down to there not being much to write.\u00c2\u00a0 Although progress and changes have been made to my code.<\/p>\n<p>I have moved the mixing of 4 channels of 8bit audio over to the DSP, as well as the output buffer into it&#8217;s cache RAM.\u00c2\u00a0 I believe I know what the distortion is now, looks like the output is missing samples for short periods, I suspect this is either the CPUs fighting over RAM or catching each other up.\u00c2\u00a0 The actual render code is working as intended, I took some dumps from RAM of it&#8217;s output, no distortion before playback, distortion added after playback.<\/p>\n<p>Moving to the RISC did highlight a bug that had me scratching my head.\u00c2\u00a0 I had erroneously operated the interrupt latches within the DSP, and hence not cleared the correct one, unbeknown to me this was preventing the DSPs main loop from running, a main loop that accessed main RAM to count a fair amount.. so when I fixed the latches, the DSP went on a mad bender of RAM access, almost halting the 68K from running at all.\u00c2\u00a0 Once fixed all ran as I had hoped.\u00c2\u00a0 Alas the distortion persisted, but the new changes have reduced the amount of time the 68K spends on the job, probably now down to around 5-10% CPU utilization on the 68K, amazing what shaving a few instructions from within a loop will do \ud83d\ude42<\/p>\n<p>Once I have conquered the distortion issue I will focus more on getting four channels working and playing through a whole module, rather than looping a single channel.\u00c2\u00a0 Tonight is the Computer club at <a href=\"http:\/\/www.thelass.co.uk\">The Lass<\/a>, so no code tonight, but hopefully the day off tomorrow will have plenty of coding time in it \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Been a little bit lax with the updates, but I am going to put that down to there not being much to write.\u00c2\u00a0 Although progress and changes have been made to my code. I have moved the mixing of 4 channels of 8bit audio over to the DSP, as well as the output buffer into &hellip; <a href=\"https:\/\/www.linkovitch.me.uk\/blog\/2011\/06\/still-going\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Still going<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3,22],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts\/880"}],"collection":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=880"}],"version-history":[{"count":4,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts\/880\/revisions"}],"predecessor-version":[{"id":1557,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts\/880\/revisions\/1557"}],"wp:attachment":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}