{"id":46,"date":"2019-07-27T09:55:25","date_gmt":"2019-07-27T09:55:25","guid":{"rendered":"https:\/\/blogs.scummvm.org\/nipungarg\/?p=46"},"modified":"2022-05-22T09:55:43","modified_gmt":"2022-05-22T09:55:43","slug":"gsoc-update-week-9","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/nipungarg\/2019\/07\/27\/gsoc-update-week-9\/","title":{"rendered":"GSOC Update: Week 9"},"content":{"rendered":"<div class=\"entry\">\n<p>This is quite soon after the last update, but I feel this is an appropriate moment for an update. I have added the various Sound functions, including Voice, Music and Sound Effects.<\/p>\n<p>I have also played through a few more levels, and fixed a Lua bugs, so the game won\u2019t crash until MAP20 at the very least.<\/p>\n<h3 id=\"current-problems\">Current Problems<\/h3>\n<p>While Voice and Music are working fine, the Sound Effects code currently has a bug where the data for each sound effect gets corrupted after playing through it once. Running it through the debugger, it seems that the AudioStream holding the Sound Effect data either automatically gets deallocated or corrupted, since the system can read it no longer. I have spent quite a few hours trying to deduce where it is getting deallocated, and I can\u2019t seem to find it.<\/p>\n<p>One of the few remaining portions left is <code class=\"language-plaintext highlighter-rouge\">syncSoundSettings()<\/code>. It is the default method via which ScummVM saves the Sound configuration for the game. I haven\u2019t looked into it yet, which would be my next goal.<\/p>\n<p>I\u2019m not completely sure whether or not there is a problem with MAP19, but I can\u2019t seem to beat it without cheating through the debug interface.<\/p>\n<h3 id=\"accomplishments\">Accomplishments<\/h3>\n<ol>\n<li>Added Voice, Music and Sound Effects code<\/li>\n<li>Fixed crash with Deliveries with no GFX<\/li>\n<li>Added additional output to the Debug Interface<\/li>\n<li>Removed unused code<\/li>\n<\/ol>\n<p>Thanks to Eugene(sev) and Arnaud(Strangerke) for help in cleaning up the codebase, testing support for demo versions of the game and pointing out potential mistranslations in the codebase.<\/p>\n<h3 id=\"objectives\">Objectives<\/h3>\n<ol>\n<li>Fix the AudioStream bug<\/li>\n<li>Implement <code class=\"language-plaintext highlighter-rouge\">syncSoundSettings()<\/code><\/li>\n<li>Start adding support for different MPC files<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is quite soon after the last update, but I feel this is an appropriate moment for an update. I have added the various Sound functions, including Voice, Music and Sound Effects. I have also played through a few more levels, and fixed a Lua bugs, so the game won\u2019t crash until MAP20 at the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/nipungarg\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/nipungarg\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/nipungarg\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/nipungarg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/nipungarg\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":2,"href":"https:\/\/blogs.scummvm.org\/nipungarg\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":48,"href":"https:\/\/blogs.scummvm.org\/nipungarg\/wp-json\/wp\/v2\/posts\/46\/revisions\/48"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/nipungarg\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/nipungarg\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/nipungarg\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}