IBM Books

Image, Audio, and Video Extenders Administration and Programming

TicksPerSec


Image Audio Video
  X  

Returns the clock speed of a recorded MIDI audio, in ticks per second.

Include file

dmbaudio.h

Syntax

>>-TicksPerSec--(--handle--)-----------------------------------><
 

Parameters (data type)

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

Return values (data type)

Number of clock ticks per second of MIDI audio (SMALLINT). Returns a null value for audio in other formats.

Examples

Get the file names of all MIDI audios in the sound column of the employee table that were recorded at speeds less than 50 clock ticks per second:

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 FORMAT(SOUND)='MIDI'
      AND TICKSPERSEC(SOUND)<50;


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