Image | Audio | Video |
---|---|---|
X | X |
Returns the number of bytes per sample in a WAVE audio, or in an audio track of a video. A WAVE audio can store its data using one byte per sample (8-bit mono, referred to as "byte aligned"), two bytes per sample (8-bit stereo or 16-bit mono, referred to as "word aligned"), or four bytes per sample (16-bit stereo, referred to as "double-word aligned").
Include file
Syntax
>>-AlignValue--(--handle--)------------------------------------><
Parameters (data type)
Return values (data type)
Bytes per sample value of WAVE audio, or audio track in a video (SMALLINT). Values can be:
Examples
Get the file name of all audios that are stored in the sound column of the employee table that are word aligned:
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 ALIGNVALUE(SOUND) = 2;
Find the bytes per sample value of an audio track in a video; the video is stored in the video column of the employee table for Anita Jones:
EXEC SQL BEGIN DECLARE SECTION; short hvAlign_val; EXEC SQL END DECLARE SECTION; EXEC SQL SELECT ALIGNVALUE(VIDEO) INTO :hvAlign_val FROM EMPLOYEE WHERE NAME='Anita Jones';