main.FrameInterceptor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kord-voice Show documentation
Show all versions of kord-voice Show documentation
Idiomatic Kotlin Wrapper for The Discord API
package dev.kord.voice
import dev.kord.common.annotation.KordVoice
import dev.kord.gateway.Gateway
import dev.kord.voice.gateway.VoiceGateway
import kotlinx.coroutines.flow.Flow
@KordVoice
public data class FrameInterceptorConfiguration(
val gateway: Gateway,
val voiceGateway: VoiceGateway,
val ssrc: UInt
)
/**
* An interceptor for audio frames before they are sent as packets.
*
* @see DefaultFrameInterceptor
*/
@KordVoice
public fun interface FrameInterceptor {
public fun Flow.intercept(configuration: FrameInterceptorConfiguration): Flow
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy