called by both the config-string parser and the console-command state-changer... This either changes the music right now (copying track structures etc), or leaves the new state as pending so it gets picked up by the general music player if in a transition that can't be overridden...
| 4324 | // so it gets picked up by the general music player if in a transition that can't be overridden... |
| 4325 | // |
| 4326 | static void S_SetDynamicMusicState( MusicState_e eNewState ) |
| 4327 | { |
| 4328 | if (eMusic_StateRequest != eNewState) |
| 4329 | { |
| 4330 | eMusic_StateRequest = eNewState; |
| 4331 | |
| 4332 | if (s_debugdynamic->integer) |
| 4333 | { |
| 4334 | const char *psNewStateString = Music_BaseStateToString( eNewState, qtrue ); |
| 4335 | psNewStateString = psNewStateString?psNewStateString:"<unknown>"; |
| 4336 | |
| 4337 | Com_Printf( S_COLOR_MAGENTA "S_SetDynamicMusicState( Request: \"%s\" )\n", psNewStateString ); |
| 4338 | } |
| 4339 | } |
| 4340 | } |
| 4341 | |
| 4342 | |
| 4343 | static void S_HandleDynamicMusicStateChange( void ) |
no test coverage detected