The IDeviceFactory interface opens an output device.
More...
#include <IDeviceFactory.h>
The IDeviceFactory interface opens an output device.
◆ getPriority()
virtual int IDeviceFactory::getPriority |
( |
| ) |
|
|
pure virtual |
Returns the priority of the device to be the default device for a system.
The higher the priority the more likely it is for this device to be used as the default device.
- Returns
- Priority to be the default device.
◆ openDevice()
virtual std::shared_ptr<IDevice> IDeviceFactory::openDevice |
( |
| ) |
|
|
pure virtual |
Opens an audio device for playback.
- Exceptions
-
Exception | Thrown if the audio device cannot be opened. |
◆ setBufferSize()
virtual void IDeviceFactory::setBufferSize |
( |
int |
buffersize | ) |
|
|
pure virtual |
Sets the size for the internal playback buffers.
The bigger the buffersize, the less likely clicks happen, but the latency increases too.
- Parameters
-
buffersize | The size of the internal buffer. |
◆ setName()
virtual void IDeviceFactory::setName |
( |
std::string |
name | ) |
|
|
pure virtual |
Sets a name for the device.
- Parameters
-
name | The internal name for the device. |
◆ setSpecs()
virtual void IDeviceFactory::setSpecs |
( |
DeviceSpecs |
specs | ) |
|
|
pure virtual |
Sets the wanted device specifications for opening the device.
- Parameters
-
specs | The wanted audio specification. |
The documentation for this interface was generated from the following file: