58 lines
2.8 KiB
Diff
58 lines
2.8 KiB
Diff
Index: miniAudicle-0.1.3.8/wxw/mAPreferencesWindow.cpp
|
|
===================================================================
|
|
--- miniAudicle-0.1.3.8.orig/wxw/mAPreferencesWindow.cpp
|
|
+++ miniAudicle-0.1.3.8/wxw/mAPreferencesWindow.cpp
|
|
@@ -828,7 +828,7 @@ void mAPreferencesWindow::LoadGUIToMiniA
|
|
selected_item = audio_output->GetSelection();
|
|
if( selected_item != wxNOT_FOUND )
|
|
{
|
|
- int dac = ( int ) audio_output->GetClientData( selected_item );
|
|
+ int dac = ( intptr_t ) audio_output->GetClientData( selected_item );
|
|
config->Write( mAPreferencesAudioOutput, dac );
|
|
ma->set_dac( dac );
|
|
}
|
|
@@ -837,7 +837,7 @@ void mAPreferencesWindow::LoadGUIToMiniA
|
|
selected_item = audio_input->GetSelection();
|
|
if( selected_item != wxNOT_FOUND )
|
|
{
|
|
- int adc = ( int ) audio_input->GetClientData( selected_item );
|
|
+ int adc = ( intptr_t ) audio_input->GetClientData( selected_item );
|
|
config->Write( mAPreferencesAudioInput, adc );
|
|
ma->set_adc( adc );
|
|
}
|
|
@@ -846,7 +846,7 @@ void mAPreferencesWindow::LoadGUIToMiniA
|
|
selected_item = output_channels->GetSelection();
|
|
if( selected_item != wxNOT_FOUND )
|
|
{
|
|
- int num_outputs = ( int ) output_channels->GetClientData( selected_item );
|
|
+ int num_outputs = ( intptr_t ) output_channels->GetClientData( selected_item );
|
|
config->Write( mAPreferencesOutputChannels, num_outputs );
|
|
ma->set_num_outputs( num_outputs );
|
|
}
|
|
@@ -855,7 +855,7 @@ void mAPreferencesWindow::LoadGUIToMiniA
|
|
selected_item = input_channels->GetSelection();
|
|
if( selected_item != wxNOT_FOUND )
|
|
{
|
|
- int num_inputs = ( int ) input_channels->GetClientData( selected_item );
|
|
+ int num_inputs = ( intptr_t ) input_channels->GetClientData( selected_item );
|
|
config->Write( mAPreferencesInputChannels, num_inputs );
|
|
ma->set_num_inputs( num_inputs );
|
|
}
|
|
@@ -864,7 +864,7 @@ void mAPreferencesWindow::LoadGUIToMiniA
|
|
selected_item = sample_rate->GetSelection();
|
|
if( selected_item != wxNOT_FOUND )
|
|
{
|
|
- int _sample_rate = ( int ) sample_rate->GetClientData( selected_item );
|
|
+ int _sample_rate = ( intptr_t ) sample_rate->GetClientData( selected_item );
|
|
config->Write( mAPreferencesSampleRate, _sample_rate );
|
|
ma->set_sample_rate( _sample_rate );
|
|
}
|
|
@@ -873,7 +873,7 @@ void mAPreferencesWindow::LoadGUIToMiniA
|
|
selected_item = buffer_size->GetSelection();
|
|
if( selected_item != wxNOT_FOUND )
|
|
{
|
|
- int _buffer_size = ( int ) buffer_size->GetClientData( selected_item );
|
|
+ int _buffer_size = ( intptr_t ) buffer_size->GetClientData( selected_item );
|
|
config->Write( mAPreferencesBufferSize, _buffer_size );
|
|
ma->set_buffer_size( _buffer_size );
|
|
}
|