---
name: "NJB_Queue_Track"
section: "3"
platform: "linux"
package: "libnjb1-doc"
version: "1.1-2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/NJB_Queue_Track"
---

# NJB\_Queue\_Track(3)

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)](/NJB_Play_Track/3.md) 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.
