emupb

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmulatorController_InjectAudio_FullMethodName = "/android.emulation.control.EmulatorController/injectAudio"
)

Variables

View Source
var (
	AudioFormat_SampleFormat_name = map[int32]string{
		0: "AUD_FMT_U8",
		1: "AUD_FMT_S16",
	}
	AudioFormat_SampleFormat_value = map[string]int32{
		"AUD_FMT_U8":  0,
		"AUD_FMT_S16": 1,
	}
)

Enum value maps for AudioFormat_SampleFormat.

View Source
var (
	AudioFormat_Channels_name = map[int32]string{
		0: "Mono",
		1: "Stereo",
	}
	AudioFormat_Channels_value = map[string]int32{
		"Mono":   0,
		"Stereo": 1,
	}
)

Enum value maps for AudioFormat_Channels.

View Source
var EmulatorController_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "android.emulation.control.EmulatorController",
	HandlerType: (*EmulatorControllerServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "injectAudio",
			Handler:       _EmulatorController_InjectAudio_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "emulator_controller.proto",
}

EmulatorController_ServiceDesc is the grpc.ServiceDesc for EmulatorController service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_emulator_controller_proto protoreflect.FileDescriptor

Functions

func RegisterEmulatorControllerServer

func RegisterEmulatorControllerServer(s grpc.ServiceRegistrar, srv EmulatorControllerServer)

Types

type AudioFormat

type AudioFormat struct {
	SamplingRate uint64                   `protobuf:"varint,1,opt,name=samplingRate,proto3" json:"samplingRate,omitempty"`
	Channels     AudioFormat_Channels     `protobuf:"varint,2,opt,name=channels,proto3,enum=android.emulation.control.AudioFormat_Channels" json:"channels,omitempty"`
	Format       AudioFormat_SampleFormat `protobuf:"varint,3,opt,name=format,proto3,enum=android.emulation.control.AudioFormat_SampleFormat" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*AudioFormat) Descriptor deprecated

func (*AudioFormat) Descriptor() ([]byte, []int)

Deprecated: Use AudioFormat.ProtoReflect.Descriptor instead.

func (*AudioFormat) GetChannels

func (x *AudioFormat) GetChannels() AudioFormat_Channels

func (*AudioFormat) GetFormat

func (x *AudioFormat) GetFormat() AudioFormat_SampleFormat

func (*AudioFormat) GetSamplingRate

func (x *AudioFormat) GetSamplingRate() uint64

func (*AudioFormat) ProtoMessage

func (*AudioFormat) ProtoMessage()

func (*AudioFormat) ProtoReflect

func (x *AudioFormat) ProtoReflect() protoreflect.Message

func (*AudioFormat) Reset

func (x *AudioFormat) Reset()

func (*AudioFormat) String

func (x *AudioFormat) String() string

type AudioFormat_Channels

type AudioFormat_Channels int32
const (
	AudioFormat_Mono   AudioFormat_Channels = 0
	AudioFormat_Stereo AudioFormat_Channels = 1
)

func (AudioFormat_Channels) Descriptor

func (AudioFormat_Channels) Enum

func (AudioFormat_Channels) EnumDescriptor deprecated

func (AudioFormat_Channels) EnumDescriptor() ([]byte, []int)

Deprecated: Use AudioFormat_Channels.Descriptor instead.

func (AudioFormat_Channels) Number

func (AudioFormat_Channels) String

func (x AudioFormat_Channels) String() string

func (AudioFormat_Channels) Type

type AudioFormat_SampleFormat

type AudioFormat_SampleFormat int32
const (
	AudioFormat_AUD_FMT_U8  AudioFormat_SampleFormat = 0
	AudioFormat_AUD_FMT_S16 AudioFormat_SampleFormat = 1
)

func (AudioFormat_SampleFormat) Descriptor

func (AudioFormat_SampleFormat) Enum

func (AudioFormat_SampleFormat) EnumDescriptor deprecated

func (AudioFormat_SampleFormat) EnumDescriptor() ([]byte, []int)

Deprecated: Use AudioFormat_SampleFormat.Descriptor instead.

func (AudioFormat_SampleFormat) Number

func (AudioFormat_SampleFormat) String

func (x AudioFormat_SampleFormat) String() string

func (AudioFormat_SampleFormat) Type

type AudioPacket

type AudioPacket struct {
	Format    *AudioFormat `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"`
	Timestamp uint64       `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Audio     []byte       `protobuf:"bytes,3,opt,name=audio,proto3" json:"audio,omitempty"`
	// contains filtered or unexported fields
}

func (*AudioPacket) Descriptor deprecated

func (*AudioPacket) Descriptor() ([]byte, []int)

Deprecated: Use AudioPacket.ProtoReflect.Descriptor instead.

func (*AudioPacket) GetAudio

func (x *AudioPacket) GetAudio() []byte

func (*AudioPacket) GetFormat

func (x *AudioPacket) GetFormat() *AudioFormat

func (*AudioPacket) GetTimestamp

func (x *AudioPacket) GetTimestamp() uint64

func (*AudioPacket) ProtoMessage

func (*AudioPacket) ProtoMessage()

func (*AudioPacket) ProtoReflect

func (x *AudioPacket) ProtoReflect() protoreflect.Message

func (*AudioPacket) Reset

func (x *AudioPacket) Reset()

func (*AudioPacket) String

func (x *AudioPacket) String() string

type EmulatorControllerClient

type EmulatorControllerClient interface {
	// Injects audio packets to the android microphone.
	InjectAudio(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[AudioPacket, emptypb.Empty], error)
}

EmulatorControllerClient is the client API for EmulatorController service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EmulatorControllerServer

type EmulatorControllerServer interface {
	// Injects audio packets to the android microphone.
	InjectAudio(grpc.ClientStreamingServer[AudioPacket, emptypb.Empty]) error
	// contains filtered or unexported methods
}

EmulatorControllerServer is the server API for EmulatorController service. All implementations must embed UnimplementedEmulatorControllerServer for forward compatibility.

type EmulatorController_InjectAudioClient

type EmulatorController_InjectAudioClient = grpc.ClientStreamingClient[AudioPacket, emptypb.Empty]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type EmulatorController_InjectAudioServer

type EmulatorController_InjectAudioServer = grpc.ClientStreamingServer[AudioPacket, emptypb.Empty]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type UnimplementedEmulatorControllerServer

type UnimplementedEmulatorControllerServer struct{}

UnimplementedEmulatorControllerServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedEmulatorControllerServer) InjectAudio

type UnsafeEmulatorControllerServer

type UnsafeEmulatorControllerServer interface {
	// contains filtered or unexported methods
}

UnsafeEmulatorControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EmulatorControllerServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL