Commit a3e27393 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

New Wine internal interface for handling CD Rom (especially audio CD

ROM).
parent f861e277
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
/*
* Sample MCI CDAUDIO Wine Driver for Linux
*
* Copyright 1994 Martin Ayotte
* Copyright 1999 Eric Pouech
*/
#include <stdlib.h>
#include <unistd.h>
#include "winbase.h"
#ifndef __WINE_CDROM_H__
#define __WINE_CDROM_H__
#ifdef HAVE_LINUX_CDROM_H
# include <linux/cdrom.h>
#endif
#ifdef HAVE_LINUX_UCDROM_H
# include <linux/ucdrom.h>
#endif
#ifdef HAVE_SYS_CDIO_H
# include <sys/cdio.h>
#endif
typedef struct {
int unixdev;
#if defined(linux)
struct cdrom_subchnl sc;
#elif defined(__FreeBSD__) || defined(__NetBSD__)
struct cd_sub_channel_info sc;
#endif
int cdaMode;
UINT16 nCurTrack;
DWORD dwCurFrame;
UINT16 nTracks;
UINT16 nFirstTrack;
UINT16 nLastTrack;
DWORD dwTotalLen;
LPDWORD lpdwTrackLen;
LPDWORD lpdwTrackPos;
LPBYTE lpbTrackFlags;
DWORD dwFirstOffset;
} WINE_CDAUDIO;
#define WINE_CDA_DONTKNOW 0x00
#define WINE_CDA_NOTREADY 0x01
#define WINE_CDA_OPEN 0x02
#define WINE_CDA_PLAY 0x03
#define WINE_CDA_STOP 0x04
#define WINE_CDA_PAUSE 0x05
int CDAUDIO_Open(WINE_CDAUDIO* wcda);
int CDAUDIO_Close(WINE_CDAUDIO* wcda);
int CDAUDIO_Reset(WINE_CDAUDIO* wcda);
int CDAUDIO_Play(WINE_CDAUDIO* wcda, DWORD start, DWORD stop);
int CDAUDIO_Stop(WINE_CDAUDIO* wcda);
int CDAUDIO_Pause(WINE_CDAUDIO* wcda, int pauseOn);
int CDAUDIO_SetDoor(WINE_CDAUDIO* wcda, int open);
UINT16 CDAUDIO_GetNumberOfTracks(WINE_CDAUDIO* wcda);
BOOL32 CDAUDIO_GetTracksInfo(WINE_CDAUDIO* wcda);
BOOL32 CDAUDIO_GetCDStatus(WINE_CDAUDIO* wcda);
#define CDFRAMES_PERSEC 75
#define CDFRAMES_PERMIN 4500
#define SECONDS_PERMIN 60
#ifndef CDROM_DATA_TRACK
#define CDROM_DATA_TRACK 0x04
#endif
#endif
......@@ -7,6 +7,7 @@ MODULE = misc
C_SRCS = \
callback.c \
cdrom.c \
comm.c \
commdlg.c \
crtdll.c \
......
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment