Functions | |
int | NJB_Play_Track (njb_t *njb, u_int32_t trackid) |
int | NJB_Queue_Track (njb_t *njb, u_int32_t trackid) |
int | NJB_Stop_Play (njb_t *njb) |
int | NJB_Pause_Play (njb_t *njb) |
int | NJB_Resume_Play (njb_t *njb) |
int | NJB_Seek_Track (njb_t *njb, u_int32_t position) |
int | NJB_Elapsed_Time (njb_t *njb, u_int16_t *elapsed, int *change) |
|
This function returns the elapsed time for the currently playing track on the device. Additionally, it signals if the track has changed, e.g. if the device has skipped to the next track in the queue. Currently, it may only be determined if the currently playing track in the Nomad's play queue has changed (or ended) from a previous call to NJB_Elapsed_Time, because the indicator is that the elapsed time goes from a greater number to a lower number. Typically, when the first (zeroth) track in the play queue ends, the elapsed time is set to zero, and the change bit is set. However, if the zeroth track is the only track on the play queue, it must be more than 1 second long and NJB_Elapsed_Time must have been called at least once after 1 second actually has elapsed to register the change (song end) on a subsequent call to NJB_Elapsed_Time. NOTE, the elapsed time will NOT always be zero when the change bit is set, as a call to NJB_Elapsed_Time may arrive late after a song has started. NOTE, after NJB_Play_Track is called an immediate call NJB_Elapsed_Time will not indicate change, even if there was a track playing previously. Obviously, this notification of change scheme is a flawed one, and some Nomad play queue management functions, such as finding out the actual trackid playing on the Nomad would be favored over this approach. One should not really rely too heavily on this approach.
|
|
This pauses the current playback of a track on the device.
|
|
This starts playing a certain track on the device.
|
|
This adds a track to the play queue of a device.
|
|
This resumes play of a track on the device after pause.
|
|
This seeks into an offset of the currenly playing track on the device. You can skip to an offset forward/backward in the currently playing file, given as milliseconds.
|
|
This stops playback of a track on the device.
|