blob: 469e226eef0dd8d7445c0874fd723186190d5b05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
endpoint AudioServer
{
// Basic protocol
Greet(i32 client_pid) => (i32 server_pid, i32 client_id)
// Mixer functions
GetMainMixVolume() => (i32 volume)
SetMainMixVolume(i32 volume) => ()
// Buffer playback
EnqueueBuffer(i32 buffer_id, int sample_count) => (bool success)
SetPaused(bool paused) => ()
ClearBuffer(bool paused) => ()
//Buffer information
GetRemainingSamples() => (int remaining_samples)
GetPlayedSamples() => (int played_samples)
GetPlayingBuffer() => (i32 buffer_id)
}
|