Documentation ¶
Index ¶
- Constants
- Variables
- func Init(roomID string, withImageChannel bool, inputChannel <-chan InputEvent, ...) (*naEmulator, chan GameFrame, chan []int16)
- func NewNAEmulator(roomID string, inputChannel <-chan InputEvent, storage Storage, ...) (*naEmulator, chan GameFrame, chan []int16)
- type CloudEmulator
- type ConfigProperties
- type GameFrame
- type InputEvent
- type Players
- type Storage
- type VideoExporter
Constants ¶
View Source
const (
InputTerminate = 0xFFFF
)
Variables ¶
View Source
var NAEmulator *naEmulator
Functions ¶
func Init ¶
func Init(roomID string, withImageChannel bool, inputChannel <-chan InputEvent, storage Storage, config config.LibretroCoreConfig) (*naEmulator, chan GameFrame, chan []int16)
Init initialize new RetroArch cloud emulator withImageChan returns an image stream as Channel for output else it will write to unix socket
func NewNAEmulator ¶
func NewNAEmulator(roomID string, inputChannel <-chan InputEvent, storage Storage, conf config.LibretroCoreConfig) (*naEmulator, chan GameFrame, chan []int16)
NAEmulator implements CloudEmulator interface based on NanoArch(golang RetroArch)
Types ¶
type CloudEmulator ¶
type ConfigProperties ¶
func ScanConfigFile ¶
func ScanConfigFile(filename string) ConfigProperties
type InputEvent ¶
type Players ¶ added in v2.5.0
type Players struct {
// contains filtered or unexported fields
}
func NewPlayerSessionInput ¶ added in v2.5.0
func NewPlayerSessionInput() Players
type VideoExporter ¶
type VideoExporter struct {
// contains filtered or unexported fields
}
VideoExporter produces image frame to unix socket
func NewVideoExporter ¶
func NewVideoExporter(roomID string, imgChannel chan GameFrame) *VideoExporter
NewVideoExporter creates new video Exporter that produces to unix socket
Click to show internal directories.
Click to hide internal directories.