set music region
| 405 | |
| 406 | // set music region |
| 407 | void D3MusicSetRegion(int16_t region, bool immediate) { |
| 408 | if (Music_seq.GetCurrentRegion() != region) { |
| 409 | MusicAI.immediate_switch = immediate; |
| 410 | MusicAI.pending_region = region; |
| 411 | //@@ if (MusicAI.immediate_switch) { |
| 412 | //@@ // at next frame, start again! |
| 413 | //@@ Music_seq.Pause(); |
| 414 | //@@ MusicAI.restart_sequencer = true; |
| 415 | //@@ } |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | // retreives current region |
| 420 | int16_t D3MusicGetRegion() { return Music_seq.GetPlayingRegion(); } |
no test coverage detected