TwinVQ inquiry function

(C)Copyright 2000 NTT Cyber Space Laboratories

# TwinVQ inquiry function

modified on 12 Oct. 2000

name
  `TvqEncCheckVersion(), TvqEncGetSamplingRate(), TvqEncGetBitRate(), TvqEncGetFrameSize(), TvqEncGetNumChannels, TvqGetNumFixedBitsPerFrame(), TvqEncGetSetupInfo(), TvqEncGetConfInfo(), TvqEncGetNumPreCand(), TvqGetVersionID()` TvqGetModuleVersion( )- TwinVQ inquiry functions
style
  `#include "twinvq.h"
  #include "tvqenc.h"
  int TvqEncCheckVersion(char *strTvqID);
  float TvqEncGetSamplingRate();
  int TvqEncGetBitRate();
  int TvqEncGetFrameSize();
  int TvqEncGetNumChannels();
  int TvqEncGetNumFixedBitsPerFrame();
  void TvqEncGetSetupInfo(headerInfo *sinfo);
  void TvqEncGetConfInfo(tvqConfInfo *cf);
  int TvqGetVersionID(int versionNum, char *versionID);`
  `int TvqEncGetModuleVersion( char *versionName );`
  `
  `
function
  `TvqEncCheckVersion()` provides the version number corresponding to the input version ID character string as follows.

  character string | version number | version name
  "TWIN97012000" | V2 (= 0) | version 2
  others | TVQ_UNKNOWN_VERSION (= -1) | no support

  `TvqGetVersionID()` provides the version ID character string corresponding to the input version ID numbers (shown above) and returns 0. If input number is invalid, it returns 1 with empty string.
  `TvqEncGetSamplingRate()` provides sampling frequency in Hz (float).
  `TvqEncGetBitRate()` provides total bit rate in kbit/s (int).
  `TvqEncGetFrameSize()` provides frame length in sample.
  `TvqEncGetNumChannels()` provides number of channels.
  `TvqEncGetSeupInfo` Provides TwinVQ setup information and stores it in `sinfo`.
  `TvqEncGetConfInfo()` provides TwinVQ configuration and stores in `cf`.
  `TvqEncGetModuleVersion()` returns version ID of the software.
  `
  sinfo` is a pointer to the struct `headerInfo` consisting of the following members.
  `cf` is a pointer to the struct `tvqConfInfo`.