mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-26 00:52:50 +00:00
feat: Massive OS expansion with IPC, Sound & TTS, Block layer, FAT32/ext2/sysfs, Signals, Syscalls, Modules, Drivers & 50+ LazyBox applets
This commit is contained in:
1 parent
5662be29f5
commit
d680335f05
64 files changed
+2370
-166
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#ifndef _SOUND_PCM_H
|
||||
#define _SOUND_PCM_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define PCM_BUFFER_SIZE 8192
|
||||
|
||||
typedef struct {
|
||||
uint32_t sample_rate;
|
||||
uint8_t channels;
|
||||
uint8_t bits;
|
||||
uint8_t buffer[PCM_BUFFER_SIZE];
|
||||
size_t length;
|
||||
} pcm_stream_t;
|
||||
|
||||
void pcm_init(void);
|
||||
int pcm_write(const void* data, size_t len);
|
||||
|
||||
#endif // _SOUND_PCM_H
|
||||
Reference in new issue
Block a user