sfml_impl 0.1.0
Vendor SFML 3.0.2 : IGraphic2Module / IAudioModule
Loading...
Searching...
No Matches
SfmlSound Class Reference

Sfml Sound class - references a SfmlSoundBuffer, does not own it. Deleting the sound never touches the buffer. More...

#include <SfmlSound.hpp>

Inheritance diagram for SfmlSound:
Collaboration diagram for SfmlSound:

Public Member Functions

 SfmlSound (SfmlSoundBuffer &buffer)
 
 ~SfmlSound () override=default
 
bool isReady () const override
 
void play () override
 
void pause () override
 
void stop () override
 
void setVolume (float volume) override
 
float getVolume () const override
 
void setPosition (Vector3f position) override
 
Vector3f getPosition () const override
 
void setVelocity (Vector3f velocity) override
 
Vector3f getVelocity () const override
 

Detailed Description

Sfml Sound class - references a SfmlSoundBuffer, does not own it. Deleting the sound never touches the buffer.

Constructor & Destructor Documentation

◆ SfmlSound()

SfmlSound::SfmlSound ( SfmlSoundBuffer buffer)
inline

◆ ~SfmlSound()

SfmlSound::~SfmlSound ( )
overridedefault

Member Function Documentation

◆ getPosition()

Vector3f SfmlSound::getPosition ( ) const
inlineoverride

◆ getVelocity()

Vector3f SfmlSound::getVelocity ( ) const
inlineoverride

◆ getVolume()

float SfmlSound::getVolume ( ) const
inlineoverride

◆ isReady()

bool SfmlSound::isReady ( ) const
inlineoverride

◆ pause()

void SfmlSound::pause ( )
inlineoverride

◆ play()

void SfmlSound::play ( )
inlineoverride

◆ setPosition()

void SfmlSound::setPosition ( Vector3f  position)
inlineoverride

◆ setVelocity()

void SfmlSound::setVelocity ( Vector3f  velocity)
inlineoverride

◆ setVolume()

void SfmlSound::setVolume ( float  volume)
inlineoverride

◆ stop()

void SfmlSound::stop ( )
inlineoverride

The documentation for this class was generated from the following file: