#include <OOALMusic.h>
Definition at line 37 of file OOALMusic.h.
◆ allocWithZone:
+ (id) allocWithZone: |
|
(NSZone *) | inZone |
|
|
implementation |
Definition at line 32 of file OOALMusic.m.
37 :(NSZone *)inZone
38{
39 return NSAllocateObject([
OOMusic class], 0, inZone);
40}
◆ dealloc
Definition at line 32 of file OOALMusic.m.
44{
46 [sound release];
47
48 [super dealloc];
49}
static OOMusic * sPlayingMusic
◆ initWithContentsOfFile:
- (id) initWithContentsOfFile: |
|
(NSString *) | inPath |
|
|
implementation |
Reimplemented from OOSound.
Definition at line 32 of file OOALMusic.m.
51 :(NSString *)inPath
52{
53 self = [super init];
55 {
58 {
59 [self release];
61 }
62 }
63
64 return self;
65}
◆ isPlaying
◆ musicGain
Definition at line 32 of file OOALMusic.m.
84{
86 return [sMusicSource gain];
87}
static OOSoundSource * sMusicSource
◆ musicSoundSource
◆ name
Reimplemented from OOSound.
Definition at line 32 of file OOALMusic.m.
69{
70 return [sound name];
71}
◆ playLooped:
- (void) playLooped: |
|
(BOOL) | looped |
|
Definition at line 32 of file OOALMusic.m.
90 :(BOOL)inLoop
91{
93 {
95 {
97 }
98 [sMusicSource stop];
99 [sMusicSource setLoop:inLoop];
100 [sMusicSource setSound:sound];
101 [sMusicSource play];
102
104 }
105}
◆ setMusicGain:
- (void) setMusicGain: |
|
(float) | newValue |
|
Definition at line 32 of file OOALMusic.m.
74 :(float)newValue
75{
77 {
78 [sMusicSource setGain:newValue];
79 }
80}
◆ stop
Definition at line 32 of file OOALMusic.m.
121{
123 {
125 [sMusicSource stop];
126 [sMusicSource setSound:nil];
127 }
128}
◆ sound
The documentation for this class was generated from the following files: