Oolite 1.91.0.7644-241112-7f5034b
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 53 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

◆ initWithPath:

- (id) initWithPath: (NSString *) inPath

Reimplemented in OOALSoundVorbisCodec.

Definition at line 53 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}

◆ isStereo

- (BOOL) isStereo

Reimplemented in OOALSoundVorbisCodec.

Definition at line 53 of file OOALSoundDecoder.m.

109{
110 return NO;
111}

◆ name

- (NSString *) name

Reimplemented in OOALSoundVorbisCodec.

Definition at line 53 of file OOALSoundDecoder.m.

127{
128 return @"";
129}

◆ readCreatingBuffer:withFrameCount:

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

Reimplemented in OOALSoundVorbisCodec.

Definition at line 53 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}

◆ reset

- (void) reset

Reimplemented in OOALSoundVorbisCodec.

Definition at line 53 of file OOALSoundDecoder.m.

121{
122 // nothing
123}

◆ sampleRate

- (long) sampleRate

Reimplemented in OOALSoundVorbisCodec.

Definition at line 53 of file OOALSoundDecoder.m.

115{
116 return 0;
117}

◆ sizeAsBuffer

- (size_t) sizeAsBuffer

Reimplemented in OOALSoundVorbisCodec.

Definition at line 53 of file OOALSoundDecoder.m.

103{
104 return 0;
105}

◆ streamToBuffer:

- (size_t) streamToBuffer: (char *) buffer

Reimplemented in OOALSoundVorbisCodec.

Definition at line 53 of file OOALSoundDecoder.m.

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

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