man NJB_Queue_Track (Fonctions bibliothèques) - Queue a track for play on the NJB
NAME
NJB_Queue_Track - Queue a track for play on the NJB
LIBRARY
libnjb
SYNOPSIS
#include <sys/types.h> #include <libnjb.h>
extern int njb_error
int NJB_Queue_Track (njb_t *njb, u_int32_t trackid)
DESCRIPTION
This function queues a track for play on the NJB. The ID of the desired track is passed in the trackid parameter. Note that playback must have been previously started via the NJB_Play_Track(3) function. Tracks are played in the order in which they are queued.
RETURN VALUES
NJB_Queue_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 queue request.
- EO_USBCTL
- An I/O failure occurred on the control pipe.