mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:22:46 +00:00 
			
		
		
		
	 a98de0b6ee
			
		
	
	
		a98de0b6ee
		
	
	
	
	
		
			
			This is a variant of the enqueue() API that returns immediately and may fail. It's useful when you don't want to block until the audio server can receive your sample buffer.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			440 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			440 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AudioServer/AudioServerEndpoint.h>
 | |
| #include <LibCore/CoreIPCClient.h>
 | |
| 
 | |
| class ABuffer;
 | |
| 
 | |
| class AClientConnection : public IPC::Client::ConnectionNG<AudioServerEndpoint> {
 | |
|     C_OBJECT(AClientConnection)
 | |
| public:
 | |
|     AClientConnection();
 | |
| 
 | |
|     virtual void handshake() override;
 | |
|     void enqueue(const ABuffer&);
 | |
|     bool try_enqueue(const ABuffer&);
 | |
| 
 | |
|     int get_main_mix_volume();
 | |
|     void set_main_mix_volume(int);
 | |
| };
 |