HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
HephShared.h File Reference
#include <cinttypes>
#include <cstring>

Go to the source code of this file.

Macros

#define HEPH_STRINGIFY(x)   #x
 
#define HEPH_TOSTRING(x)   HEPH_STRINGIFY(x)
 
#define CPP_VERSION   __cplusplus
 
#define CPP_VERSION_PRE_98   (1L)
 
#define CPP_VERSION_98   (199711L)
 
#define CPP_VERSION_11   (201103L)
 
#define CPP_VERSION_14   (201402L)
 
#define CPP_VERSION_17   (201703L)
 
#define CPP_VERSION_20   (202002L)
 
#define CPP_VERSION_23   (202101L)
 
#define heph_aligned_malloc(size, alignment)   aligned_alloc(alignment, size)
 
#define heph_aligned_free   free
 
#define HEPH_API
 
#define HEPH_FUNC   __func__
 
#define HEPH_SYSTEM_ENDIAN   Heph::systemEndian
 
#define HEPH_CHANGE_ENDIAN(pData, dataSize)   Heph::ChangeEndian((uint8_t*)(pData), dataSize)
 

Enumerations

enum  Endian : uint8_t { Little = 0x00 , Big = 0x01 , Unknown = 0xFF }
 
enum  ConvolutionMode { Full = 0 , Central = 1 , ValidPadding = 2 }
 

Functions

void Heph::ChangeEndian (uint8_t *pData, uint8_t dataSize)
 
constexpr Endian Heph::operator! (const Endian &lhs)
 

Variables

Endian Heph::systemEndian
 

Macro Definition Documentation

◆ HEPH_STRINGIFY

#define HEPH_STRINGIFY ( x)    #x

converts x to string litteral without expanding the parameter.

◆ HEPH_TOSTRING

#define HEPH_TOSTRING ( x)    HEPH_STRINGIFY(x)

converts x to string litteral with expanding the parameter.

◆ CPP_VERSION

#define CPP_VERSION   __cplusplus

targeted C++ version

◆ HEPH_API

#define HEPH_API

exports/imports the members, methods, and classes for shared libraries.

◆ HEPH_FUNC

#define HEPH_FUNC   __func__

name of the current function.

◆ HEPH_SYSTEM_ENDIAN

#define HEPH_SYSTEM_ENDIAN   Heph::systemEndian

endianness of the current system.

◆ HEPH_CHANGE_ENDIAN

#define HEPH_CHANGE_ENDIAN ( pData,
dataSize )   Heph::ChangeEndian((uint8_t*)(pData), dataSize)

changes the endianness of the provided data.

Function Documentation

◆ ChangeEndian()

void Heph::ChangeEndian ( uint8_t * pData,
uint8_t dataSize )

changes the endianness of the provided data.

Parameters
pDatapointer to the data.
dataSizesize of the data in bytes.

Variable Documentation

◆ systemEndian

Endian Heph::systemEndian
extern

endianness of the current system.