Oolite 1.91.0.7668-250429-8542c40
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOALSoundDecoder Class Reference

#include <OOALSoundDecoder.h>

+ Inheritance diagram for OOALSoundDecoder:
+ Collaboration diagram for OOALSoundDecoder:

Instance Methods

(id) - initWithPath:
 
(BOOL) - readCreatingBuffer:withFrameCount:
 
(size_t) - streamToBuffer:
 
(size_t) - sizeAsBuffer
 
(BOOL) - isStereo
 
(long- sampleRate
 
(void) - reset
 
(NSString *) - name
 

Class Methods

(OOALSoundDecoder *) + codecWithPath:
 

Detailed Description

Definition at line 37 of file OOALSoundDecoder.h.

Method Documentation

◆ codecWithPath:

+ (OOALSoundDecoder *) codecWithPath: (NSString *) inPath

Definition at line 77 of file OOALSoundDecoder.m.

77 :(NSString *)inPath
78{
79 if ([[inPath pathExtension] isEqual:@"ogg"])
80 {
81 return [[[OOALSoundVorbisCodec alloc] initWithPath:inPath] autorelease];
82 }
83 return nil;
84}
return nil

References nil.

◆ initWithPath:

- (id) initWithPath: (NSString *) inPath

Reimplemented in OOALSoundVorbisCodec.

Definition at line 63 of file OOALSoundDecoder.m.

63 :(NSString *)inPath
64{
65 [self release];
66 self = nil;
67
68 if ([[inPath pathExtension] isEqual:@"ogg"])
69 {
70 self = [[OOALSoundVorbisCodec alloc] initWithPath:inPath];
71 }
72
73 return self;
74}

References nil.

◆ isStereo

- (BOOL) isStereo

Reimplemented in OOALSoundVorbisCodec.

Definition at line 108 of file OOALSoundDecoder.m.

109{
110 return NO;
111}

References isStereo.

Referenced by OOALBufferedSound::initWithDecoder:, OOALStreamedSound::initWithDecoder:, and isStereo.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ name

- (NSString *) name

Reimplemented in OOALSoundVorbisCodec.

Definition at line 126 of file OOALSoundDecoder.m.

127{
128 return @"";
129}

References name.

Referenced by OOALBufferedSound::initWithDecoder:, OOALStreamedSound::initWithDecoder:, and name.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readCreatingBuffer:withFrameCount:

- (BOOL) readCreatingBuffer: (char **) outBuffer
withFrameCount: (size_t *) outSize 

Reimplemented in OOALSoundVorbisCodec.

Definition at line 93 of file OOALSoundDecoder.m.

93 :(char **)outBuffer withFrameCount:(size_t *)outSize
94{
95 if (NULL != outBuffer) *outBuffer = NULL;
96 if (NULL != outSize) *outSize = 0;
97
98 return NO;
99}

Referenced by OOALBufferedSound::initWithDecoder:.

+ Here is the caller graph for this function:

◆ reset

- (void) reset

Reimplemented in OOALSoundVorbisCodec.

Definition at line 120 of file OOALSoundDecoder.m.

121{
122 // nothing
123}

References reset.

Referenced by reset, and OOALStreamedSound::rewind.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sampleRate

- (long) sampleRate

Reimplemented in OOALSoundVorbisCodec.

Definition at line 114 of file OOALSoundDecoder.m.

115{
116 return 0;
117}

References long(), and sampleRate.

Referenced by OOALBufferedSound::initWithDecoder:, OOALStreamedSound::initWithDecoder:, and sampleRate.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sizeAsBuffer

- (size_t) sizeAsBuffer

Reimplemented in OOALSoundVorbisCodec.

Definition at line 102 of file OOALSoundDecoder.m.

103{
104 return 0;
105}

References sizeAsBuffer.

Referenced by sizeAsBuffer.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ streamToBuffer:

- (size_t) streamToBuffer: (char *) buffer

Reimplemented in OOALSoundVorbisCodec.

Definition at line 87 of file OOALSoundDecoder.m.

87 :(char *)ioBuffer
88{
89 return 0;
90}

Referenced by OOALStreamedSound::soundBuffer.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: