Browse Source

audio: add Sampler::StopSample() method.

legacy
Sam Hocevar sam 12 years ago
parent
commit
4bf349fe81
2 changed files with 7 additions and 0 deletions
  1. +6
    -0
      src/sampler.cpp
  2. +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() {}


Loading…
Cancel
Save