Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (31 sloc) 734 Bytes
//--------------------------------------------------\\
// pineapple tracker song format
//--------------------------------------------------//
#include <stdlib.h>
#include "filetypes.h"
pineapple_tune *pt_empty_tune(void){
pineapple_tune *t;
t = (pineapple_tune*) malloc(sizeof(pineapple_tune));
t->type = 3;
t->filename = "untitled";
t->callbacktime = 240;
t->tempo = 120;
t->comment = "";
t->trackpos = 0;
t->songpos = 0; //ht_PosNr
t->songlen = sizeof(t->sng) / sizeof(t->sng[0]);
t->instrx = 0;
t->instry = 0;
t->instroffs = 0;
t->songx = 0;
t->songy = 0;
t->songoffs = 0;
t->trackx = 0;
t->tracky = 0;
t->trackoffs = 0;
t->currtrack = 0;
t->currinstr = 0;
t->currtab = 0;
t->saved = 1;
return t;
}