ESPHome 2026.5.0
Loading...
Searching...
No Matches
esphome::api::MediaPlayerSupportedFormat Class Referencefinal

#include <api_pb2.h>

Inheritance diagram for esphome::api::MediaPlayerSupportedFormat:
esphome::api::ProtoMessage

Public Member Functions

uint8_t * encode (ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
 
uint32_t calculate_size () const
 
const char * dump_to (DumpBuffer &out) const override
 
- Public Member Functions inherited from esphome::api::ProtoMessage
uint8_t * encode (ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
 
uint32_t calculate_size () const
 
virtual const LogString * message_name () const
 

Data Fields

StringRef format {}
 
uint32_t sample_rate {0}
 
uint32_t num_channels {0}
 
enums::MediaPlayerFormatPurpose purpose {}
 
uint32_t sample_bytes {0}
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::api::ProtoMessage
 ~ProtoMessage ()=default
 

Detailed Description

Definition at line 1801 of file api_pb2.h.

Member Function Documentation

◆ calculate_size()

uint32_t esphome::api::MediaPlayerSupportedFormat::calculate_size ( ) const

Definition at line 2206 of file api_pb2.cpp.

◆ dump_to()

const char * esphome::api::MediaPlayerSupportedFormat::dump_to ( DumpBuffer & out) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 1860 of file api_pb2_dump.cpp.

◆ encode()

uint8_t * esphome::api::MediaPlayerSupportedFormat::encode ( ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const

Definition at line 2197 of file api_pb2.cpp.

Field Documentation

◆ format

StringRef esphome::api::MediaPlayerSupportedFormat::format {}

Definition at line 1803 of file api_pb2.h.

◆ num_channels

uint32_t esphome::api::MediaPlayerSupportedFormat::num_channels {0}

Definition at line 1805 of file api_pb2.h.

◆ purpose

enums::MediaPlayerFormatPurpose esphome::api::MediaPlayerSupportedFormat::purpose {}

Definition at line 1806 of file api_pb2.h.

◆ sample_bytes

uint32_t esphome::api::MediaPlayerSupportedFormat::sample_bytes {0}

Definition at line 1807 of file api_pb2.h.

◆ sample_rate

uint32_t esphome::api::MediaPlayerSupportedFormat::sample_rate {0}

Definition at line 1804 of file api_pb2.h.


The documentation for this class was generated from the following files: