Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SoundCreate(3)		    Library Functions Manual		  SoundCreate(3)

Name
     SoundCreate - create a description of an audio file.

Synopsis
     #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,  SoundFileFor-
	       matVoc,	SoundFileFormatWave, SoundFileFormatAiff, and SoundFile-
	       FormatSvx.

     data_format
	       Specifies the format of the audio data.	Currently, the following
	       formats are defined: AuFormatULAW8, AuFormatLinearUnsigned8,  Au-
	       FormatLinearSigned8, AuFormatLinearSigned16MSB, AuFormatLinearUn-
	       signed16MSB,   AuFormatSignedLinear16LSB,  and  AuFormatLinearUn-
	       signed16LSB.

     num_tracksSpecifies 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

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

See Also
     SoundCloseFile, SoundOpenFileForReading, SoundOpenFileWriting,

     audiolib - Network Audio System C Language Interface

				      1.9.4			  SoundCreate(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=SoundCreate&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help