Ignore:
Timestamp:
Jan 24, 2011, 1:52:54 PM (10 years ago)
Author:
sam
Message:

Play a few additional sounds (whip and pop).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/mash.cpp

    r278 r279  
    3131private:
    3232    Game *game;
     33    int duh, pop;
    3334    Piece *pieces[8 * 8];
    3435    Int2 cells[8 * 8];
     
    5455    data->game = game;
    5556    Ticker::Ref(game);
     57    data->duh = Sampler::Register(WAV_DUH);
     58    data->pop = Sampler::Register(WAV_POP);
    5659    data->npieces = 0;
    5760    data->state = MashData::WAIT;
     
    9194        if (allready)
    9295        {
     96            Sampler::PlaySample(data->pop);
    9397            for (int n = 0; n < data->npieces; n++)
    9498                data->pieces[n]->Pop();
     
    137141    for (int n = 0; n < data->npieces; n++)
    138142        Ticker::Unref(data->pieces[n]);
     143    Sampler::Deregister(data->duh);
     144    Sampler::Deregister(data->pop);
    139145    Ticker::Unref(data->game);
    140146    delete data;
Note: See TracChangeset for help on using the changeset viewer.