1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 16:37:35 +00:00
serenity/Userland/Services/AudioServer/AudioServer.ipc
kleines Filmröllchen 9880a5c481 AudioServer: Expose the ability to get and set the sample rate
Two new IPC calls allow audio clients to get and set the sample rate.
The AudioServer calls into the new ioctl of the sound card.
2021-08-27 23:35:27 +04:30

24 lines
709 B
Text

#include <LibCore/AnonymousBuffer.h>
endpoint AudioServer
{
// Mixer functions
set_muted(bool muted) => ()
get_muted() => (bool muted)
get_main_mix_volume() => (i32 volume)
set_main_mix_volume(i32 volume) => ()
// Audio device
set_sample_rate(u16 sample_rate) => ()
get_sample_rate() => (u16 sample_rate)
// Buffer playback
enqueue_buffer(Core::AnonymousBuffer buffer, i32 buffer_id, int sample_count) => (bool success)
set_paused(bool paused) => ()
clear_buffer(bool paused) => ()
//Buffer information
get_remaining_samples() => (int remaining_samples)
get_played_samples() => (int played_samples)
get_playing_buffer() => (i32 buffer_id)
}