|
Blender
V2.59
|
#include <AUD_ReadDevice.h>

Public Member Functions | |
| AUD_ReadDevice (AUD_DeviceSpecs specs) | |
| virtual | ~AUD_ReadDevice () |
| bool | read (data_t *buffer, int length) |
Protected Member Functions | |
| virtual void | playing (bool playing) |
This device enables to let the user read raw data out of it.
Definition at line 40 of file AUD_ReadDevice.h.
| AUD_ReadDevice::AUD_ReadDevice | ( | AUD_DeviceSpecs | specs | ) |
Creates a new read device.
| specs | The wanted audio specification. |
Definition at line 38 of file AUD_ReadDevice.cpp.
References AUD_SoftwareDevice::create(), and AUD_SoftwareDevice::m_specs.
| AUD_ReadDevice::~AUD_ReadDevice | ( | ) | [virtual] |
Closes the device.
Definition at line 46 of file AUD_ReadDevice.cpp.
References AUD_SoftwareDevice::destroy().
| void AUD_ReadDevice::playing | ( | bool | playing | ) | [protected, virtual] |
This function tells the device, to start or pause playback.
| playing | True if device should playback. |
Implements AUD_SoftwareDevice.
Definition at line 63 of file AUD_ReadDevice.cpp.
| bool AUD_ReadDevice::read | ( | data_t * | buffer, |
| int | length | ||
| ) |
Reads the next bytes into the supplied buffer.
| buffer | The target buffer. |
| length | The length in samples to be filled. |
Definition at line 51 of file AUD_ReadDevice.cpp.
References AUD_DEVICE_SAMPLE_SIZE, AUD_FORMAT_U8, AUD_DeviceSpecs::format, AUD_SoftwareDevice::m_specs, and AUD_SoftwareDevice::mix().
Referenced by AUD_readDevice().