commit 26/07/2025
This commit is contained in:
@@ -40,7 +40,7 @@ class AudioPlayer (var samplingrate: Int) {
|
|||||||
|
|
||||||
val bdi = Bass.BASS_DEVICEINFO()
|
val bdi = Bass.BASS_DEVICEINFO()
|
||||||
if (bass.BASS_GetDeviceInfo(id, bdi)){
|
if (bass.BASS_GetDeviceInfo(id, bdi)){
|
||||||
Logger.info { "Audio ID=$id: ${bdi.name} (${bdi.driver})" }
|
Logger.info { "Audio ID=$id Name=${bdi.name} Driver=${bdi.driver}" }
|
||||||
if (bdi.flags and BASS_DEVICE_ENABLED == 0) {
|
if (bdi.flags and BASS_DEVICE_ENABLED == 0) {
|
||||||
Logger.error { "Audio ID=$id is not enabled, cannot initialize" }
|
Logger.error { "Audio ID=$id is not enabled, cannot initialize" }
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user