SHARE
TWEET

Untitled

a guest Jun 19th, 2017 35 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function play (pStartSample : Number = 0, pLoops : uint = 0) : void {
  2.     _loopsToDo = pLoops;
  3.     _firstLoop = false;
  4.     _totalSamplesAfterComplete = 0;
  5.     _leftSamplesAfterComplete = 0;
  6.     _playingTimeAsked = pStartSample;
  7.     _playStartOffset = 0;
  8.     _numLoopsDone = 0;
  9.     _timeWhenSequencesCompleted = 0;
  10.     _masterSound.addEventListener(SampleDataEvent.SAMPLE_DATA, _sampleDataHandler, false, 0, true);
  11.     _masterSound.play(Samples.stereoSamplesToSeconds(pStartSample) * 1000);
  12.     dispatchEvent(new VirtualTimelineEvent(VirtualTimelineEvent.PLAY_START));
  13.    
  14.     _positionTimer.start ();
  15.     _timerPositionHandler();
  16. }
RAW Paste Data
Top