Skip to content

Commit

Permalink
Revert listDevices method
Browse files Browse the repository at this point in the history
  • Loading branch information
liviu-timar committed Oct 17, 2024
1 parent 50d63a4 commit d5cf1f2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,10 @@ class MicrophoneManager(
/**
* List the devices, returns a stateflow with audio devices
*/
fun listDevices(): StateFlow<List<StreamAudioDevice>> = devices
fun listDevices(): StateFlow<List<StreamAudioDevice>> {
setup()
return devices
}

fun cleanup() {
ifAudioHandlerInitialized { it.stop() }
Expand Down

0 comments on commit d5cf1f2

Please sign in to comment.