#include "HephShared.h"
#include <cmath>
Go to the source code of this file.
◆ HEPHAUDIO_VERSION_MAJOR
#define HEPHAUDIO_VERSION_MAJOR 3 |
major part of the version.
◆ HEPHAUDIO_VERSION_MINOR
#define HEPHAUDIO_VERSION_MINOR 0 |
minor part of the version.
◆ HEPHAUDIO_VERSION_PATCH
#define HEPHAUDIO_VERSION_PATCH 6 |
patch part of the version.
◆ HEPHAUDIO_VERSION
#define HEPHAUDIO_VERSION |
Value: "v" \
#define HEPHAUDIO_VERSION_MINOR
Definition HephAudioShared.h:21
#define HEPHAUDIO_VERSION_PATCH
Definition HephAudioShared.h:27
#define HEPHAUDIO_VERSION_MAJOR
Definition HephAudioShared.h:15
full version as string litteral.
◆ HEPHAUDIO_LOG
#define HEPHAUDIO_LOG |
( |
| logMessage, |
|
|
| logType ) |
logs messages to the console. Enabled by defining HEPHAUDIO_INFO_LOGGING.
◆ HEPHAUDIO_SPEED_OF_SOUND
#define HEPHAUDIO_SPEED_OF_SOUND 343.0 |
speed of sound in dry air at 20 deg C in meters per second
◆ HEPH_AUDIO_SAMPLE_MIN
#define HEPH_AUDIO_SAMPLE_MIN (-1.0f) |
the minimum value an audio sample can have.
◆ HEPH_AUDIO_SAMPLE_MAX
#define HEPH_AUDIO_SAMPLE_MAX (1.0f) |
the maximum value an audio sample can have.
◆ HEPH_AUDIO_SAMPLE_TO_IEEE_FLT
#define HEPH_AUDIO_SAMPLE_TO_IEEE_FLT |
( |
| sample | ) |
(sample) |
◆ HEPH_AUDIO_SAMPLE_FROM_IEEE_FLT
#define HEPH_AUDIO_SAMPLE_FROM_IEEE_FLT |
( |
| fltSample | ) |
(fltSample) |
◆ HEPHAUDIO_ANDROID_OPENSL_MIN_API_LEVEL
#define HEPHAUDIO_ANDROID_OPENSL_MIN_API_LEVEL (21) |
the minimum API level required for OPENSL ES.
◆ HEPHAUDIO_ANDROID_AAUDIO_MIN_API_LEVEL
#define HEPHAUDIO_ANDROID_AAUDIO_MIN_API_LEVEL (26) |
the minimum API level required for AAudio.
◆ heph_audio_sample_t
type of the audio samples, float by default. Can be changed by defining one of the following macros:
- HEPH_AUDIO_SAMPLE_TYPE_S16
- HEPH_AUDIO_SAMPLE_TYPE_S32
- HEPH_AUDIO_SAMPLE_TYPE_S64
- HEPH_AUDIO_SAMPLE_TYPE_FLT
- HEPH_AUDIO_SAMPLE_TYPE_DBL
◆ DecibelToGain()
double HephAudio::DecibelToGain |
( |
double | decibel | ) |
|
|
inline |
converts decibel to gain (between -1 and 1).
◆ GainToDecibel()
double HephAudio::GainToDecibel |
( |
double | gain | ) |
|
|
inline |
converts gain (between -1 and 1) to decibel.
◆ SemitoneToCent()
double HephAudio::SemitoneToCent |
( |
double | semitone | ) |
|
|
inlineconstexpr |
converts semitone to cent.
◆ SemitoneToOctave()
double HephAudio::SemitoneToOctave |
( |
double | semitone | ) |
|
|
inlineconstexpr |
converts semitone to octave.
◆ CentToSemitone()
double HephAudio::CentToSemitone |
( |
double | cent | ) |
|
|
inlineconstexpr |
converts cent to semitone.
◆ CentToOctave()
double HephAudio::CentToOctave |
( |
double | cent | ) |
|
|
inlineconstexpr |
◆ OctaveToSemitone()
double HephAudio::OctaveToSemitone |
( |
double | octave | ) |
|
|
inlineconstexpr |
converts octave to semitone.
◆ OctaveToCent()
double HephAudio::OctaveToCent |
( |
double | octave | ) |
|
|
inlineconstexpr |