All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.FrameInterceptor.kt Maven / Gradle / Ivy

There is a newer version: 0.15.0
Show newest version
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