![]() |
Cornell Cocos
Cornell Extensions to Cocos2d
|
#include <CUSoundEngine.h>
Public Member Functions | |
| const std::string | getKey () const |
| const Sound * | getSound () const |
| SoundPacket (const SoundPacket &data) | |
| ~SoundPacket () | |
Protected Member Functions | |
| SoundPacket (const std::string &k, Sound *s, bool l, float v) | |
| SoundPacket () | |
| void | set (const SoundPacket &data) |
Protected Attributes | |
| std::string | _key |
| Sound * | _sound |
| bool | _loop |
| float | _volume |
| int | _sndid |
Friends | |
| class | SoundEngine |
Class provides a encapsulation of an active sound channel.
This class allows us to internalize sound management, instead of requiring the application layer to keep track of a lot of integers and continuously query when sounds complete.
|
inline |
Creates a sound packet that is a copy of the given packet.
| data | the packet to copy |
|
inline |
Disposes of a sound packet (does nothing as it owns no resources)
|
inlineprotected |
Creates a sound packet with the given data.
| k | the reference key |
| s | the sound file |
| l | whether to loop the sound |
| v | the sound volume |
|
inlineprotected |
Creates an empty, inactive sound data
|
inline |
Returns the reference key for this active sound channel.
|
inline |
Returns the sound file for this active sound channel.
|
inlineprotected |
Assigns this packet to be a copy of the given packet.
| data | the packet to copy |
|
friend |
Allow SoundEngine direct access
|
protected |
The reference key for this active sound channel.
|
protected |
Whether this active sound channel is in a loop.
|
protected |
The sound identifier for the experimental AudioEngine
|
protected |
The sound file for this active sound channel
|
protected |
The volume of this active sound channel.
1.8.10