HulaLoop
Simple cross-platform audio loopback and recording.
HulaAudioError.h
Go to the documentation of this file.
1 #ifndef HL_AUDIO_ERROR_H
2 #define HL_AUDIO_ERROR_H
3 
4 #include <cstdio>
5 #include <iostream>
6 
7 #include "HulaVersion.h"
8 
25 /******************************************************************************
26  *
27  * Collection of global information for HulaLoop
28  *
29 ******************************************************************************/
30 
34 #define HL_PRINT_PREFIX "[HulaLoop] "
35 
39 #define HL_ERROR_PREFIX "[HulaLoop] "
40 
44 #define hlDebug() \
45  if (HL_NO_DEBUG_OUTPUT) {} \
46  else std::cerr << HL_PRINT_PREFIX
47 
51 #define hlDebugf(...) \
52  if (HL_NO_DEBUG_OUTPUT) {} \
53  else fprintf(stderr, HL_PRINT_PREFIX __VA_ARGS__);
54 
55 /******************************************************************************
56  *
57  * Collection of exceptions for hlaudio
58  *
59 ******************************************************************************/
60 #define HL_SAMPLE_RATE_VALID "Sample rate and format are valid."
61 #define HL_SAMPLE_RATE_INVALID "The specified sample rate or format is invalid."
62 
63 namespace hula
64 {
65 }
66 
67 #endif // END HL_AUDIO_ERROR_H
Wrapper around translation functions for Qt.
Definition: Controller.h:10