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,23 @@
|
||||
#ifndef _SOUND_SOUND_H
|
||||
#define _SOUND_SOUND_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct sound_device {
|
||||
char name[32];
|
||||
uint32_t sample_rate;
|
||||
uint8_t channels;
|
||||
uint8_t bits_per_sample;
|
||||
int volume;
|
||||
int (*play_sample)(const void* buffer, size_t length);
|
||||
int (*set_volume)(int volume);
|
||||
bool active;
|
||||
} sound_device_t;
|
||||
|
||||
void sound_init(void);
|
||||
int sound_register_device(sound_device_t* dev);
|
||||
sound_device_t* sound_get_default_device(void);
|
||||
|
||||
#endif // _SOUND_SOUND_H
|
||||
Reference in new issue
Block a user