#include <OOALStreamedSound.h>
Definition at line 30 of file OOALStreamedSound.h.
◆ dealloc
◆ initWithDecoder:
Reimplemented from OOSound.
Definition at line 1 of file OOALStreamedSound.m.
51{
52 BOOL OK = YES;
53
56
57 if (OK)
58 {
59 self = [super init];
60 if (
nil ==
self) OK = NO;
61 }
62
63 if (OK)
64 {
71 [self rewind];
72 }
73
74 if (!OK)
75 {
76 [self release];
78 }
79 return self;
80}
#define OOAL_STREAM_CHUNK_SIZE
OOALSoundDecoder * decoder
◆ name
◆ rewind
◆ soundBuffer
Reimplemented from OOSound.
Definition at line 1 of file OOALStreamedSound.m.
97{
98 size_t transferred = [decoder streamToBuffer:_buffer];
100 {
101
103 }
104
105 ALuint buffer;
106 ALint error;
107 OOAL(alGenBuffers(1,&buffer));
108 if ((error = alGetError()) != AL_NO_ERROR)
109 {
111 return 0;
112 }
113 else
114 {
116 {
118 }
119 else
120 {
122 }
123 return buffer;
124 }
125}
#define OOLog(class, format,...)
static NSString *const kOOLogSoundLoadingError
◆ soundIncomplete
◆ _buffer
◆ _name
◆ _reachedEnd
◆ _sampleRate
◆ _size
◆ _stereo
◆ decoder
The documentation for this class was generated from the following files: