Old 10-22-2014, 12:28 PM   #1
cheyrn
Human being with feelings
 
Join Date: Oct 2014
Posts: 67
Default append a track?

The only function I see that seems likely is InsertTrackAtIndex. But, I don't notice it having inserted a track. For example:

InsertTrackAtIndex(7, true);

when I have 38 tracks, seems to do nothing.

If I can fix whatever I am doing wrong, then "insert" isn't ever going to append a track, right?

How do I append a track?
cheyrn is offline   Reply With Quote
Old 10-22-2014, 12:49 PM   #2
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

This should work:
Code:
InsertTrackAtIndex(7, 1);
TrackList_AdjustWindows(0); // refresh track list
spk77 is offline   Reply With Quote
Old 10-22-2014, 01:34 PM   #3
cheyrn
Human being with feelings
 
Join Date: Oct 2014
Posts: 67
Default

Thank you.

And, it looks like insert can append:

Code:
InsertTrackAtIndex(GetNumTracks(), 1);
cheyrn is offline   Reply With Quote
Old 10-22-2014, 01:40 PM   #4
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Quote:
Originally Posted by cheyrn View Post
Thank you.

And, it looks like insert can append:

Code:
InsertTrackAtIndex(GetNumTracks(), 1);
That's right - that would insert a new track at the end.
spk77 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.