()
| 1294 | |
| 1295 | |
| 1296 | function 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 | |
| 1318 | function stop_sound() |
no test coverage detected