GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SOUNDTOH(1) FreeBSD General Commands Manual SOUNDTOH(1)

soundtoh - convert a sound file to a C language header file

soundtoh filename

The soundtoh program will convert a sound file in a format supported by the Network Audio System library into a header file suitable for use with the #include C pre-processor directive. The resulting output is directed to the standard output. The output will look something like:
/* bark */
#define barkDataFormat	AuFormatULAW8
#define barkSampleRate	8000
#define  barkNumTracks	1
#define barkNumSamples \
    (sizeof(barkSamples) / sizeof(barkSamples[0]) / barkNumTracks)
static char *barkComment = "terrier bark";
static unsigned char barkSamples[] =
{
    0x57, 0x52, 0x51, 0x55, 0x5d, 0x72, 0xe5, 0xdc, 
    0xdc, 0xe2, 0xed, 0x76, 0x61, 0x5b, 0x59, 0x5e,
                       .
                       .
                       .
    0x66, 0xf0, 0xde, 0xe0, 0xf1, 0x6d, 0x67, 0x6a, 
    0x77, 0xee, 0xe5, 0xe6, 0xf1, 0x71, 0x6b, 
};
16-bit samples will be converted appropriately depending upon the endianess of the host machine.

nas(1)

Copyright 1993, 1994 Network Computing Devices, Inc.

Greg Renda, Network Computing Devices, Inc.
1.9.4

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.