New Features Incubator

Discuss general Uzebox topics here: features, wish list. nice to have, etc.

What feature would you most like to see first?

SD Card Interface
35
64%
Universal Serial Joystick Interface
8
15%
Ethernet Interface
10
18%
Wireless Joystick
2
4%
 
Total votes: 55

User avatar
uze6666
Site Admin
Posts: 4821
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: New Features Incubator

Post by uze6666 »

I'm pretty sure the current engine supports single shot songs if you don't use loop markers or the switches in the midiconv tool. In megatris, during game over, such a song is played. It uses a meta data event 0x2f that is at the end of the midi data stream.

Code: Select all

       while(currDeltaTime==nextDeltaTime){

                        c1=pgm_read_byte(songPos++);
                        
                        if(c1==0xff){
                                //META data type event
                                c1=pgm_read_byte(songPos++);

                                
                                if(c1==0x2f){ //end of song
                                        playSong=false;
                                        break;  
User avatar
D3thAdd3r
Posts: 3293
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: New Features Incubator

Post by D3thAdd3r »

Hmm wow you are totally right :oops: I'm not sure what was going on then, unless I missed the last 2 bytes 0x2f,0x00 when I copy/pasted by hand.
Post Reply