DiscordEncoderMiddleware
public class DiscordEncoderMiddleware
A wrapper class for a process that spits out audio data that can be fed into an FFmpeg process that is then sent to the engine.
-
The FFmpeg process.
Declaration
Swift
public let ffmpeg: Process
-
The middleware process.
Declaration
Swift
public let middleware: Process
-
The pipe used to connect FFmpeg to the middleware.
Declaration
Swift
public let pipe: Pipe
-
An intializer that sets up a middleware ffmpeg process that encodes some audio data.
Declaration
Swift
public init(source: DiscordBufferedVoiceDataSource, middleware: Process, terminationHandler: (() -> ())?)
-
Starts the middleware.
Declaration
Swift
public func start()