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