You must be logged in to do that.

SetSongPos

SetSongPos
void SetSongPos(int h, int p)

Documentation

set the current position song 'h' to position 'p'

Example Usage

setSongPos(mysong, 20);
Talkback

Post a new comment?

Talkback #1 written by KingOfTheNorth on 2010-08-31.

This function goes by the bytes as the marker for the position. Using a song with 78,712 bytes as an example:

SetSongPos(mysong, (78712/2)); // sets the song at its halfway point

This code sets the position of the song at its halfway point of 39356 (being 78712 divided by 2 is 39356).

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.