1<?xml version="1.0" encoding="utf-8"?> 2<merge xmlns:android="http://schemas.android.com/apk/res/android"> 3 4 <LinearLayout 5 android:layout_width="match_parent" 6 android:layout_height="wrap_content" 7 android:orientation="vertical"> 8 9 <TextView android:id="@+id/toggle_stream_config" 10 android:layout_width="match_parent" 11 android:layout_height="wrap_content" 12 android:background="#C0F0E0" 13 android:clickable="true" 14 android:text="@string/hint_hide_settings" /> 15 16 <LinearLayout 17 android:id="@+id/hideableView" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content" 20 android:orientation="vertical"> 21 22 <TableLayout 23 android:id="@+id/optionTable" 24 android:layout_width="wrap_content" 25 android:layout_height="wrap_content" 26 android:shrinkColumns="1" 27 > 28 29 <TableRow> 30 <TextView 31 android:layout_width="wrap_content" 32 android:layout_height="wrap_content" 33 android:text="API:" /> 34 <Spinner 35 android:id="@+id/spinnerNativeApi" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:entries="@array/output_modes" 39 android:prompt="@string/api_prompt" /> 40 <TextView 41 android:id="@+id/actualNativeApi" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:text="\?" /> 45 </TableRow> 46 47 <TableRow 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content"> 50 51 <TextView 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:text="Device: " /> 55 56 <com.mobileer.audio_device.AudioDeviceSpinner 57 android:id="@+id/devices_spinner" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content"/> 60 <TextView 61 android:id="@+id/actualDeviceId" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:text="\?" /> 65 66 </TableRow> 67 68 <TableRow> 69 70 <TextView 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:text="@string/sample_rate_prompt" /> 74 75 <Spinner 76 android:id="@+id/spinnerSampleRate" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:entries="@array/sample_rates" 80 android:prompt="@string/sample_rate_prompt" /> 81 82 <TextView 83 android:id="@+id/actualSampleRate" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:text="\?" /> 87 88 </TableRow> 89 90 <TableRow> 91 92 <TextView 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" 95 android:text="@string/channel_count_prompt" /> 96 97 <Spinner 98 android:id="@+id/spinnerChannelCount" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:entries="@array/channel_counts" 102 android:prompt="@string/channel_count_prompt" /> 103 104 <TextView 105 android:id="@+id/actualChannelCount" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:text="\?" /> 109 110 </TableRow> 111 112 <TableRow> 113 114 <TextView 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 android:text="@string/channel_mask_prompt" /> 118 119 <Spinner 120 android:id="@+id/spinnerChannelMask" 121 android:layout_width="wrap_content" 122 android:layout_height="wrap_content" 123 android:prompt="@string/channel_mask_prompt" /> 124 125 <TextView 126 android:id="@+id/actualChannelMask" 127 android:layout_width="wrap_content" 128 android:layout_height="wrap_content" 129 android:text="\?" /> 130 131 </TableRow> 132 133 <TableRow> 134 135 <TextView 136 android:layout_width="wrap_content" 137 android:layout_height="wrap_content" 138 android:text="@string/format_prompt"/> 139 140 <Spinner 141 android:id="@+id/spinnerFormat" 142 android:layout_width="wrap_content" 143 android:layout_height="wrap_content" 144 android:entries="@array/audio_formats" 145 android:prompt="@string/format_prompt" /> 146 147 <TextView 148 android:id="@+id/actualAudioFormat" 149 android:layout_width="wrap_content" 150 android:layout_height="wrap_content" 151 android:text="\?" /> 152 153 </TableRow> 154 155 <TableRow> 156 157 <TextView 158 android:layout_width="wrap_content" 159 android:layout_height="wrap_content" 160 android:text="Perf:" /> 161 162 <Spinner 163 android:id="@+id/spinnerPerformanceMode" 164 android:layout_width="wrap_content" 165 android:layout_height="wrap_content" 166 android:entries="@array/performance_modes" 167 android:prompt="@string/performance_prompt" /> 168 169 <TextView 170 android:id="@+id/actualPerformanceMode" 171 android:layout_width="wrap_content" 172 android:layout_height="wrap_content" 173 android:text="\?" /> 174 175 </TableRow> 176 177 <TableRow 178 android:id="@+id/rowInputPreset"> 179 180 <TextView 181 android:layout_width="wrap_content" 182 android:layout_height="wrap_content" 183 android:text="@string/input_preset_prompt"/> 184 185 <Spinner 186 android:id="@+id/spinnerInputPreset" 187 android:layout_width="wrap_content" 188 android:layout_height="wrap_content" 189 android:entries="@array/audio_input_presets" /> 190 191 <TextView 192 android:id="@+id/actualInputPreset" 193 android:layout_width="wrap_content" 194 android:layout_height="wrap_content" 195 android:text="\?" /> 196 197 </TableRow> 198 199 <TableRow 200 android:id="@+id/rowUsage"> 201 202 <TextView 203 android:layout_width="wrap_content" 204 android:layout_height="wrap_content" 205 android:text="@string/usage_prompt"/> 206 207 <Spinner 208 android:id="@+id/spinnerUsage" 209 android:layout_width="wrap_content" 210 android:layout_height="wrap_content" 211 android:entries="@array/audio_usages" /> 212 213 <TextView 214 android:id="@+id/actualUsage" 215 android:layout_width="wrap_content" 216 android:layout_height="wrap_content" 217 android:text="\?" /> 218 219 </TableRow> 220 221 <TableRow 222 android:id="@+id/rowContentType"> 223 224 <TextView 225 android:layout_width="wrap_content" 226 android:layout_height="wrap_content" 227 android:text="Content Type:"/> 228 229 <Spinner 230 android:id="@+id/spinnerContentType" 231 android:layout_width="wrap_content" 232 android:layout_height="wrap_content" 233 android:entries="@array/audio_content_types" /> 234 235 <TextView 236 android:id="@+id/actualContentType" 237 android:layout_width="wrap_content" 238 android:layout_height="wrap_content" 239 android:text="\?" /> 240 241 </TableRow> 242 243 <TableRow> 244 245 <TextView 246 android:layout_width="wrap_content" 247 android:layout_height="wrap_content" 248 android:text="@string/capacity_prompt" /> 249 250 <Spinner 251 android:id="@+id/spinnerCapacity" 252 android:layout_width="wrap_content" 253 android:layout_height="wrap_content" 254 android:entries="@array/capacity_values" /> 255 256 <TextView 257 android:id="@+id/actualCapacity" 258 android:layout_width="wrap_content" 259 android:layout_height="wrap_content" 260 android:text="\?" /> 261 262 </TableRow> 263 264 <TableRow 265 android:id="@+id/rowSpatializationBehavior"> 266 267 <TextView 268 android:layout_width="wrap_content" 269 android:layout_height="wrap_content" 270 android:text="@string/spatialization_behavior_prompt"/> 271 272 <Spinner 273 android:id="@+id/spinnerSpatializationBehavior" 274 android:layout_width="wrap_content" 275 android:layout_height="wrap_content" 276 android:entries="@array/spatialization_behaviors" /> 277 278 <TextView 279 android:id="@+id/actualSpatializationBehavior" 280 android:layout_width="wrap_content" 281 android:layout_height="wrap_content" 282 android:text="\?" /> 283 284 </TableRow> 285 286 </TableLayout> 287 288 <LinearLayout 289 android:layout_width="match_parent" 290 android:layout_height="wrap_content" 291 android:orientation="horizontal"> 292 293 <CheckBox 294 android:id="@+id/requestedMMapEnable" 295 android:layout_width="wrap_content" 296 android:layout_height="wrap_content" 297 android:layout_marginRight="8sp" 298 android:text="MMAP" /> 299 300 <TextView 301 android:id="@+id/actualMMap" 302 android:layout_width="wrap_content" 303 android:layout_height="wrap_content" 304 android:layout_marginRight="12sp" 305 android:text="\?" /> 306 307 <CheckBox 308 android:id="@+id/requestedExclusiveMode" 309 android:layout_width="wrap_content" 310 android:layout_height="wrap_content" 311 android:layout_marginRight="8sp" 312 android:text="Exclusive" /> 313 314 <TextView 315 android:id="@+id/actualExclusiveMode" 316 android:layout_width="wrap_content" 317 android:layout_height="wrap_content" 318 android:layout_marginRight="15sp" 319 android:text="\?" /> 320 321 </LinearLayout> 322 323 <LinearLayout 324 android:layout_width="match_parent" 325 android:layout_height="wrap_content" 326 android:orientation="horizontal"> 327 328 <CheckBox 329 android:id="@+id/requestSessionId" 330 android:layout_width="wrap_content" 331 android:layout_height="wrap_content" 332 android:layout_marginRight="10sp" 333 android:text="Session Id" /> 334 335 <TextView 336 android:id="@+id/sessionId" 337 android:layout_width="wrap_content" 338 android:layout_height="wrap_content" 339 android:layout_marginRight="12sp" 340 android:text="\?" /> 341 342 <CheckBox 343 android:id="@+id/requestAudioEffect" 344 android:layout_width="wrap_content" 345 android:layout_height="wrap_content" 346 android:layout_marginRight="10sp" 347 android:text="Effect" /> 348 349 </LinearLayout> 350 351 <LinearLayout 352 android:id="@+id/inputEffects" 353 android:layout_width="match_parent" 354 android:layout_height="wrap_content" 355 android:orientation="horizontal" 356 android:visibility="gone"> 357 358 <CheckBox 359 android:id="@+id/checkBoxAutomaticGainControl" 360 android:layout_width="wrap_content" 361 android:layout_height="wrap_content" 362 android:layout_marginRight="8sp" 363 android:text="AGC" /> 364 365 <CheckBox 366 android:id="@+id/checkBoxAcousticEchoCanceler" 367 android:layout_width="wrap_content" 368 android:layout_height="wrap_content" 369 android:layout_marginRight="8sp" 370 android:text="AEC" /> 371 372 <CheckBox 373 android:id="@+id/checkBoxNoiseSuppressor" 374 android:layout_width="wrap_content" 375 android:layout_height="wrap_content" 376 android:layout_marginRight="8sp" 377 android:text="NoNoise" /> 378 379 </LinearLayout> 380 381 <LinearLayout 382 android:id="@+id/outputEffects" 383 android:orientation="vertical" 384 android:layout_width="match_parent" 385 android:layout_height="wrap_content" 386 android:visibility="gone"> 387 388 <TextView 389 android:id="@+id/textBassBoost" 390 android:layout_width="wrap_content" 391 android:layout_height="wrap_content" 392 android:text="Bass Boost" /> 393 394 <SeekBar 395 android:id="@+id/seekBarBassBoost" 396 android:layout_width="match_parent" 397 android:layout_height="wrap_content" 398 android:max="1000" 399 android:progress="0" /> 400 401 <TextView 402 android:id="@+id/textLoudnessEnhancer" 403 android:layout_width="wrap_content" 404 android:layout_height="wrap_content" 405 android:text="Loudness Enhancer" /> 406 407 <SeekBar 408 android:id="@+id/seekBarLoudnessEnhancer" 409 android:layout_width="match_parent" 410 android:layout_height="wrap_content" 411 android:max="5000" 412 android:progress="0" /> 413 </LinearLayout> 414 415 <LinearLayout 416 android:layout_width="match_parent" 417 android:layout_height="wrap_content" 418 android:orientation="horizontal"> 419 420 <TextView 421 android:layout_width="wrap_content" 422 android:layout_height="wrap_content" 423 android:text="Convert:" /> 424 <CheckBox 425 android:id="@+id/checkChannelConversion" 426 android:layout_width="wrap_content" 427 android:layout_height="wrap_content" 428 android:text="Chan, " /> 429 <CheckBox 430 android:id="@+id/checkFormatConversion" 431 android:layout_width="wrap_content" 432 android:layout_height="wrap_content" 433 android:text="Format, " /> 434 435 <TextView 436 android:layout_width="wrap_content" 437 android:layout_height="wrap_content" 438 android:text="@string/src_prompt" /> 439 <Spinner 440 android:id="@+id/spinnerSRCQuality" 441 android:layout_width="wrap_content" 442 android:layout_height="wrap_content" 443 android:entries="@array/conversion_qualities" 444 android:prompt="@string/src_prompt" /> 445 446 </LinearLayout> 447 448 </LinearLayout> 449 450 451 <TextView 452 android:id="@+id/streamInfo" 453 android:layout_width="wrap_content" 454 android:layout_height="wrap_content" 455 android:lines="2" 456 android:text="info:" /> 457 458 <TextView 459 android:id="@+id/statusView" 460 android:layout_width="match_parent" 461 android:layout_height="wrap_content" 462 android:lines="5" 463 android:text="@string/init_status" /> 464 </LinearLayout> 465 466</merge> 467