#include <OOALBufferedSound.h>
Definition at line 30 of file OOALBufferedSound.h.
◆ dealloc
◆ initWithDecoder:
Reimplemented from OOSound.
Definition at line 48 of file OOALBufferedSound.m.
48 :(OOALSoundDecoder*)inDecoder
49{
50 BOOL OK = YES;
51
54 OK = NO;
55
56 if (OK) {
57 self = [super init];
59 OK = NO;
60 }
61
62 if (OK) {
67 }
68
69 if (!OK) {
70 [self release];
72 }
73 return self;
74}
BOOL readCreatingBuffer:withFrameCount:(char **outBuffer,[withFrameCount] size_t *outSize)
References _name, _sampleRate, _stereo, OOSound::init, OOSound::isSoundOK, OOALSoundDecoder::isStereo, OOALSoundDecoder::name, nil, OOALSoundDecoder::readCreatingBuffer:withFrameCount:, OOALSoundDecoder::sampleRate, and OOSound::setUp.
◆ name
◆ soundBuffer
Reimplemented from OOSound.
Definition at line 76 of file OOALBufferedSound.m.
77{
78 ALuint buffer;
79 ALint error;
80 OOAL(alGenBuffers(1, &buffer));
81 if ((error = alGetError()) != AL_NO_ERROR) {
83 return 0;
84 } else {
87 } else {
89 }
90 return buffer;
91 }
92}
#define OOLog(class, format,...)
static NSString *const kOOLogSoundLoadingError
References _buffer, _sampleRate, _size, _stereo, kOOLogSoundLoadingError, OOAL, OOLog, and soundBuffer.
Referenced by soundBuffer.
◆ _buffer
◆ _name
◆ _sampleRate
◆ _size
◆ _stereo
The documentation for this class was generated from the following files: