Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __thiscall OrgData::PlayData(OrgData *this)
- {
- OrgData *this2; // [sp+0h] [bp-8h]@1
- signed int i; // [sp+4h] [bp-4h]@6
- signed int j; // [sp+4h] [bp-4h]@25
- this2 = this;
- if ( bFadeout && Volume )
- Volume -= 2;
- if ( Volume < 0 )
- Volume = 0;
- for ( i = 0; i < 8; ++i )
- {
- if ( np[i] && play_p == np[i]->x )
- {
- if ( !mute[i] && np[i]->y != 255 )
- {
- PlayOrganObject(np[i]->y, -1, i, this2->info.tdata[i].freq);
- now_leng[i] = np[i]->length;
- }
- if ( np[i]->pan != 255 )
- ChangeOrganPan(np[i]->y, np[i]->pan, i);
- if ( np[i]->volume != 255 )
- TrackVol[i] = np[i]->volume;
- np[i] = np[i]->to;
- }
- if ( !now_leng[i] )
- PlayOrganObject(0, 2, i, this2->info.tdata[i].freq);
- if ( now_leng[i] > 0 )
- --now_leng[i];
- if ( np[i] )
- ChangeOrganVolume(np[i]->y, Volume * TrackVol[i] / 127, i);
- }
- for ( j = 8; j < 16; ++j )
- {
- if ( np[j] && play_p == np[j]->x )
- {
- if ( np[j]->y != 255 && !mute[j] )
- PlayDramObject(np[j]->y, 1, j - 8);
- if ( np[j]->pan != 255 )
- ChangeDramPan(np[j]->pan, j - 8);
- if ( np[j]->volume != 255 )
- TrackVol[j] = np[j]->volume;
- np[j] = np[j]->to;
- }
- if ( np[j] )
- ChangeDramVolume(Volume * TrackVol[j] / 127, j - 8);
- }
- if ( ++play_p >= this2->info.end_x )
- {
- play_p = this2->info.repeat_x;
- OrgData::SetPlayPointer(this2, play_p);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement