Changeset 2493


Ignore:
Timestamp:
Feb 25, 2013, 2:59:26 PM (6 years ago)
Author:
sam
Message:

audio: add Sampler::StopSample() method.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sampler.cpp

    r2183 r2493  
    6161}
    6262
     63void Sampler::StopSample(int id)
     64{
     65    Sample *sample = (Sample *)data->samples.GetEntity(id - 1);
     66    sample->Stop();
     67}
     68
    6369} /* namespace lol */
    6470
  • trunk/src/sampler.h

    r2436 r2493  
    3030
    3131    static void PlaySample(int id);
     32    static void StopSample(int id);
    3233
    3334private:
Note: See TracChangeset for help on using the changeset viewer.