~jezra/sap+/0.5.0

« back to all changes in this revision

Viewing changes to tracklist.vala

  • Committer: jezra
  • Date: 2009-09-13 21:59:23 UTC
  • Revision ID: jezra@jezra.net-20090913215923-0tr1c3qovhk1m1yw
betterĀ fileĀ error

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
                this.available_indexes = new Array<int>(false,false,(uint)sizeof(int));
54
54
                //initialize the played indexes
55
55
                this.played_indexes = new Array<int>(false,false,(uint)sizeof(int));
 
56
                //initialize the bad indexes
 
57
                this.bad_indexes = new Array<int>(false,false,(uint)sizeof(int) );
56
58
                //init the track_table
57
59
                track_table = new HashTable<uint,string>(null,null);
58
60
                //set the initial track index to below the first track index.
103
105
        {
104
106
                //the current track is bad, add it's index to the badindexes
105
107
                this.bad_indexes.append_val(current_track_index);       
106
 
                //remove the index from the available indexes
107
 
                this.available_indexes.index(current_track_index);
 
108
                //remove the index from the track hash table
 
109
                track_table.remove(current_track_index);
 
110
                //this.available_indexes.index(current_track_index);
108
111
                //get the next track
109
112
                get_next_track();
110
113
        }