mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
ab49fcfb7c
The file is now renamed to Queue.h, and the Resampler APIs with LegacyBuffer are also removed. These changes look large because nobody actually needs Buffer.h (or Queue.h). It was mostly transitive dependencies on the massive list of includes in that header, which are now almost all gone. Instead, we include common things like Sample.h directly, which should give faster compile times as very few files actually need Queue.h.
25 lines
688 B
Text
25 lines
688 B
Text
#include <LibCore/AnonymousBuffer.h>
|
|
#include <LibAudio/Queue.h>
|
|
|
|
endpoint AudioServer
|
|
{
|
|
// Mixer functions
|
|
set_main_mix_muted(bool muted) => ()
|
|
is_main_mix_muted() => (bool muted)
|
|
set_self_muted(bool muted) => ()
|
|
is_self_muted() => (bool muted)
|
|
get_main_mix_volume() => (double volume)
|
|
set_main_mix_volume(double volume) => ()
|
|
get_self_volume() => (double volume)
|
|
set_self_volume(double volume) => ()
|
|
|
|
// Audio device
|
|
set_sample_rate(u32 sample_rate) => ()
|
|
get_sample_rate() => (u32 sample_rate)
|
|
|
|
// Buffer playback
|
|
set_buffer(Audio::AudioQueue buffer) => ()
|
|
clear_buffer() =|
|
|
start_playback() =|
|
|
pause_playback() =|
|
|
}
|