Commit 6ee8965b authored by Gildas Bazin's avatar Gildas Bazin

* added config_Get/PutFloatVariable to p_sysmbols. Thanks to Sigmund Augdal
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.
parent 737d7677
......@@ -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 )
......
......@@ -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; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment