MCPcopy Create free account
hub / github.com/ActiveState/code / play_next_sound

Function play_next_sound

recipes/JavaScript/578517_Music_player/recipe-578517.js:1296–1315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1294
1295
1296function play_next_sound()
1297{
1298 if (m_play_list_ptr>=0)
1299 {
1300 // play the next song on the playlist.
1301 m_play_list_ptr++;
1302 if (m_play_list_ptr<a_playlist.length)
1303 {
1304 highlight_playlist_item(m_play_list_ptr);
1305 change_sound(a_playlist[m_play_list_ptr]);
1306 }
1307 else
1308 {
1309 exit_playlist();
1310 }
1311 }
1312
1313 if (m_play_list_ptr<=-1)
1314 change_sound(-1); // play a random sound.
1315}
1316
1317
1318function stop_sound()

Callers 1

dec_timerFunction · 0.85

Calls 3

highlight_playlist_itemFunction · 0.85
change_soundFunction · 0.85
exit_playlistFunction · 0.85

Tested by

no test coverage detected