maths api changes and random
[vg.git] / vg_audio.h
index 34bc9ee4bac5fdbb558a8012fc5385b6f1042620..120622cc658307bcb15239b88b08f9c8b733d584 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;
 
@@ -1264,6 +1262,7 @@ VG_STATIC void audio_debug_ui( m4x4f mtx_pv )
     * -----------------------------------------------------------------------
     */
 
+#if 0
    float budget = ((double)vg_audio.samples_last / 44100.0) * 1000.0;
    vg_profile_drawn( (struct vg_profile *[]){ &vg_prof_audio_decode,
                                               &vg_prof_audio_mix,
@@ -1406,6 +1405,7 @@ VG_STATIC void audio_debug_ui( m4x4f mtx_pv )
          }
       }
        }
+#endif
 
    audio_unlock();
 }