paranoia.h, p_block.c: Add paranoia_set_range and correct #define in paranoia.h

common_interface.c: try to give credit where it is due.
This commit is contained in:
rocky
2007-09-28 12:09:38 +00:00
parent a3b8f5fc70
commit cddf780736
3 changed files with 15 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
/*
$Id: paranoia.h,v 1.13 2006/10/27 10:38:41 rocky Exp $
$Id: paranoia.h,v 1.14 2007/09/28 12:09:38 rocky Exp $
Copyright (C) 2004, 2005, 2006 Rocky Bernstein <rocky@panix.com>
Copyright (C) 2004, 2005, 2006, 2007 Rocky Bernstein <rocky@gnu.org>
Copyright (C) 1998 Monty xiphmont@mit.edu
This program is free software; you can redistribute it and/or modify
@@ -183,7 +183,7 @@ extern "C" {
#define paranoia_read cdio_paranoia_read
#define paranoia_read_limited cdio_paranoia_read_limited
#define paranoia_overlapset cdio_paranoia_overlapset
#define paranoia_set_range cdio_paranoia_read_overlapset
#define paranoia_set_range cdio_paranoia_set_range
#endif /*DO_NOT_WANT_PARANOIA_COMPATIBILITY*/
#ifdef __cplusplus

View File

@@ -1,5 +1,5 @@
/*
$Id: common_interface.c,v 1.15 2007/09/28 00:28:18 rocky Exp $
$Id: common_interface.c,v 1.16 2007/09/28 12:09:39 rocky Exp $
Copyright (C) 2004, 2005, 2007 Rocky Bernstein <rocky@gnu.org>
Copyright (C) 1998, 2002 Monty monty@xiph.org
@@ -186,8 +186,9 @@ data_bigendianp(cdrom_drive_t *d)
/*! Here we fix up a couple of things that will never happen. yeah,
right.
The multisession stuff is from Hannu's code; it assumes it knows
the leadout/leadin size.
The multisession stuff is from Hannu code; it assumes it knows the
leadout/leadin size. [I think Hannu refers to Hannu Savolainen
from GNU/Linux Kernel code.]
@return -1 if we can't get multisession info, 0 if there is one
session only or the last session LBA is the same as the first audio

View File

@@ -1,7 +1,7 @@
/*
$Id: p_block.c,v 1.10 2006/01/05 21:58:52 rocky Exp $
$Id: p_block.c,v 1.11 2007/09/28 12:09:39 rocky Exp $
Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com>
Copyright (C) 2004, 2005, 2007 Rocky Bernstein <rocky@gnu.org>
Copyright (C) 1998 Monty xiphmont@mit.edu
This program is free software; you can redistribute it and/or modify
@@ -452,3 +452,9 @@ paranoia_init(cdrom_drive_t *d)
return(p);
}
void paranoia_set_range(cdrom_paranoia *p, long start, long end)
{
p->cursor = start;
p->current_firstsector = start;
p->current_lastsector = end;
}