Wizard Engine
2D cross-platform game engine built around SDL2
 
Loading...
Searching...
No Matches
speaker.hpp File Reference

Audio component. More...

Go to the source code of this file.

Classes

class  wze::speaker
 

Namespaces

namespace  wze
 Wizard Engine.
 

Detailed Description

Audio component.

Aligns the panning of the speaker relative to the camera.

Stops the sound of the speaker.

Resumes the sound of the speaker.

Pauses the sound of the speaker.

Plays the sound of the speaker.

Move assignment operator.

Copy assignment operator.

Destroys the speaker instance and erases from instances.

Move constructor.

Copy constructor.

Constructs a speaker instance and pushes into instances.

Returns whether the speaker is paused or not.

Returns whether the speaker is playing or not.

Sets whether the y position is affected by the angle.

Returns whether the y position is affected by the angle.

Sets whether the x position is affected by the angle.

Returns whether the x position is affected by the angle.

Sets whether the y position is attached to entities.

Returns whether the y position is attached to entities.

Sets whether the x position is attached to entities.

Returns whether the x position is attached to entities.

Sets the y offset of the speaker.

Returns the y offset of the speaker.

Sets the x offset of the speaker.

Returns the x offset of the speaker.

Sets whether the speaker is spatial or not.

Returns whether the speaker is spatial or not.

Sets the z position of the speaker.

Returns the z position of the speaker.

Sets the y position of the speaker.

Returns the y position of the speaker.

Sets the x position of the speaker.

Returns the x position of the speaker.

Sets whether the panning should be aligned automatically.

Returns whether the panning should be aligned automatically.

Sets the range of the speaker.

Returns the range of the speaker.

Sets the volume of the speaker.

Returns the volume of the speaker.

Sets the sound of the speaker.

Returns the sound of the speaker.

Unimplemented inherited method.

Author
Zana Domán
Zana Domán
Returns
Sound of the speaker.
Author
Zana Domán
Parameters
soundSound of the speaker.
Author
Zana Domán
Returns
Volume of the speaker.
Author
Zana Domán
Parameters
volumeVolume of the speaker.
Author
Zana Domán
Returns
Range of the speaker.
Author
Zana Domán
Parameters
rangeRange of the speaker.
Author
Zana Domán
Returns
Whether the panning should be aligned automatically.
Author
Zana Domán
Parameters
auto_panningWhether the panning should be aligned automatically.
Author
Zana Domán
Returns
X position of the speaker.
Author
Zana Domán
Parameters
xX position of the speaker.
Author
Zana Domán
Returns
Y position of the speaker.
Author
Zana Domán
Parameters
yY position of the speaker.
Author
Zana Domán
Returns
Z position of the speaker.
Author
Zana Domán
Parameters
zZ position of the speaker.
Author
Zana Domán
Returns
Whether the speaker is spatial or not.
Author
Zana Domán
Parameters
spatialWhether the speaker is spatial or not.
Author
Zana Domán
Returns
X offset of the speaker.
Author
Zana Domán
Parameters
x_offsetX offset of the speaker.
Author
Zana Domán
Returns
Y offset of the speaker.
Author
Zana Domán
Parameters
y_offsetY offset of the speaker.
Author
Zana Domán
Returns
Whether the x position is attached to entities.
Author
Zana Domán
Parameters
attach_xWhether the x position is attached to entities.
Author
Zana Domán
Returns
Whether the y position is attached to entities.
Author
Zana Domán
Parameters
attach_yWhether the y position is attached to entities.
Author
Zana Domán
Returns
Whether the x position is affected by the angle.
Author
Zana Domán
Parameters
x_angle_lockWhether the x position is affected by the angle.
Author
Zana Domán
Returns
Whether the y position is affected by the angle.
Author
Zana Domán
Parameters
y_angle_lockWhether the y position is affected by the angle.
Author
Zana Domán
Returns
Whether the speaker is playing or not.
Author
Zana Domán
Returns
Whether the speaker is paused or not.
Author
Zana Domán
Parameters
soundSound of the speaker.
volumeVolume of the speaker.
rangeRange of the speaker.
auto_panningWhether the panning should be aligned automatically.
xX position of the speaker.
yY position of the speaker.
zZ position of the speaker.
spatialWhether the speaker is spatial or not.
x_offsetX offset of the speaker.
y_offsetY offset of the speaker.
attach_xWhether the x position is attached to entities.
attach_yWhether the y position is attached to entities.
x_angle_lockWhether the x position is affected by the angle.
y_angle_lockWhether the y position is affected by the angle.
Author
Zana Domán
Parameters
otherOther speaker instance.
Author
Zana Domán
Parameters
otherOther speaker instance.
Returns
Self reference.
Author
Zana Domán
Parameters
fade_inFade in in milliseconds.
loopsNumber of loops.
Warning
If the sound cannot be played, throws wze::exception.
Author
Zana Domán
Parameters
fade_outFade out in milliseconds.
Author
Zana Domán
Warning
If the panning cannot aligned, throws wze::exception.

Definition in file speaker.hpp.