Skip to content

Commit

Permalink
fixed unsupported container formats being offered in audio settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonidius20 committed Aug 20, 2024
1 parent e9a61b2 commit 32cdf12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ enum class Container(

fun getByValue(value: Int) = map[value]!!

fun supportedContainers() = entries.filter { it.isSupported }

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class HomeViewModel @Inject constructor(
settings.setAudioSource(value)
}

val outputFormats = Container.entries
val outputFormats = Container.supportedContainers()

val selectedContainer = settings.state.map {
it.outputFormat
Expand Down

0 comments on commit 32cdf12

Please sign in to comment.