TEDPlayer(const string &fileName) { LOGD("Trying to play TED music"); haveSound = false; counter = 0; audio = new PluginAudio(); audio->ted = machineInit(44100, 24); tedplayMain(fileName.c_str(), audio); //audio->sleep(300); //audio->ted->putKey(1); setMeta("songs", 10); // "game", track0->game, // "composer", track0->author, // "copyright", track0->copyright, // "length", track0->length > 0 ? track0->length / 1000 : 0, // "sub_title", track0->song, // "format", track0->system, // "songs", gme_track_count(emu) //); }
void ExceptionLocal::init(VPNum vpnum, MemoryMgrPrimitiveKern *memory) { uval space; vp = vpnum; machineInit(vp, memory); enum {EXCEPTION_STACK_SIZE = (1 * PAGE_SIZE)}; memory->alloc(space, EXCEPTION_STACK_SIZE, PAGE_SIZE); exceptionStack = space + EXCEPTION_STACK_SIZE; enum {DEBUG_STACK_SIZE = (2 * PAGE_SIZE)}; memory->alloc(space, DEBUG_STACK_SIZE, PAGE_SIZE); mainDebugStack = space + DEBUG_STACK_SIZE; memory->alloc(space, DEBUG_STACK_SIZE, PAGE_SIZE); auxDebugStack = space + DEBUG_STACK_SIZE; currentDebugStack = mainDebugStack; exceptionMsgMgr = NULL; hwPerfMonRep = NULL; serverCDA = NULL; kernelTimer.init(); dispatchQueue.init(vp, memory); ipcTargetTable.init(memory); ipcRetryManager.init(); if (vp == 0) { memory->alloc(space, Scheduler::VPLimit*sizeof(RemoteIPCBuffer *), 8); OldRemoteIPCBuffers = (RemoteIPCBuffer **) space; for (VPNum i = 0; i < Scheduler::VPLimit; i++) { OldRemoteIPCBuffers[i] = NULL; } } }