Oolite
Loading...
Searching...
No Matches
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 72 of file OOALSoundDecoder.m.

72 :(NSString*)inPath
73{
74 if ([[inPath pathExtension] isEqual:@"ogg"]) {
75 return [[[OOALSoundVorbisCodec alloc] initWithPath:inPath] autorelease];
76 }
77 return nil;
78}
return nil

References nil.

◆ initWithPath:

- (id) initWithPath: (NSString*) inPath

Reimplemented in OOALSoundVorbisCodec.

Definition at line 60 of file OOALSoundDecoder.m.

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

References nil.

◆ isStereo

- (BOOL) isStereo

Reimplemented in OOALSoundVorbisCodec.

Definition at line 100 of file OOALSoundDecoder.m.

101{
102 return NO;
103}

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 115 of file OOALSoundDecoder.m.

116{
117 return @"";
118}

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 85 of file OOALSoundDecoder.m.

85 :(char**)outBuffer withFrameCount:(size_t*)outSize
86{
87 if (NULL != outBuffer)
88 *outBuffer = NULL;
89 if (NULL != outSize)
90 *outSize = 0;
91
92 return NO;
93}

Referenced by OOALBufferedSound::initWithDecoder:.

Here is the caller graph for this function:

◆ reset

- (void) reset

Reimplemented in OOALSoundVorbisCodec.

Definition at line 110 of file OOALSoundDecoder.m.

111{
112 // nothing
113}

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 105 of file OOALSoundDecoder.m.

106{
107 return 0;
108}

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 95 of file OOALSoundDecoder.m.

96{
97 return 0;
98}

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 80 of file OOALSoundDecoder.m.

80 :(char*)ioBuffer
81{
82 return 0;
83}

Referenced by OOALStreamedSound::soundBuffer.

Here is the caller graph for this function:

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