oops
authorhgn <hgodden00@gmail.com>
Thu, 6 Nov 2025 03:07:03 +0000 (03:07 +0000)
committerhgn <hgodden00@gmail.com>
Thu, 6 Nov 2025 03:07:03 +0000 (03:07 +0000)
source/engine/model_entity.h
source/engine/vg_audio.c

index a044aa842da62ad652f238fb754d287027ecf6c0..e2c07cdfa8f1e939baccdca177cf359fac0dcc04 100644 (file)
@@ -44,7 +44,7 @@ enum entity_alias
    k_ent_waterfall   = 201,
    k_ent_rb2         = 202,
    k_ent_heatpipe    = 203,
-
+   k_ent_waterlevel  = 204,
    k_ent_viewstone   = 205,
    k_ent_max
 };
index 0a3278837d2d8a4d9e6c683d8af4b6050dc8725e..9919e01af566b5c216afcc3c0a3c2b6a59d1fee9 100644 (file)
@@ -1144,7 +1144,7 @@ static void _audio_mixer( ma_device *device, void *stream, const void *input__,
          {
             /* Setup vorbis decoder */
             u8 *buf = (u8*)_audio.decoding_buffer,
-               *loc = &buf[AUDIO_DECODE_SIZE*id];
+               *loc = &buf[AUDIO_DECODE_SIZE*(id-1)];
 
             stb_vorbis_alloc alloc = 
             {
@@ -1385,7 +1385,7 @@ void _audio_gui(void)
 
       if( channel->stage == k_channel_stage_none )
       {
-         _graphics_fill_rect( row, (union colour){{ 0x33,0x33,0x33,0x50 }} );
+         //_graphics_fill_rect( row, (union colour){{ 0x33,0x33,0x33,0x50 }} );
       }
       else if( channel->stage == k_channel_stage_allocation )
       {