This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
audio: add Sampler::StopSample() method.
legacy
Sam Hocevar
sam
12 years ago
parent
578ec1d413
commit
4bf349fe81
2 changed files
with
7 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
src/sampler.cpp
+1
-0
src/sampler.h
+ 6
- 0
src/sampler.cpp
View File
@@ -60,5 +60,11 @@ void Sampler::PlaySample(int id)
sample->Play();
}
void Sampler::StopSample(int id)
{
Sample *sample = (Sample *)data->samples.GetEntity(id - 1);
sample->Stop();
}
} /* namespace lol */
+ 1
- 0
src/sampler.h
View File
@@ -29,6 +29,7 @@ public:
static void Deregister(int id);
static void PlaySample(int id);
static void StopSample(int id);
private:
Sampler() {}
Write
Preview
Loading…
Cancel
Save