@@ -36,7 +36,7 @@ protected void onCreate(Bundle savedInstanceState) {
3636 }));
3737
3838 ArrayAdapter <String > adapter = new ArrayAdapter <>(this , android .R .layout .simple_spinner_item
39- , CoreSettings .conv_format_display );
39+ , ConvertSettings .conv_format_display );
4040 adapter .setDropDownViewResource (android .R .layout .simple_spinner_dropdown_item );
4141 b .spOutExt .setAdapter (adapter );
4242
@@ -64,7 +64,7 @@ public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
6464 b .bUntilSetCur .setOnClickListener ((v ) -> pos_set_cur (false ));
6565
6666 adapter = new ArrayAdapter <>(this , android .R .layout .simple_spinner_item
67- , CoreSettings .conv_sample_formats_str );
67+ , ConvertSettings .conv_sample_formats_str );
6868 adapter .setDropDownViewResource (android .R .layout .simple_spinner_dropdown_item );
6969 b .spSampleFormat .setAdapter (adapter );
7070
@@ -137,8 +137,8 @@ private String time_str(long sec) {
137137 }
138138
139139 private int conv_format_index (String name ) {
140- for (int i = 0 ; i < CoreSettings .conv_formats .length ; i ++) {
141- if (CoreSettings .conv_formats [i ].equals (name ))
140+ for (int i = 0 ; i < ConvertSettings .conv_formats .length ; i ++) {
141+ if (ConvertSettings .conv_formats [i ].equals (name ))
142142 return i ;
143143 }
144144 return -1 ;
@@ -171,22 +171,22 @@ private int aac_q_read(String s) {
171171 private static int opus_q_progress (int q ) { return (q - 16 ) / 16 ; }
172172
173173 private void load () {
174- b .eOutDir .setText (core .setts .conv_out_dir );
175- b .eOutName .setText (core .setts .conv_out_name );
176- b .spOutExt .setSelection (conv_format_index (core .setts .conv_format ));
174+ b .eOutDir .setText (core .convert .conv_out_dir );
175+ b .eOutName .setText (core .convert .conv_out_name );
176+ b .spOutExt .setSelection (conv_format_index (core .convert .conv_format ));
177177
178- b .sbAacQ .setProgress (aac_q_progress (core .setts .conv_aac_quality ));
179- b .eAacQ .setText (core .int_to_str (core .setts .conv_aac_quality ));
178+ b .sbAacQ .setProgress (aac_q_progress (core .convert .conv_aac_quality ));
179+ b .eAacQ .setText (core .int_to_str (core .convert .conv_aac_quality ));
180180
181- b .sbOpusQ .setProgress (opus_q_progress (core .setts .conv_opus_quality ));
182- b .eOpusQ .setText (core .int_to_str (core .setts .conv_opus_quality ));
181+ b .sbOpusQ .setProgress (opus_q_progress (core .convert .conv_opus_quality ));
182+ b .eOpusQ .setText (core .int_to_str (core .convert .conv_opus_quality ));
183183
184- b .eMp3Q .setText (core .int_to_str (core .setts .conv_mp3_quality ));
184+ b .eMp3Q .setText (core .int_to_str (core .convert .conv_mp3_quality ));
185185
186- b .swCopy .setChecked (core .setts .conv_copy );
186+ b .swCopy .setChecked (core .convert .conv_copy );
187187
188- b .swPreserveDate .setChecked (core .setts .conv_file_date_preserve );
189- b .swPlAdd .setChecked (core .setts .conv_new_add_list );
188+ b .swPreserveDate .setChecked (core .convert .conv_file_date_preserve );
189+ b .swPlAdd .setChecked (core .convert .conv_new_add_list );
190190 }
191191
192192 private void save () {
@@ -195,38 +195,38 @@ private void save() {
195195 s = "@filepath" ;
196196 b .eOutDir .setText (s );
197197 }
198- core .setts .conv_out_dir = s ;
198+ core .convert .conv_out_dir = s ;
199199
200200 s = b .eOutName .getText ().toString ();
201201 if (s .isEmpty ()) {
202202 s = "@filename" ;
203203 b .eOutName .setText (s );
204204 }
205- core .setts .conv_out_name = s ;
205+ core .convert .conv_out_name = s ;
206206
207- core .setts .conv_format = CoreSettings .conv_formats [b .spOutExt .getSelectedItemPosition ()];
208- core .setts .conv_copy = b .swCopy .isChecked ();
207+ core .convert .conv_format = ConvertSettings .conv_formats [b .spOutExt .getSelectedItemPosition ()];
208+ core .convert .conv_copy = b .swCopy .isChecked ();
209209
210210 int v = aac_q_read (b .eAacQ .getText ().toString ());
211211 if (v != 0 )
212- core .setts .conv_aac_quality = v ;
212+ core .convert .conv_aac_quality = v ;
213213
214214 v = core .str_to_uint (b .eOpusQ .getText ().toString (), 0 );
215215 if (v != 0 )
216- core .setts .conv_opus_quality = v ;
216+ core .convert .conv_opus_quality = v ;
217217
218218 v = core .str_to_uint (b .eMp3Q .getText ().toString (), -1 );
219219 if (v >= 0 )
220- core .setts .conv_mp3_quality = v ;
220+ core .convert .conv_mp3_quality = v ;
221221
222- core .setts .conv_file_date_preserve = b .swPreserveDate .isChecked ();
223- core .setts .conv_new_add_list = b .swPlAdd .isChecked ();
222+ core .convert .conv_file_date_preserve = b .swPreserveDate .isChecked ();
223+ core .convert .conv_new_add_list = b .swPlAdd .isChecked ();
224224 }
225225
226226 @ Override
227227 protected void onDestroy () {
228228 save ();
229- core .setts . normalize_convert ();
229+ core .convert . normalize ();
230230 core .unref ();
231231 super .onDestroy ();
232232 }
@@ -254,23 +254,23 @@ private void convert() {
254254 p .from_msec = b .eFrom .getText ().toString ();
255255 p .to_msec = b .eUntil .getText ().toString ();
256256 p .tags = b .eTags .getText ().toString ();
257- p .sample_format = CoreSettings .conv_sample_formats [b .spSampleFormat .getSelectedItemPosition ()];
257+ p .sample_format = ConvertSettings .conv_sample_formats [b .spSampleFormat .getSelectedItemPosition ()];
258258 p .sample_rate = core .str_to_uint (b .eSampleRate .getText ().toString (), 0 );
259- p .aac_quality = core .setts .conv_aac_quality ;
260- p .opus_quality = core .setts .conv_opus_quality ;
261- p .mp3_quality = core .setts .conv_mp3_quality ;
259+ p .aac_quality = core .convert .conv_aac_quality ;
260+ p .opus_quality = core .convert .conv_opus_quality ;
261+ p .mp3_quality = core .convert .conv_mp3_quality ;
262262
263263 int iformat = b .spOutExt .getSelectedItemPosition ();
264- p .format = CoreSettings .conv_encoders [iformat ];
264+ p .format = ConvertSettings .conv_encoders [iformat ];
265265
266- if (core .setts .conv_copy )
266+ if (core .convert .conv_copy )
267267 p .flags |= Phiola .ConvertParams .COF_COPY ;
268- if (core .setts .conv_file_date_preserve )
268+ if (core .convert .conv_file_date_preserve )
269269 p .flags |= Phiola .ConvertParams .COF_DATE_PRESERVE ;
270270 if (b .swOutOverwrite .isChecked () && b .swOutOverwriteConfirm .isChecked ())
271271 p .flags |= Phiola .ConvertParams .COF_OVERWRITE ;
272272
273- if (core .setts .conv_new_add_list ) {
273+ if (core .convert .conv_new_add_list ) {
274274 p .q_add_remove = getIntent ().getLongExtra ("current_list_id" , 0 );
275275 p .flags |= Phiola .ConvertParams .COF_ADD ;
276276 }
@@ -282,7 +282,7 @@ private void convert() {
282282 }
283283
284284 p .out_name = String .format ("%s/%s.%s"
285- , core .setts .conv_out_dir , core .setts .conv_out_name , CoreSettings .conv_extensions [iformat ]);
285+ , core .convert .conv_out_dir , core .convert .conv_out_name , ConvertSettings .conv_extensions [iformat ]);
286286
287287 String r = core .queue ().convert_begin (p );
288288 if (r != null ) {
0 commit comments