Commit Graph

52 Commits

Author SHA1 Message Date
rocky
c8000d60e9 _cdio_osx.c: first attempt at issuing general SCSI-MMC passthrough command.
others: small changes.
2004-08-16 00:52:53 +00:00
rocky
ff65f7133f First attempt at getting drive capabilities. 2004-08-15 16:15:40 +00:00
rocky
887a3254c5 Compilation fix. 2004-08-15 13:53:03 +00:00
rocky
7bba78007e Compilaton fixes. 2004-08-13 11:54:15 +00:00
rocky
79ea450a56 Add type for holding MCN and ISRC. Add type for session
Replace magic constant 100 with CDIO_MAX_TRACK+1 where appropriate.

_cdio_osx: save session number and presumably some tighter coding.
nrg.c: make sure we add zero byte to end of MCN.
2004-06-27 15:29:20 +00:00
rocky
8b04edf042 Use .adr rather than session number to determine if we've got a valid track. 2004-06-26 01:20:41 +00:00
rocky
db0fc7dd4a Non-critical cdio_error's changed to cdio_warn's or cdio_info as more
appropriate.
2004-06-24 07:51:51 +00:00
rocky
19514ac59e Clarification of 0xA0, 0xA2 and 0xAA. 2004-06-23 00:37:19 +00:00
thesin
49264257f4 Changed a few warns to debugs for release version 2004-06-22 15:05:39 +00:00
thesin
96480b82ca Remove noisy debug code, or at least hide it for now 2004-06-22 04:35:50 +00:00
thesin
040e90eff8 OSX support works...now to get into the eject and drive caps next 2004-06-22 04:31:17 +00:00
rocky
3ebf6cc067 correct some of the many bugs (I hope) 2004-06-22 03:38:59 +00:00
rocky
1028538fef Ignore info where session is 0. At least for now. 2004-06-17 10:41:05 +00:00
rocky
e4df5a7623 Make sure we get TOC info for a single session. For new we can really
only deal with a single-session CD.
2004-06-17 03:24:39 +00:00
rocky
2bb59a4147 Note OSX LBA is cdio LSN. 2004-06-17 01:20:40 +00:00
rocky
4c910a3e0a Don't need to set i_leadout twice. 2004-06-17 01:16:50 +00:00
rocky
48adac95ad getFirstrack_osx and getNumberOfTracks_osx do duplicate scanning that
could be done when looking for the leadout track. Revised
code to removes these routines, consolidating the searching in one
loop.

To be *very* conservative, a first loop finds the positions of the
leadout, first track and last track. This code then doesn't assume
that the track numbers are in order.  They could be given track 3, 2,
and then 1 or 2, 3, and then 1. Another loop then maps
first_track..last_track 0..number_of_tracks - 1
2004-06-17 01:15:17 +00:00
thesin
dc413f1582 Works with all burnt media, bought media is different some how. Still better then it was since it didn't work at all. 2004-06-16 04:51:29 +00:00
rocky
e4971ecac5 Wait a minute - the 0xa2 *is* larger than CDIO_CD_MAX_TRACKS. But I guess
we still should consider ptrackDescriptors[i_descriptors].
2004-06-14 08:18:57 +00:00
rocky
8406974f64 Probably more correct. 2004-06-13 21:43:41 +00:00
rocky
eed4e28a19 Back off of testing for unread TOC. Probably a good idea to do lazy
TOC reading.
2004-06-06 11:25:13 +00:00
rocky
0bb7fadf26 More work on removing assumption that first_track is 1. 2004-06-06 10:50:55 +00:00
rocky
c92b8a21c4 # include vs #include a problem? 2004-06-02 07:40:13 +00:00
thesin
08d7ceae64 Few fixed for the big rename and fixed a long standing mmmm thing that bothered me, -I-I../lib ;) 2004-06-02 04:52:55 +00:00
rocky
afe62ef6bb Compilation fixes. 2004-06-02 01:01:18 +00:00
rocky
5e2642af4b Remove some of the bogus assume 1 is first track.
Renamings: env -> user_data
	   _obj -> env
2004-06-02 00:43:53 +00:00
thesin
48b9dd9306 Now knows XA and CD-i tracks, thought I'm not sure it's working 100%, reads the correct amount of tracks, still need to fix the MCN code. 2004-06-01 16:02:46 +00:00
thesin
ff7a568da5 Now knows the difference between DATA and Audio tracks on OSX, also temp change to eject command till I find the right way to implement it in code. 2004-06-01 03:44:55 +00:00
thesin
b0416a3eff Fix compile on OS X 10.3, should work on 10.2 and 10.3, still testing for 10.1, OS X Drivers still incomplete this is just to fix compiling. 2004-05-31 15:21:48 +00:00
rocky
f858aedc98 We shouldn't terminate if we can't get an MCN. 2004-05-27 10:47:07 +00:00
rocky
d31f2f4489 deal with disc-image device properly. 2004-05-07 09:55:54 +00:00
rocky
fa0c34a015 Typo. 2004-05-07 03:04:01 +00:00
rocky
b691fb63f3 Compilation fix. 2004-05-01 01:05:26 +00:00
rocky
7f8cefed11 Add cdio_open_am to allow specifying an access method use for
reading/controlling CD.
2004-04-30 06:54:15 +00:00
rocky
6a0f9e4686 Add const on get_mcn prototype and initialization of get_drive_cap in
func structure
2004-04-25 17:05:07 +00:00
rocky
34cc0fb16f Missing a couple of const's in get_mcn when prototype changed.
cdio.h: doc fix.
2004-04-25 16:38:06 +00:00
rocky
3ecd485a7d More regularization of names. Warning: untested on freebsd and osx. 2004-04-25 15:41:26 +00:00
rocky
515f6fbea5 Fix compilation bug. 2004-03-20 04:16:59 +00:00
rocky
21e6af7f72 Best guess right now at what might work for mode1/mode2. 2004-03-09 02:55:37 +00:00
rocky
71b9f29929 Compilation bugs. 2003-10-13 23:41:42 +00:00
rocky
5ddc3d4e14 OSX fixups and #define bugs from thedj. 2003-10-08 01:06:19 +00:00
rocky
5bf9f94b89 Get Media Catalog Number - courtesy of thedj! 2003-10-05 14:55:34 +00:00
rocky
b2656fd6ce Default logger now allows level to be set and we use a reasonable setting, e.g. no DEBUG 2003-10-05 14:47:45 +00:00
rocky
1419c9b7e2 Wrong define. Thanks thedj! 2003-10-04 20:11:27 +00:00
rocky
6450be398b Add get_mcn, although it really only works on GNU/Linux right now. 2003-09-25 09:38:15 +00:00
rocky
dd05f2e6ad Change interface for read_audio_sectors. 2003-09-20 12:34:02 +00:00
rocky
13424fc893 More lba, lsn confusion. 2003-09-15 01:37:32 +00:00
rocky
fbde711bfb Changes from Derk-Jan Hartman <thedj@users.sourceforge.net> for
OSX support.
2003-09-14 17:04:48 +00:00
rocky
bf6bbbc6b1 Loop went the wrong way. 2003-09-14 15:26:31 +00:00
rocky
e3ca45dcf2 Go back to 0xa2 for "leadout" 2003-09-14 14:44:26 +00:00