mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-26 09:02:46 +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,27 @@
|
||||
#include <sound/sound.h>
|
||||
#include <sound/pcm.h>
|
||||
#include <sound/ac97.h>
|
||||
#include <sound/tts.h>
|
||||
#include <lib/string.h>
|
||||
#include <kernel/printk.h>
|
||||
|
||||
static sound_device_t* default_sound_dev = NULL;
|
||||
|
||||
void sound_init(void) {
|
||||
pcm_init();
|
||||
ac97_init();
|
||||
tts_init();
|
||||
printk(KERN_INFO "SOUND: Core Audio Architecture & Formant TTS Engine online\n");
|
||||
}
|
||||
|
||||
int sound_register_device(sound_device_t* dev) {
|
||||
if (!dev) return -1;
|
||||
default_sound_dev = dev;
|
||||
printk(KERN_INFO "SOUND: Registered soundcard '%s' (%u Hz, %d-bit)\n",
|
||||
dev->name, dev->sample_rate, dev->bits_per_sample);
|
||||
return 0;
|
||||
}
|
||||
|
||||
sound_device_t* sound_get_default_device(void) {
|
||||
return default_sound_dev;
|
||||
}
|
||||
Reference in new issue
Block a user