IBM Books

Image, Audio, and Video Extenders Administration and Programming

NumAudioTracks


Image Audio Video
  X X

Returns the number of audio tracks in a video or MIDI audio.

Include file

audio
dmbaudio.h

video
dmbvideo.h

Syntax

>>-NumAudioTracks--(--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)

Number of audio tracks in the video or MIDI audio (SMALLINT). Returns a null value for audio in other formats.

Examples

Get the names of any video files from the video column of the employee table that do not contain any audio tracks:

EXEC SQL BEGIN DECLARE SECTION;
 char hvVid_fname[251];
EXEC SQL END DECLARE SECTION;
 
EXEC SQL SELECT FILENAME(VIDEO)
     INTO :hvVid_fname
     FROM EMPLOYEE
     WHERE NUMAUDIOTRACKS(VIDEO) = 0;


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