|
bool | pause (bool keep) |
| This method is for internal use only.
|
|
| SoftwareHandle (SoftwareDevice *device, std::shared_ptr< IReader > reader, std::shared_ptr< PitchReader > pitch, std::shared_ptr< ResampleReader > resampler, std::shared_ptr< ChannelMapperReader > mapper, bool keep) |
| Creates a new software handle.
|
|
void | update () |
| Updates the handle's playback parameters.
|
|
void | setSpecs (Specs specs) |
| Sets the audio output specification of the readers.
|
|
virtual bool | pause () |
| Pauses a played back sound.
|
|
virtual bool | resume () |
| Resumes a paused sound.
|
|
virtual bool | stop () |
| Stops a played back or paused sound.
|
|
virtual bool | getKeep () |
| Gets the behaviour of the device for a played back sound when the sound doesn't return any more samples.
|
|
virtual bool | setKeep (bool keep) |
| Sets the behaviour of the device for a played back sound when the sound doesn't return any more samples.
|
|
virtual bool | seek (double position) |
| Seeks in a played back sound.
|
|
virtual double | getPosition () |
| Retrieves the current playback position of a sound.
|
|
virtual Status | getStatus () |
| Returns the status of a played back sound.
|
|
virtual float | getVolume () |
| Retrieves the volume of a playing sound.
|
|
virtual bool | setVolume (float volume) |
| Sets the volume of a playing sound.
|
|
virtual float | getPitch () |
| Retrieves the pitch of a playing sound.
|
|
virtual bool | setPitch (float pitch) |
| Sets the pitch of a playing sound.
|
|
virtual int | getLoopCount () |
| Retrieves the loop count of a playing sound.
|
|
virtual bool | setLoopCount (int count) |
| Sets the loop count of a playing sound.
|
|
virtual bool | setStopCallback (stopCallback callback=0, void *data=0) |
| Sets the callback function that's called when the end of a playing sound is reached.
|
|
virtual Vector3 | getLocation () |
| Retrieves the location of the source.
|
|
virtual bool | setLocation (const Vector3 &location) |
| Sets the location of the source.
|
|
virtual Vector3 | getVelocity () |
| Retrieves the velocity of the source.
|
|
virtual bool | setVelocity (const Vector3 &velocity) |
| Sets the velocity of the source.
|
|
virtual Quaternion | getOrientation () |
| Retrieves the orientation of the source.
|
|
virtual bool | setOrientation (const Quaternion &orientation) |
| Sets the orientation of the source.
|
|
virtual bool | isRelative () |
| Checks whether the source location, velocity and orientation are relative to the listener.
|
|
virtual bool | setRelative (bool relative) |
| Sets whether the source location, velocity and orientation are relative to the listener.
|
|
virtual float | getVolumeMaximum () |
| Retrieves the maximum volume of a source.
|
|
virtual bool | setVolumeMaximum (float volume) |
| Sets the maximum volume of a source.
|
|
virtual float | getVolumeMinimum () |
| Retrieves the minimum volume of a source.
|
|
virtual bool | setVolumeMinimum (float volume) |
| Sets the minimum volume of a source.
|
|
virtual float | getDistanceMaximum () |
| Retrieves the maximum distance of a source.
|
|
virtual bool | setDistanceMaximum (float distance) |
| Sets the maximum distance of a source.
|
|
virtual float | getDistanceReference () |
| Retrieves the reference distance of a source.
|
|
virtual bool | setDistanceReference (float distance) |
| Sets the reference distance of a source.
|
|
virtual float | getAttenuation () |
| Retrieves the attenuation of a source.
|
|
virtual bool | setAttenuation (float factor) |
| Sets the attenuation of a source.
|
|
virtual float | getConeAngleOuter () |
| Retrieves the outer opening angle of the cone of a source.
|
|
virtual bool | setConeAngleOuter (float angle) |
| Sets the outer opening angle of the cone of a source.
|
|
virtual float | getConeAngleInner () |
| Retrieves the inner opening angle of the cone of a source.
|
|
virtual bool | setConeAngleInner (float angle) |
| Sets the inner opening angle of the cone of a source.
|
|
virtual float | getConeVolumeOuter () |
| Retrieves the outer volume of the cone of a source.
|
|
virtual bool | setConeVolumeOuter (float volume) |
| Sets the outer volume of the cone of a source.
|
|
Public Member Functions inherited from IHandle |
virtual | ~IHandle () |
| Destroys the handle.
|
|
Public Member Functions inherited from I3DHandle |
virtual | ~I3DHandle () |
| Destroys the handle.
|
|
|
std::shared_ptr< IReader > | m_reader |
| The reader source.
|
|
std::shared_ptr< PitchReader > | m_pitch |
| The pitch reader in between.
|
|
std::shared_ptr< ResampleReader > | m_resampler |
| The resample reader in between.
|
|
std::shared_ptr< ChannelMapperReader > | m_mapper |
| The channel mapper reader in between.
|
|
bool | m_first_reading |
| Whether the source is being read for the first time.
|
|
bool | m_keep |
| Whether to keep the source if end of it is reached.
|
|
float | m_user_pitch |
| The user set pitch of the source.
|
|
float | m_user_volume |
| The user set volume of the source.
|
|
float | m_user_pan |
| The user set panning for non-3D sources.
|
|
float | m_volume |
| The calculated final volume of the source.
|
|
float | m_old_volume |
| The previous calculated final volume of the source.
|
|
int | m_loopcount |
| The loop count of the source.
|
|
Vector3 | m_location |
| Location in 3D Space.
|
|
Vector3 | m_velocity |
| Velocity in 3D Space.
|
|
Quaternion | m_orientation |
| Orientation in 3D Space.
|
|
bool | m_relative |
| Whether the position to the listener is relative or absolute.
|
|
float | m_volume_max |
| Maximum volume.
|
|
float | m_volume_min |
| Minimum volume.
|
|
float | m_distance_max |
| Maximum distance.
|
|
float | m_distance_reference |
| Reference distance;.
|
|
float | m_attenuation |
| Attenuation.
|
|
float | m_cone_angle_outer |
| Cone outer angle.
|
|
float | m_cone_angle_inner |
| Cone inner angle.
|
|
float | m_cone_volume_outer |
| Cone outer volume.
|
|
int | m_flags |
| Rendering flags.
|
|
stopCallback | m_stop |
| The stop callback.
|
|
void * | m_stop_data |
| Stop callback data.
|
|
Status | m_status |
| Current status of the handle.
|
|
SoftwareDevice * | m_device |
| Own device.
|
|
Saves the data for playback.