SoundCreate(3nas)

SoundCreate3nas

Create a description of an audio file.

Usage

#include <audio/audiolib.h>

Sound SoundCreate(file_format, data_format, num_tracks, sample_rate, num_samples, comment)

int file_format;

int data_format;

int num_tracks;

int sample_rate;

int num_samples;

char *comment;

Arguments

file_format

Specifies the format of the audio file. Currently, the following file formats are supported: SoundFileFormatSnd, SoundFileFormatVoc, SoundFileFormatWave, SoundFileFormatAiff, and SoundFileFormatSvx.

data_format

Specifies the format of the audio data. Currently, the following formats are defined: AuFormatULAW8, AuFormatLinearUnsigned8, AuFormatLinearSigned8, AuFormatLinearSigned16MSB, AuFormatLinearUnsigned16MSB, AuFormatSignedLinear16LSB, and AuFormatLinearUnsigned16LSB.

num_tracks

Specifies the number of tracks in the audio data.

sample_rate

Specifies the sample rate of the audio data.

num_samples

Specifies the number of samples in the audio data.

comment

Overview

SoundCreate creates a SoundRec structure, initializes it with the specified values and returns a Sound (a pointer to the SoundRec structure) or NULL if there was an error.

Releases

14 releases since Debian 2.1 (Slink); the text changed 6 times.

  1. 2.1–2.2
  2. 3.0
  3. 3.1
  4. 4.0
  5. 5.0–6.0
  6. 7
  7. 8–13

From libaudio-dev 1.9.4-9 in Debian 13 (Trixie). Parsed by carta from the page's man source.