]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/auhal.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / audio_output / auhal.c
index 15f25878de0db9e9d2c11d0b1acf7b8021aebfb3..2af9776900ea1ad062c33958e7d0aa55bf9aea81 100644 (file)
@@ -77,7 +77,7 @@
     sfm.mChannelsPerFrame, sfm.mBitsPerChannel
 
 #define FRAMESIZE 2048
-#define BUFSIZE (FRAMESIZE * 8)
+#define BUFSIZE (FRAMESIZE * 8) * 8
 #define AOUT_VAR_SPDIF_FLAG 0xf00000
 
 /*
@@ -1041,7 +1041,7 @@ static void Probe( aout_instance_t * p_aout )
                 var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val, &text );
                 free( text.psz_string );
                 if( p_sys->i_default_dev == p_devices[i]
-                 && var_InheritInteger( p_aout, "spdif" ) )
+                 && var_InheritBool( p_aout, "spdif" ) )
                 {
                     /* We selected to prefer SPDIF output if available
                      * then this "dummy" entry should be selected */
@@ -1492,7 +1492,7 @@ static int AudioDeviceCallback( vlc_object_t *p_this, const char *psz_variable,
 {
     aout_instance_t *p_aout = (aout_instance_t *)p_this;
     var_Set( p_aout->p_libvlc, "macosx-audio-device", new_val );
-    msg_Dbg( p_aout, "Set Device: %#x", new_val.i_int );
+    msg_Dbg( p_aout, "Set Device: %#"PRIx64, new_val.i_int );
     return aout_ChannelsRestart( p_this, psz_variable, old_val, new_val, param );
 }