|
ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
|
Sound loading and playback. More...
#include <Sound.h>
Public Member Functions | |
| Class * | _Sound (void) |
| The Sound archetype. More... | |
| Sound * | initWithBytes (Sound *self, const uint8_t *bytes, size_t length) |
| Initializes this Sound with the specified bytes. More... | |
| Sound * | initWithChunk (Sound *, const Chunk *) |
| Initializes this Sound with the given audio chunk. More... | |
| Sound * | initWithData (Sound *, Data *) |
| Sound * | initWithData (Sound *self, const Data *data) |
| Initializes this Sound with the specified Data. More... | |
| Sound * | initWithResource (Sound *, const Resource *) |
| Initializes this Sound with the specified Resource. More... | |
| Sound * | initWithResourceName (Sound *, const char *) |
| Initializes this Sound with the specified Resource name. More... | |
| Sound * | soundWithBytes (const uint8_t *bytes, size_t length) |
| Instantiates an Sound with the specified bytes. More... | |
| Sound * | soundWithChunk (Mix_Chunk *chunk) |
| Instantiates an Sound with the specified chunk. More... | |
| Sound * | soundWithData (const Data *data) |
| Instantiates an Sound with the specified Data. More... | |
| Sound * | soundWithResource (const Resource *resource) |
| Instantiates an Sound with the specified Resource. More... | |
| Sound * | soundWithResourceName (const char *name) |
| Instantiates an Sound with the specified Resource name. More... | |
Data Fields | |
| Mix_Chunk * | chunk |
| The backing audio chunk. More... | |
| Object | object |
| The superclass. More... | |
Protected Attributes | |
| SoundInterface * | interface |
| The interface. More... | |
| Class * _Sound | ( | void | ) |
The Sound archetype.
Definition at line 190 of file Sound.c.
Initializes this Sound with the specified bytes.
| self | The Sound. |
| bytes | The encoded sound data. |
| length | The length of bytes. |
NULL on error. Definition at line 52 of file Sound.c.
Initializes this Sound with the specified Data.
| self | The Sound. |
| data | The Data providing encoded audio data. |
NULL on error. Definition at line 68 of file Sound.c.
Initializes this Sound with the specified Resource.
| self | The Sound. |
| resource | The Resource providing encoded audio data. |
NULL on error. Definition at line 98 of file Sound.c.
Initializes this Sound with the specified Resource name.
| self | The Sound. |
| name | The name of the Resource providing encoded audio data. |
NULL on error. Definition at line 113 of file Sound.c.
| Sound * soundWithBytes | ( | const uint8_t * | bytes, |
| size_t | length | ||
| ) |
| Sound * soundWithChunk | ( | Mix_Chunk * | chunk | ) |
| Sound * soundWithData | ( | const Data * | data | ) |
| Sound * soundWithResource | ( | const Resource * | resource | ) |
| Sound * soundWithResourceName | ( | const char * | name | ) |
Instantiates an Sound with the specified Resource name.
| name | The name of a Resource containing encoded sound data. |
NULL on error. Definition at line 160 of file Sound.c.