Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a temporary handle to a shared SoundBuffer. More...
#include <omSoundSharedSoundBuffer.h>
Public Member Functions | |
SharedSoundBuffer (const SharedSoundBuffer &other) | |
Declare the copy constructor private so that instances of this class cannot be copied. More... | |
~SharedSoundBuffer () | |
Destroy this handle to a shared sound buffer, releasing it back to its pool. More... | |
SharedSoundBuffer & | operator= (const SharedSoundBuffer &other) |
Declare the assignment operator private so that instances of this class cannot be copied. More... | |
SoundBuffer & | getBuffer () |
Return a reference to the underlying sound buffer that is being shared. More... | |
const SoundBuffer & | getBuffer () const |
Return a reference to the underlying sound buffer that is being shared. More... | |
A class that represents a temporary handle to a shared SoundBuffer.
When this class is created, it obtains a handle to a shared sound buffer and locks that buffer from being used elsewhere. Once this object goes out of scope and is destructed, it releases its handle to that SoundBuffer, allowing its reuse.
Therefore, it is an illegal operation to retain a pointer to the shared SoundBuffer and use it after the associated SharedSoundBuffer instance has been destructed.
|
inline |
Declare the copy constructor private so that instances of this class cannot be copied.
|
inline |
Destroy this handle to a shared sound buffer, releasing it back to its pool.
|
inline |
Declare the assignment operator private so that instances of this class cannot be copied.
|
inline |
Return a reference to the underlying sound buffer that is being shared.
|
inline |
Return a reference to the underlying sound buffer that is being shared.