/***************************************************************************
* NAME: VARS16.C
** COPYRIGHT:
** "Copyright (c) 1994, by FORTE
**
** "This software is furnished under a license and may be used,
** copied, or disclosed only in accordance with the terms of such
** license and with the inclusion of the above copyright notice.
** This software or any other copies thereof may not be provided or
** otherwise made available to any other person. No title to and
** ownership of the software is hereby transfered."
****************************************************************************
* CREATION DATE: 01/01/94
*--------------------------------------------------------------------------*
* VERSION DATE NAME DESCRIPTION
*> 1.0 01/01/94 Original
***************************************************************************/
#include <stdio.h>
#include <dos.h>
#include <conio.h>
#include "forte.h"
#include "osproto.h"
#include "codecos.h"
#include "codec.h"
CODEC_FREQ codec_freq[14] = {
{5, 0x00|XTAL2},
{6, 0x0E|XTAL2},
{8, 0x00|XTAL1},
{9, 0x0E|XTAL1},
{11,0x02|XTAL2},
{16,0x02|XTAL1},
{18,0x04|XTAL2},
{22,0x06|XTAL2},
{27,0x04|XTAL1},
{32,0x06|XTAL1},
{33,0x0C|XTAL2},
{37,0x08|XTAL2},
{44,0x0A|XTAL2},
{48,0x0C|XTAL1}
};
ULTRA16_DATA _codec_data = {
0, /* flags; */
0, /* type */
CODEC_BASE, /* base_port; */
CODEC_BASE+CODEC_ADDR,
CODEC_BASE+CODEC_DATA,
CODEC_BASE+CODEC_STATUS,
CODEC_BASE+CODEC_PIO,
3, /* play_chan; */
3, /* rec_chan; */
5, /* irq_num; */
0, /* setup image */
NULL, /* old_codec_vec; */
default_func, /* playback handler */
default_func, /* capture handler */
default_func, /* timer handler */
};
IMAGE16 _image_codec = {
0x00, /* frequency */
0x00, /* frequency */
0x00, /* lic = 0x00; */
0x00, /* ric = 0x00; */
0x80, /* la1ic = 0x80; */
0x80, /* ra1ic = 0x80; */
0x80, /* la2ic = 0x80; */
0x80, /* ra2ic = 0x80; */
0x80, /* loc = 0x80; */
0x80, /* roc = 0x80; */
0x20, /* pdfr = 0x00; */
0x08, /* ic = 0x08; */
0x00, /* pc = 0x00; */
0x00, /* ti = 0x00; */
0x40, /* mi = 0x40; */
0x00, /* lbc = 0x00; */
0x00, /* pbru = 0x00; */
0x00, /* pbrl = 0x00; */
0x80, /* afei */
0x01, /* afeii */
0x00, /* llic */
0x00, /* rlic */
0x00, /* tlb */
0x00, /* thb */
0x00, /* afs */
0x00, /* mioc */
0x20, /* cdfr */
0x00, /* cbru */
0x00, /* cbrl */
};