Beatmup
Beatmup::Audio::PlaybackException Class Reference

Communicates an error occurred during the playback. More...

#include <abstract_playback.h>

Inheritance diagram for Beatmup::Audio::PlaybackException:
Beatmup::Exception

Public Member Functions

 PlaybackException (const char *message, int resultCode)
 
 PlaybackException (const char *message, int resultCode, const AbstractPlayback::Mode &mode)
 
- Public Member Functions inherited from Beatmup::Exception
virtual const char * what () const NOEXCEPT override
 

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 occurred during the playback.

Definition at line 99 of file abstract_playback.h.

Constructor & Destructor Documentation

◆ PlaybackException() [1/2]

PlaybackException::PlaybackException ( const char *  message,
int  resultCode 
)

Definition at line 30 of file abstract_playback.cpp.

30  :
31  Exception("%s\nResult code: %d", message, resultCode)
32 {}
Exception(const char *message)
Definition: exception.h:41
std::string message
Definition: exception.h:39

◆ PlaybackException() [2/2]

PlaybackException::PlaybackException ( const char *  message,
int  resultCode,
const AbstractPlayback::Mode mode 
)

Definition at line 25 of file abstract_playback.cpp.

25  :
26  Exception("%s\nResult code: %d\nSampling mode: %d\nSample format: %d\nChannels: %d\nBuffers: %d of %d samples\n",
27  message, resultCode, mode.sampleRate, mode.sampleFormat, mode.numChannels, mode.numBuffers, mode.bufferLength)
28 {}
JNIEnv jlong jint mode

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