---
name: "NJB_Play_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_Play_Track"
---

# 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.
