84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
music(OFString *name)
{
if (nosound)
return;
stopsound();
if (soundvol && musicvol) {
@autoreleasepool {
OFString *path =
[OFString stringWithFormat:@"packages/%@", name];
OFIRI *IRI = [Cube.sharedInstance.gameDataIRI
IRIByAppendingPathComponent:path];
#ifdef USE_MIXER
if ((mod = Mix_LoadMUS(
|
>
>
|
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
music(OFString *name)
{
if (nosound)
return;
stopsound();
if (soundvol && musicvol) {
@autoreleasepool {
name = [name stringByReplacingOccurrencesOfString:@"\\"
withString:@"/"];
OFString *path =
[OFString stringWithFormat:@"packages/%@", name];
OFIRI *IRI = [Cube.sharedInstance.gameDataIRI
IRIByAppendingPathComponent:path];
#ifdef USE_MIXER
if ((mod = Mix_LoadMUS(
|
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
i++;
}
if (snames == nil)
snames = [[OFMutableArray alloc] init];
[snames addObject:name];
samples.add(NULL);
return samples.length() - 1;
}
COMMAND(registersound, ARG_1EST)
void
|
|
>
|
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
i++;
}
if (snames == nil)
snames = [[OFMutableArray alloc] init];
[snames addObject:[name stringByReplacingOccurrencesOfString:@"\\"
withString:@"/"]];
samples.add(NULL);
return samples.length() - 1;
}
COMMAND(registersound, ARG_1EST)
void
|