mirror of
				https://github.com/onyx-and-iris/voicemeeter-rb.git
				synced 2025-10-31 12:21:46 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			469 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			469 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| require_relative "iremote"
 | |
| require_relative "kinds"
 | |
| 
 | |
| module Voicemeeter
 | |
|   module Bus
 | |
|     class Bus < IRemote
 | |
|       def self.make(remote, i)
 | |
|         "
 | |
|         Factory function for Bus classes.
 | |
| 
 | |
|         Returns a PhysicalBus or VirtualBus class
 | |
|         "
 | |
|         p_out, v_out = remote.kind.outs
 | |
|         i < p_out ? PhysicalBus.new(remote, i) : VirtualBus.new(remote, i)
 | |
|       end
 | |
|     end
 | |
| 
 | |
|     class PhysicalBus < Bus
 | |
|     end
 | |
| 
 | |
|     class VirtualBus < Bus
 | |
|     end
 | |
|   end
 | |
| end
 |