diff --git a/Assets/dll/stella.wbx.zst b/Assets/dll/stella.wbx.zst index a8c8f65ecbc..42976d87cd9 100644 Binary files a/Assets/dll/stella.wbx.zst and b/Assets/dll/stella.wbx.zst differ diff --git a/waterbox/stella/BizhawkInterface.cxx b/waterbox/stella/BizhawkInterface.cxx index a13babef441..eaa7606e48d 100644 --- a/waterbox/stella/BizhawkInterface.cxx +++ b/waterbox/stella/BizhawkInterface.cxx @@ -13,7 +13,7 @@ #include "M6532.hxx" #include "TIA.hxx" -uint16_t soundbuffer[4096]; +uint16_t* soundbuffer; int nsamples; struct InitSettings @@ -201,6 +201,9 @@ ECL_EXPORT int stella_init( { fprintf(stderr, "Initializing Stella core...\n"); + // Allocating sound buffer + soundbuffer = (uint16_t*) alloc_invisible(4096); + Settings::Options opts; _a2600 = MediaFactory::createOSystem(); if(!_a2600->initialize(opts)) { fprintf(stderr, "ERROR: Couldn't create A2600 System\n"); return 0; } diff --git a/waterbox/stella/BizhawkInterface.hxx b/waterbox/stella/BizhawkInterface.hxx index 446bad30135..03d40022558 100644 --- a/waterbox/stella/BizhawkInterface.hxx +++ b/waterbox/stella/BizhawkInterface.hxx @@ -4,5 +4,5 @@ #include #include -extern uint16_t soundbuffer[4096]; +extern uint16_t* soundbuffer; extern int nsamples; \ No newline at end of file