mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-11 03:08:41 +00:00
40 lines
649 B
C
40 lines
649 B
C
/**
|
|
* Jingga
|
|
*
|
|
* @copyright Jingga
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
#ifndef TOS_AUDIO_H
|
|
#define TOS_AUDIO_H
|
|
|
|
#include "../stdlib/Types.h"
|
|
|
|
// This represents the audio file
|
|
struct Audio {
|
|
// bits per sample
|
|
// usually 48000 or 44100
|
|
uint32 sample_rate;
|
|
|
|
// bytes per bloc
|
|
// channel count * bit
|
|
// usually 2 * 16 = 4
|
|
uint32 sample_size;
|
|
|
|
// audio channels
|
|
// usually 2
|
|
uint32 channels;
|
|
|
|
// usually 16 = 2
|
|
uint32 bloc_size;
|
|
|
|
// sample_rate * sample_size
|
|
uint32 byte_per_sec;
|
|
|
|
uint32 size;
|
|
byte* data; // owner of data
|
|
};
|
|
|
|
#endif
|