Base Framework
Public Member Functions | List of all members
SoundDevice Class Reference

Sound device. More...

#include <base/sound/SoundDevice.h>

Inherits Object.

Public Member Functions

 SoundDevice () noexcept
 
bool isReadable () const noexcept
 
bool isWriteable () const noexcept
 
void acquireReadAccess ()
 
void relinquishReadAccess ()
 
void acquireWriteAccess ()
 
void relinquishWriteAccess ()
 
OperatingSystem::Handle getReadHandle () const noexcept
 
OperatingSystem::Handle getWriteHandle () const noexcept
 

Detailed Description

Sound device.

Sound device (singleton).

See also
SoundInputStream SoundOutputStream.
Version
1.0

Constructor & Destructor Documentation

◆ SoundDevice()

SoundDevice::SoundDevice ( )
noexcept

Initializes the sound device.

Member Function Documentation

◆ acquireReadAccess()

void SoundDevice::acquireReadAccess ( )

Acquires read access to the device.

◆ acquireWriteAccess()

void SoundDevice::acquireWriteAccess ( )

Acquires write access to the device.

◆ getReadHandle()

OperatingSystem::Handle SoundDevice::getReadHandle ( ) const
inlinenoexcept

Returns the handle associated with read access from device (may be identical to the write handle).

◆ getWriteHandle()

OperatingSystem::Handle SoundDevice::getWriteHandle ( ) const
inlinenoexcept

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.