]> git.sesse.net Git - vlc/commitdiff
DirectSound: Options change
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 29 Dec 2009 13:39:18 +0000 (14:39 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 29 Dec 2009 15:07:10 +0000 (16:07 +0100)
Add an alias as "directsound"
Add the deprecated option
Add the change_restart_needed

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_output/directx.c

index 3b3c0ac8f6f982977402a530973bfd7df31c4695..7516cb6657544d3a3c88ee7090d77e55d5f96d02 100644 (file)
@@ -131,10 +131,14 @@ vlc_module_begin ()
     set_category( CAT_AUDIO )
     set_subcategory( SUBCAT_AUDIO_AOUT )
     add_shortcut( "directx" )
+    add_shortcut( "directsound" )
+
     add_string( "directx-audio-device-name", "default", NULL,
              DEVICE_TEXT, DEVICE_LONGTEXT, false )
-    change_string_list( ppsz_adev, ppsz_adev_text, ReloadDirectXDevices )
-    change_action_add( ReloadDirectXDevices, N_("Refresh list") )
+        add_deprecated_alias( "directx-audio-device" ) /* Since 1.1.0 */
+        change_string_list( ppsz_adev, ppsz_adev_text, ReloadDirectXDevices )
+        change_action_add( ReloadDirectXDevices, N_("Refresh list") )
+        change_need_restart ()
     add_bool( "directx-audio-float32", false, NULL, FLOAT_TEXT,
               FLOAT_LONGTEXT, true )
     add_string( "directx-audio-speaker", "Windows default", NULL,