]> git.sesse.net Git - vlc/commitdiff
* added config_Get/PutFloatVariable to p_sysmbols. Thanks to Sigmund Augdal
authorGildas Bazin <gbazin@videolan.org>
Tue, 30 Apr 2002 12:56:11 +0000 (12:56 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 30 Apr 2002 12:56:11 +0000 (12:56 +0000)
for pointing this bug out.
* on Win32 the aout_pcm thread is given a high priority. This helps avoiding
lots of audio underruns, especially when moving around the video window.

src/audio_output/aout_pcm.c
src/misc/modules_plugin.h

index 3502a9b89cdf1711db89fca794827b184676ada0..8773b6cfae798e74906fe97a2b949c13ff466cbd 100644 (file)
@@ -2,7 +2,7 @@
  * aout_pcm.c: PCM audio output functions
  *****************************************************************************
  * Copyright (C) 1999-2002 VideoLAN
- * $Id: aout_pcm.c,v 1.3 2002/03/04 22:18:25 gbazin Exp $
+ * $Id: aout_pcm.c,v 1.4 2002/04/30 12:56:11 gbazin Exp $
  *
  * Authors: Michel Kaempf <maxx@via.ecp.fr>
  *          Cyril Deguet <asmax@via.ecp.fr>
@@ -53,6 +53,12 @@ void aout_PCMThread( aout_thread_t * p_aout )
     int i_fifo;
     int i_buffer, i_buffer_limit, i_units = 0;
 
+#if defined(WIN32)
+    if( !SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL) )
+        intf_WarnMsg( 2, "aout warning: couldn't change priority of"
+                      "aout_PCMThread()" );
+#endif
+
     /* As the s32_buffer was created with calloc(), we don't have to set this
      * memory to zero and we can immediately jump into the thread's loop */
     while ( ! p_aout->b_die )
index 036b5e35df038c882589bbc8d6de420d4c836f00..570baeab986bbcce2e653e4ec3325ec79a5ce1f1 100644 (file)
@@ -2,7 +2,7 @@
  * modules_plugin.h : Plugin management functions used by the core application.
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: modules_plugin.h,v 1.22 2002/04/27 22:11:22 gbazin Exp $
+ * $Id: modules_plugin.h,v 1.23 2002/04/30 12:56:11 gbazin Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -189,8 +189,10 @@ module_error( char *psz_buffer )
     (p_symbols)->p_vout_bank = p_vout_bank; \
     (p_symbols)->config_GetIntVariable = config_GetIntVariable; \
     (p_symbols)->config_GetPszVariable = config_GetPszVariable; \
+    (p_symbols)->config_GetFloatVariable = config_GetFloatVariable; \
     (p_symbols)->config_PutIntVariable = config_PutIntVariable; \
     (p_symbols)->config_PutPszVariable = config_PutPszVariable; \
+    (p_symbols)->config_PutFloatVariable = config_PutFloatVariable; \
     (p_symbols)->config_LoadConfigFile = config_LoadConfigFile; \
     (p_symbols)->config_SaveConfigFile = config_SaveConfigFile; \
     (p_symbols)->config_Duplicate = config_Duplicate; \