riptracks.h
资源名称:xtractor.zip [点击查看]
上传用户:xmgzy123
上传日期:2007-01-07
资源大小:373k
文件大小:2k
源码类别:
SCSI/ASPI
开发平台:
WINDOWS
- /*
- * riptracks.h - Copyright (C) 1999,2000 Jay A. Key
- *
- * Interface to riptracks.c
- *
- **********************************************************************
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
- #ifndef _RIPTRACKS_H_INC
- #define _RIPTRACKS_H_INC
- #include <windows.h>
- #include <stdio.h>
- #include <time.h>
- #include "wrqueue.h"
- #define WM_TRACKDONE (WM_USER+9090)
- /*
- * WAV file header format
- */
- typedef struct
- {
- BYTE riff[4]; /* must be "RIFF" */
- DWORD len; /* #bytes + 44 - 8 */
- BYTE cWavFmt[8]; /* must be "WAVEfmt" */
- DWORD dwHdrLen;
- WORD wFormat;
- WORD wNumChannels;
- DWORD dwSampleRate;
- DWORD dwBytesPerSec;
- WORD wBlockAlign;
- WORD wBitsPerSample;
- BYTE cData[4]; /* must be "data" */
- DWORD dwDataLen; /* #bytes */
- } PACKED WAVHDR, *PWAVHDR, *LPWAVHDR;
- typedef struct
- {
- FILE *fpOut;
- WRQUEUE q;
- DWORD startFrame;
- DWORD endFrame;
- DWORD trackLen;
- DWORD totalWritten;
- int idx;
- time_t tstart, tnow;
- double pctDone, pctLeft;
- DWORD hrs, min, sec;
- BOOL bForceRipExit;
- BOOL bForceEncExit;
- BOOL bNormalExit;
- int status;
- HWND hDlg;
- HANDLE aHandles[2]; // Rip = 0, Enc = 1
- HANDLE hRipCancel;
- CRITICAL_SECTION cs;
- FILE *fpWavMirror;
- BOOL bOldLame;
- } ENCODETHREAD, FAR *LPENCODETHREAD;
- #define EST_SUCCESS 0
- #define EST_ABORTED 1
- #define EST_ERROR 2
- #endif