Sound device.
More...
#include <base/sound/SoundDevice.h>
Inherits Object.
Sound device.
Sound device (singleton).
- See also
- SoundInputStream SoundOutputStream.
- Version
- 1.0
◆ SoundDevice()
SoundDevice::SoundDevice |
( |
| ) |
|
|
noexcept |
Initializes the sound device.
◆ acquireReadAccess()
void SoundDevice::acquireReadAccess |
( |
| ) |
|
Acquires read access to the device.
◆ acquireWriteAccess()
void SoundDevice::acquireWriteAccess |
( |
| ) |
|
Acquires write access to the device.
◆ getReadHandle()
Returns the handle associated with read access from device (may be identical to the write handle).
◆ getWriteHandle()
Returns the handle associated with write access to device (may be identical to the read handle).
◆ isReadable()
bool SoundDevice::isReadable |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the device is readable.
◆ isWriteable()
bool SoundDevice::isWriteable |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the device is writeable.
◆ relinquishReadAccess()
void SoundDevice::relinquishReadAccess |
( |
| ) |
|
Releases the read access to the device.
◆ relinquishWriteAccess()
void SoundDevice::relinquishWriteAccess |
( |
| ) |
|
Releases the write access to the device.