IBM Books

Image, Audio, and Video Extenders Administration and Programming

SamplingRate


Image Audio Video
  X X

Returns the sampling rate of a WAVE or AIFF audio, or of an audio track in a video, in number of samples per second.

Include file

audio
dmbaudio.h

video
dmbvideo.h

Syntax

>>-SamplingRate--(--handle--)----------------------------------><
 

Parameters (data type)

handle (DB2AUDIO or DB2VIDEO)
Column name or host variable that contains the handle of the audio or video.

Return values (data type)

Sampling rate of video or WAVE or AIFF audio (INTEGER). Returns a null value for audio in other formats.

Examples

Get the file name of all audios from the sound column of the employee table whose sampling rate is 44.1 KHz:

EXEC SQL BEGIN DECLARE SECTION;
 char hvAud_fname[251];
EXEC SQL END DECLARE SECTION;
 
EXEC SQL SELECT FILENAME (SOUND)
     INTO :hvAud_fname
     FROM EMPLOYEE
     WHERE SAMPLINGRATE(SOUND) = 44100;


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]