Files
haiku-beta6/src/add-ons/kernel/file_systems/cdda/cdda.h
T
Axel Dörfler a0bc939256 * Correctly detect Enhanced CDs, and take their extra lead gap into account.
* This fixes bug #3025.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-28 19:28:02 +00:00

38 lines
853 B
C

/*
* Copyright 2007-2011, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef CDDA_H
#define CDDA_H
#include <scsi_cmds.h>
static const uint32 kFramesPerSecond = 75;
static const uint32 kFramesPerMinute = kFramesPerSecond * 60;
static const uint32 kFrameSize = 2352;
static const uint32 kDataTrackLeadGap = 11400;
static const uint8 kMaxTracks = 0x63;
struct cdtext {
cdtext();
~cdtext();
char *artist;
char *album;
char *genre;
char *titles[kMaxTracks];
char *artists[kMaxTracks];
uint8 track_count;
};
status_t read_cdtext(int fd, cdtext &text);
status_t read_table_of_contents(int fd, scsi_toc_toc *toc, size_t length);
status_t read_cdda_data(int fd, off_t endFrame, off_t offset, void *data,
size_t length, off_t bufferOffset, void *buffer, size_t bufferSize);
#endif // CDDA_H