TvqInitialize

(C)Copyright 2000 NTT Cyber Space Laboratories

# `TvqInitialize()`

name
  `TvqInitialize` - Initialization of TwinVQ decoder
style
  `#include "twinvq.h"
  #include "tvqdec.h"
  void TvqInitialize(headerInfo *setupInfo, INDEX *index, int errorMessageBoxSwitch);
  `
function
  `TvqInitialize()` initializes TwinVQ decoder according to `setupInfo` and initializes the struct INDEX used for information transfer.
  It displays an error massage box if errorMessageBoxSwitch has other than 0.
return value
  error code defined below. These are defined in twinvq.h.

      	TVQ_NO_ERROR      = 0	/* no error */
      	TVQ_ERROR         = 1	/* unspecified error */
      	TVQ_ERROR_VERSION = 2	/* invalid version name */
      	TVQ_ERROR_CHANNEL = 3	/* invalid channel mode */
      	TVQ_ERROR_MODE    = 4	/* invalid combination of sampling and bit rate */
      	TVQ_ERROR_PARAM   = 5	/* invalid internal parameter */