https://kotlinlang.org logo
Join SlackCommunities
Powered by
# korau
  • d

    Deactivated User

    05/06/2019, 8:13 AM
    set the channel description: https://github.com/korlibs/korau
  • r

    ruwinmike

    12/28/2020, 2:42 PM
    Hi all. Is there somewhere an example of an application with the use of korau?
    d
    • 2
    • 2
  • r

    ruwinmike

    12/28/2020, 2:44 PM
    I try play sound
    Copy code
    val tone = AudioTone.generate(1.seconds, 440.0)
    val sound = tone.toSound()
    sound.playAndWait { current, total ->  
        println("current $current and total $total")
    }
    But crash with
    Copy code
    java.lang.IllegalStateException: Can't find the Android Context on the CoroutineContext. Must call withAndroidContext first
            at com.soywiz.korau.sound.AndroidNativeSoundProvider.createAudioStream(AndroidNativeSoundProvider.kt:28)
            at com.soywiz.korau.sound.SoundAudioStream.play(SoundAudioStream.kt:24)
            at com.soywiz.korau.sound.Sound.playAndWait(Sound.kt:231)
  • r

    ruwinmike

    12/29/2020, 12:44 PM
    I try to create folder with mp3 files to open from shared code, but I can’t understand where it should be. Is it possible? Targets are Android and iOS.
    d
    • 2
    • 2
  • r

    ruwinmike

    03/28/2021, 2:21 PM
    Hi, can I use korau to play music from url?
    • 1
    • 1
  • a

    aiscy

    05/17/2021, 6:17 AM
    Hello! Is it possible to specify an output device?
    d
    • 2
    • 2
  • t

    Tomasz Krakowiak

    08/27/2021, 2:28 PM
    How can i play audio in korge using korau? Thread in Slack Conversation
  • m

    MisileLab

    08/28/2021, 5:02 AM
    How can i play audio in korge using korau?