28#include <Objectively/Data.h>
29#include <Objectively/Resource.h>
39typedef struct SoundInterface SoundInterface;
67struct SoundInterface {
72 ObjectInterface objectInterface;
83 Sound *(*initWithBytes)(
Sound *self,
const uint8_t *bytes,
size_t length);
94 Sound *(*initWithChunk)(
Sound *self, Mix_Chunk *chunk);
104 Sound *(*initWithData)(
Sound *self,
const Data *data);
114 Sound *(*initWithResource)(
Sound *self,
const Resource *resource);
124 Sound *(*initWithResourceName)(
Sound *self,
const char *name);
135 Sound *(*soundWithBytes)(
const uint8_t *bytes,
size_t length);
145 Sound *(*soundWithChunk)(Mix_Chunk *chunk);
155 Sound *(*soundWithData)(
const Data *data);
165 Sound *(*soundWithResource)(
const Resource *resource);
175 Sound *(*soundWithResourceName)(
const char *name);
ObjectivelyMVC base types.
#define OBJECTIVELYMVC_EXPORT
Sound loading and playback.
SoundInterface * interface
The interface.
Object object
The superclass.
Class * _Sound(void)
The Sound archetype.
Mix_Chunk * chunk
The backing audio chunk.