summaryrefslogtreecommitdiff
blob: 926788c6f20cf372e0fef4e2fe2b9c95df2acf66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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 );
     }