home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wvis0626.zip / warpvision_20020626.zip / audio / adecode.h < prev    next >
Text File  |  2002-06-19  |  1KB  |  41 lines

  1. /*
  2.  * WarpVision audio
  3.  *
  4.  * Copyleft Alex Strelnikov.
  5.  *
  6.  * WarpVision is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * (at your option) any later version.
  10.  *
  11.  * WarpVision is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  19.  *
  20. */
  21.  
  22. #define RESAMPLE_NONE       0
  23. #define RESAMPLE_TO_44100   1
  24. #define RESAMPLE_TO_48000   2
  25.  
  26. typedef struct audio_header_t {
  27.  
  28.     int bits_per_sample;
  29.     int sample_rate;
  30.     int resample_rate;
  31.     int bit_rate;
  32.     int channels;
  33.     int format;
  34.     int dart_buffer_size;
  35.     int audio_buffer_used;
  36.  
  37. } audio_header_t;
  38.  
  39. int audio_init(sh_audio_t *sh_audio, int, int);
  40. int audio_decode(sh_audio_t *sh_audio, int init_flag);
  41.