ESPHome  2024.12.2
Public Member Functions | Data Fields
esphome::audio::AudioStreamInfo Struct Reference

#include <audio.h>

Public Member Functions

bool operator== (const AudioStreamInfo &rhs) const
 
bool operator!= (const AudioStreamInfo &rhs) const
 
size_t get_bytes_per_sample () const
 

Data Fields

uint8_t channels = 1
 
uint8_t bits_per_sample = 16
 
uint32_t sample_rate = 16000
 

Detailed Description

Definition at line 9 of file audio.h.

Member Function Documentation

◆ get_bytes_per_sample()

size_t esphome::audio::AudioStreamInfo::get_bytes_per_sample ( ) const
inline

Definition at line 14 of file audio.h.

◆ operator!=()

bool esphome::audio::AudioStreamInfo::operator!= ( const AudioStreamInfo rhs) const
inline

Definition at line 13 of file audio.h.

◆ operator==()

bool esphome::audio::AudioStreamInfo::operator== ( const AudioStreamInfo rhs) const
inline

Definition at line 10 of file audio.h.

Field Documentation

◆ bits_per_sample

uint8_t esphome::audio::AudioStreamInfo::bits_per_sample = 16

Definition at line 16 of file audio.h.

◆ channels

uint8_t esphome::audio::AudioStreamInfo::channels = 1

Definition at line 15 of file audio.h.

◆ sample_rate

uint32_t esphome::audio::AudioStreamInfo::sample_rate = 16000

Definition at line 17 of file audio.h.


The documentation for this struct was generated from the following file: