VM Labs SDK Sample Code |
\vmlabs\sample\audio\NISE-Streaming-Jukebox |
Copyright © 2000-2001 VM Labs, Inc. All Rights Reserved |
March 2, 2001 |
This sample demonstrates how to use streaming audio. This sample is configured to play audio from a specific DVD disc. If you do not have the correct disc, you will not be able to run this program properly without first modifying the source code. Quite frankly, we don't expect you to have the right disc. It's expected that you will modify this sample to match whatever DVD data disc you do have.
Filename | Description |
makefile | MAKEFILE for building and running sample program. |
nuon-dat.h | Include file containing the appropriate definitions for the size and location of each streaming audio track, relative to the beginning of the NUON.DAT file on your DVD disc. |
stream.c | Main program code for sample. |
By default, this program is configured to look at the MEDIA_DVD device, which refers to the built-in DVD drive on your NUON development system. You must have a DVD disc with an appropriate data file located in the NUON directory. If you don't have one, please see the "NISE-Streaming" sample instead.
The proper format for audio streaming is:
32000 hz sample rate
16-bit stereo
Big-endian data format (aka "Motorola" format)
Raw PCM data, with stereo channels interleaved together.
You can create the proper format with many applications that edit digital audio samples, such as Sound Forge and Cool Edit Pro.
Before attempting to load or run any of the SDK samples, make sure you have first read the Hitchhiker's Guide To NUON document.
After that, if you're still having trouble getting this sample program to work, click here to request assistance from developer support.