foobar2000 SDK  2015-08-03
Public Member Functions | Static Public Member Functions | Data Fields
audio_chunk::spec_t

#include <audio_chunk.h>

Public Member Functions

bool is_valid () const
 
bool operator!= (const spec_t &other) const
 
bool operator== (const spec_t &other) const
 

Static Public Member Functions

static bool equals (const spec_t &v1, const spec_t &v2)
 

Data Fields

uint32_t chanCount
 
uint32_t chanMask
 
uint32_t sampleRate
 

Detailed Description

Definition at line 221 of file audio_chunk.h.

Member Function Documentation

bool audio_chunk::spec_t::equals ( const spec_t v1,
const spec_t v2 
)
static

Definition at line 576 of file audio_chunk.cpp.

576  {
577  return v1.sampleRate == v2.sampleRate && v1.chanCount == v2.chanCount && v1.chanMask == v2.chanMask;
578 }
bool audio_chunk::spec_t::is_valid ( ) const

Definition at line 592 of file audio_chunk.cpp.

592  {
593  if (this->chanCount==0 || this->chanCount>256) return false;
594  if (!audio_chunk::g_is_valid_sample_rate(this->sampleRate)) return false;
595  return true;
596 }
static bool g_is_valid_sample_rate(t_uint32 p_val)
Definition: audio_chunk.h:11
bool audio_chunk::spec_t::operator!= ( const spec_t other) const
inline

Definition at line 227 of file audio_chunk.h.

227 { return !equals(*this, other);}
static bool equals(const spec_t &v1, const spec_t &v2)
bool audio_chunk::spec_t::operator== ( const spec_t other) const
inline

Definition at line 226 of file audio_chunk.h.

226 { return equals(*this, other);}
static bool equals(const spec_t &v1, const spec_t &v2)

Field Documentation

uint32_t audio_chunk::spec_t::chanCount

Definition at line 223 of file audio_chunk.h.

uint32_t audio_chunk::spec_t::chanMask

Definition at line 223 of file audio_chunk.h.

uint32_t audio_chunk::spec_t::sampleRate

Definition at line 222 of file audio_chunk.h.


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