Commit e9e13b75 authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Rémi Denis-Courmont

Add UI for KAI

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent d48571e9
......@@ -290,6 +290,11 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
optionWidgets.append( DirectXControl );
CONFIG_GENERIC_NO_UI( "directx-audio-device-name", StringList,
DirectXLabel, DirectXDevice );
#elif defined( __OS2__ )
audioControl( kai );
optionWidgets.append( kaiControl );
CONFIG_GENERIC_NO_UI( "kai-audio-device", StringList, kaiLabel,
kaiDevice );
#else
if( module_exists( "alsa" ) )
{
......@@ -719,6 +724,8 @@ void SPrefsPanel::updateAudioOptions( int number)
->itemData( number ).toString();
#ifdef WIN32
optionWidgets[directxW]->setVisible( ( value == "aout_directx" ) );
#elif defined( __OS2__ )
optionWidgets[kaiW]->setVisible( ( value == "kai" ) );
#else
/* optionWidgets[ossW] can be NULL */
if( optionWidgets[ossW] )
......
......@@ -66,6 +66,8 @@ enum {
enum {
#ifdef WIN32
directxW,
#elif defined( __OS2__)
kaiW,
#else
alsaW,
ossW,
......
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