Image | Audio | Video |
---|---|---|
X | X |
Returns the number of bits of data used to represent each sample of WAVE or AIFF audio in an audio, or in an audio track of a video.
Include file
Syntax
>>-BitsPerSample--(--handle--)---------------------------------><
Parameters (data type)
Return values (data type)
Number of bits of data used to represent each sample of video or WAVE or AIFF audio (SMALLINT). Returns a null value for audio in other formats
Examples
Get the file name of all WAVE audios stored in the sound column of the employee table whose bits per sample is equal to 8:
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)='WAVE' AND BITSPERSAMPLE(SOUND) = 8;