Beatmup
Beatmup::Audio::Signal::IncompatibleFormat Class Reference

Communicates an error when inserting a incompatible fragment into a Signal. More...

#include <signal.h>

Inheritance diagram for Beatmup::Audio::Signal::IncompatibleFormat:
Beatmup::Exception

Public Member Functions

 IncompatibleFormat (const Signal &source, const Signal &dest)
 
- Public Member Functions inherited from Beatmup::Exception
virtual const char * what () const NOEXCEPT override
 

Public Attributes

AudioSampleFormat sourceFormat
 
AudioSampleFormat destFormat
 
int sourceChannelCount
 
int destChannelCount
 

Additional Inherited Members

- Protected Member Functions inherited from Beatmup::Exception
 Exception (const char *message)
 
template<typename ... Args>
 Exception (const char *message, const Args &... args)
 

Detailed Description

Communicates an error when inserting a incompatible fragment into a Signal.

Definition at line 177 of file signal.h.

Constructor & Destructor Documentation

◆ IncompatibleFormat()

Signal::IncompatibleFormat::IncompatibleFormat ( const Signal source,
const Signal dest 
)

Definition at line 381 of file signal.cpp.

381  :
382  Exception(
383  "Incompatible format: %s @ %d channels vs <-> %s @ %d channels",
386  ),
388 {}
unsigned char getChannelCount() const
Definition: signal.h:232
AudioSampleFormat getSampleFormat() const
Definition: signal.h:237
Exception(const char *message)
Definition: exception.h:41
const char *const AUDIO_FORMAT_NAME[]

Member Data Documentation

◆ sourceFormat

AudioSampleFormat Beatmup::Audio::Signal::IncompatibleFormat::sourceFormat

Definition at line 179 of file signal.h.

◆ destFormat

AudioSampleFormat Beatmup::Audio::Signal::IncompatibleFormat::destFormat

Definition at line 179 of file signal.h.

◆ sourceChannelCount

int Beatmup::Audio::Signal::IncompatibleFormat::sourceChannelCount

Definition at line 180 of file signal.h.

◆ destChannelCount

int Beatmup::Audio::Signal::IncompatibleFormat::destChannelCount

Definition at line 180 of file signal.h.


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