void process() { activateSound(); currentSel = 0; play(); while (!terminate) { if (isPlaying) { midiWriter.setStop(false); SongCreator *songCreator = new SongCreator(); songCreator->createSong(seed, tempo, structureScript, arrangementScript, &midiWriter); // osSignalWait(0x1, osWaitForever); while (midiWriter.getQueueSize() > 0) { wait_ms(100); } delete songCreator; setRandomSeed(); } else { wait_ms(100); } } }
void process() { activateSound(); while (!terminate) { wait_ms(100); } }
int CSound::playSpeech(CDialogueFile *dialogueFile, int speechId, CProximity &prox) { CWaveFile *waveFile = loadSpeech(dialogueFile, speechId); if (!waveFile) return -1; prox._soundDuration = waveFile->getDuration(); activateSound(waveFile, prox._disposeAfterUse); return _soundManager.playSound(*waveFile, prox); }
void process() { activateSound(); currentSel = 0; play(); while (!terminate) { wait_ms(100); processMidiFile(NULL); } }
int CSound::playSound(const CString &name, CProximity &prox) { CWaveFile *waveFile = loadSound(name); if (!waveFile) return -1; prox._soundDuration = waveFile->getDuration(); if (prox._soundType != Audio::Mixer::kPlainSoundType) waveFile->_soundType = prox._soundType; activateSound(waveFile, prox._disposeAfterUse); return _soundManager.playSound(*waveFile, prox); }
void process() { activateSound(); play(); curLeadNote = 0; curBassNote = 0; curLeadTime = 0; curBassTime = 0; while (!terminate) { playMusic(); drop(); wait_ms(500); } }