mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:32:44 +00:00 
			
		
		
		
	 cf3b58fbe8
			
		
	
	
		cf3b58fbe8
		
	
	
	
	
		
			
			It didn't feel right to have a "DHCPClient" in a "Servers" directory. Rename this to Services to better reflect the type of programs we'll be putting in there.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			576 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			576 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| endpoint AudioServer = 85
 | |
| {
 | |
|     // Basic protocol
 | |
|     Greet() => (i32 client_id)
 | |
| 
 | |
|     // Mixer functions
 | |
|     SetMuted(bool muted) => ()
 | |
|     GetMuted() => (bool muted)
 | |
|     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)
 | |
| }
 |