]> git.sesse.net Git - vlc/commitdiff
Adjust the DirectSound buffer size to support correctly 6 channels
authorDenis Charmet <typx@dinauz.org>
Thu, 1 Aug 2013 21:03:46 +0000 (23:03 +0200)
committerDenis Charmet <typx@dinauz.org>
Thu, 1 Aug 2013 21:03:46 +0000 (23:03 +0200)
The buffer size must be a multiple of the number of channels*sample_size or looping will break the channel layout.

Close #8483

modules/audio_output/directx.c

index bf47f85f13161a22b45b9d13575d45966b795851..2f47c4798b262f8cd42f055ce39bd7fb6a281484 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "windows_audio_common.h"
 
-#define DS_BUF_SIZE (4*1024*1024)
+#define DS_BUF_SIZE (6*1024*1024)
 
 /*****************************************************************************
  * aout_sys_t: directx audio output method descriptor