[vlc-commits] Direct Aout: try to fix unresonspiveness of volume change

Jean-Baptiste Kempf git at videolan.org
Wed Jun 6 02:31:04 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jun  6 02:25:32 2012 +0200| [0baa0d815b0d00574111af6a0275ee62c316b589] | committer: Jean-Baptiste Kempf

Direct Aout: try to fix unresonspiveness of volume change

Ref #6858

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0baa0d815b0d00574111af6a0275ee62c316b589
---

 modules/audio_output/directx.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index 1c9b82d..017a074 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -824,7 +824,8 @@ static int CreateDSBuffer( audio_output_t *p_aout, int i_format,
     memset(&dsbdesc, 0, sizeof(DSBUFFERDESC));
     dsbdesc.dwSize = sizeof(DSBUFFERDESC);
     dsbdesc.dwFlags = DSBCAPS_GETCURRENTPOSITION2/* Better position accuracy */
-                    | DSBCAPS_GLOBALFOCUS;      /* Allows background playing */
+                    | DSBCAPS_GLOBALFOCUS       /* Allows background playing */
+                    | DSBCAPS_CTRLVOLUME;       /* Allows volume control */
 
     /* Only use the new WAVE_FORMAT_EXTENSIBLE format for multichannel audio */
     if( i_nb_channels <= 2 )



More information about the vlc-commits mailing list