This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AudioService { | |
private fun startAudioDevicesWatch(onListChange: (AudioOutput) -> Unit) { | |
audioDeviceSelector.start { list, selectedDevice -> | |
println("[AUDIOSDK] when list of devices change selectedAudioDevice = ${selectedDevice?.name} audioDevices = $list") | |
onListChange(selectedDevice?.let { getAudioOutput(selectedDevice, true) } ?: AudioOutput(AudioOutputType.PHONE, null, true)) | |
} | |
} | |
private fun getAudioOutput(audioDevice: AudioDevice, isSelected: Boolean): AudioOutput { | |
println("[AUDIOSDK] device ${audioDevice.name} is selected ?$isSelected") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
ImageView m_pikachu; | |
ImageView m_pikachu2; | |
/** It's now LinearLayout and not ImageView */ | |
LinearLayout m_violet; | |
LinearLayout m_violet2; | |
... |