way better controller handling
[vg.git] / vg_audio.h
index 34bc9ee4bac5fdbb558a8012fc5385b6f1042620..0e76efd3e4959b8808807a4ee69daa53b97f0046 100644 (file)
@@ -303,8 +303,6 @@ VG_STATIC void vg_audio_init(void)
          "  Channels: 2\n"
          "  Format: s16 or f32\n" );
    }
-
-   vg_success( "Ready\n" );
 }
 
 VG_STATIC void vg_audio_free(void)
@@ -336,7 +334,7 @@ static void audio_channel_init( audio_channel *ch, audio_clip *clip, u32 flags )
    if( (ch->source->flags & AUDIO_FLAG_FORMAT) == k_audio_format_bird )
       strcpy( ch->name, "[array]" );
    else
-      strncpy( ch->name, clip->path, 31 );
+      vg_strncpy( clip->path, ch->name, 32, k_strncpy_always_add_null );
 
    ch->allocated = 1;