Image | Audio | Video |
---|---|---|
X | X |
Returns the sampling rate of a WAVE or AIFF audio, or of an audio track in a video, in number of samples per second.
Include file
Syntax
>>-SamplingRate--(--handle--)----------------------------------><
Parameters (data type)
Return values (data type)
Sampling rate of video or WAVE or AIFF audio (INTEGER). Returns a null value for audio in other formats.
Examples
Get the file name of all audios from the sound column of the employee table whose sampling rate is 44.1 KHz:
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 SAMPLINGRATE(SOUND) = 44100;