// request the sound be played until free() is called. returns immediately. bool JMusicSound::Loop(JSContext* UNUSED(cx), uintN UNUSED(argc), jsval* UNUSED(argv)) { #if CONFIG2_AUDIO if ( g_SoundManager ) { ISoundItem* aSnd = g_SoundManager->LoadItem(m_FileName); if (aSnd != NULL) aSnd->PlayAsMusic(); } #endif // CONFIG2_AUDIO return true; }