Registers a new Sound Implementor.
(Sound driver)
| 80 | * Registers a new Sound Implementor. |
| 81 | */ |
| 82 | public static void register(Sound driver) { |
| 83 | if (driver == null) { |
| 84 | throw new IllegalArgumentException("Sound implementation can't be null"); |
| 85 | } |
| 86 | if (!drivers.contains(driver)) { |
| 87 | drivers.add(driver); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Switches to the specific sound driver. |
no test coverage detected