Reference

NJB_Play_Track(3)

Play a track on the NJB

NAME

NJB_Play_Track - Play a track on the NJB

LIBRARY

libnjb

SYNOPSIS

#include <sys/types.h> #include <libnjb.h>

extern int njb_error

int NJB_Play_Track (njb_t *njb, u_int32_t trackid)

DESCRIPTION

This function clears the active play list on the NJB, and then starts playback of the specified track. The ID of the desired track is passed in the trackid parameter.

RETURN VALUES

NJB_Play_Track returns 0 on success. If a failure occurs, it returns -1 and sets njb_error

EO_BADSTATUS

The NJB returned a non-zero status in response to the playback request.

EO_USBCTL

An I/O failure occurred on the control pipe.