IBM Books

Image, Audio, and Video Extenders Administration and Programming

BytesPerSec


Image Audio Video
  X  

Returns the data transfer rate, in average bytes per second, for a WAVE audio.

Include file

dmbaudio.h

Syntax

>>-BytesPerSec--(--handle--)-----------------------------------><
 

Parameters (data type)

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

Return values (data type)

Data transfer rate (INTEGER). Returns a null value for audio in other formats.

Examples

Get the file name of all audios stored in the sound column of the employee table whose transfer rate, in average bytes per second, is less than 44100:

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 BYTESPERSEC(SOUND) < 44100;


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