(C)Copyright 2000 NTT Cyber Space Laboratories

TwinVQ inquiry functions


name
TvqCheckVersion(), TvqGetSamplingRate(), TvqGetBitRate(), TvqGetFrameSize(), TvqGetNumChannels, TvqGetNumFixedBitsPerFrame(), TvqGetSetupInfo(), TvqGetConfInfo(), TvqGetModuleVersion

style
#include "twinvq.h"
#include "tvqdec.h"
int TvqCheckVersion(char *strTvqID);
float TvqGetSamplingRate();
int TvqGetBitRate();
int TvqGetFrameSize();
int TvqGetNumChannels();
int TvqGetNumFixedBitsPerFrame();
void TvqGetSetupInfo(headerInfo *sinfo);
void TvqGetConfInfo(tvqConfInfo *cf);
void TvqGetModuleVersion(char *versionName);

function
TvqCheckVersion() shows version IDs and version names as follows.
charactersversion numberversion name
"TWIN97012000"V2 (= 0)version 2
othersTVQ_UNKNOWN_VERSION (= -1)not supported

TvqGetSamplingRate() provides sampling frequency in Hz (float).
TvqGetBitRate() provides total bit rate in kbit/s (int).
TvqGetFrameSize() provides frame length in sample.
TvqGetNumChannels() provides number of channels.
TvqGetSeupInfo Provides TwinVQ setup information and stores it in sinfo.
TvqGetConfInfo() provides TwinVQ configuration and stores in cf.
TvqEncGetModuleVersion() returns version ID of the software.
sinfo is a pointer for headerInfo .
cf is a pointer for tvqConfInfo . tvqConfInfo has following members.