#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | burn_toc_entry |
Information about a track on a disc - this is from the q sub channel of the lead-in area of a disc. More... | |
struct | burn_source |
Data source interface for tracks. More... | |
struct | burn_drive_info |
Information on a drive in the system. More... | |
struct | burn_progress |
Operation progress report. More... | |
struct | burn_speed_descriptor |
Description of a speed capability as reported by the drive in conjunction with eventually loaded media. More... | |
struct | burn_multi_caps |
The reply structure for burn_disc_get_multi_caps(). More... | |
Defines | |
#define | BURN_CDROM 0 |
Session format for normal audio or data discs. | |
#define | BURN_CDI 0x10 |
Session format for obsolete CD-I discs. | |
#define | BURN_CDXA 0x20 |
Session format for CDROM-XA discs. | |
#define | BURN_POS_END 100 |
#define | BURN_MODE_BITS 127 |
Mask for mode bits. | |
#define | BURN_MODE0 (1 << 0) |
Track mode - mode 0 data 0 bytes of user data. | |
#define | BURN_MODE_RAW (1 << 1) |
Track mode - mode "raw" - all 2352 bytes supplied by app FOR DATA TRACKS ONLY! | |
#define | BURN_MODE1 (1 << 2) |
Track mode - mode 1 data 2048 bytes user data, and all the LEC money can buy. | |
#define | BURN_MODE2 (1 << 3) |
Track mode - mode 2 data defaults to formless, 2336 bytes of user data, unprotected | with a data form if required. | |
#define | BURN_FORM1 (1 << 4) |
Track mode modifier - Form 1, | with MODE2 for reasonable results 2048 bytes of user data, 4 bytes of subheader. | |
#define | BURN_FORM2 (1 << 5) |
Track mode modifier - Form 2, | with MODE2 for reasonable results lots of user data. | |
#define | BURN_AUDIO (1 << 6) |
Track mode - audio 2352 bytes per sector. | |
#define | BURN_4CH (1 << 7) |
Track mode modifier - 4 channel audio. | |
#define | BURN_COPY (1 << 8) |
Track mode modifier - Digital copy permitted, can be set on any track. | |
#define | BURN_PREEMPHASIS (1 << 9) |
Track mode modifier - 50/15uS pre-emphasis. | |
#define | BURN_SUBCODE_P16 (1 << 10) |
Input mode modifier - subcodes present packed 16. | |
#define | BURN_SUBCODE_P96 (1 << 11) |
Input mode modifier - subcodes present packed 96. | |
#define | BURN_SUBCODE_R96 (1 << 12) |
Input mode modifier - subcodes present raw 96. | |
#define | BURN_DRIVE_WHITELIST_LEN 255 |
Maximum number of particularly permissible drive addresses. | |
#define | BURN_DRIVE_ADR_LEN 1024 |
Maximum length+1 to expect with a drive device file address string. | |
#define | BURN_FORMAT_IS_UNFORMATTED 1 |
Possible formatting status values. | |
#define | BURN_FORMAT_IS_FORMATTED 2 |
#define | BURN_FORMAT_IS_UNKNOWN 3 |
#define | BURN_REASONS_LEN 4096 |
The length of a rejection reasons string for burn_precheck_write() and burn_write_opts_auto_write_type() . | |
#define | burn_header_version_major 1 |
These three release version numbers tell the revision of this header file and of the API it describes. | |
#define | burn_header_version_minor 1 |
#define | burn_header_version_micro 8 |
#define | BURN_MSGS_MESSAGE_LEN 4096 |
#define | LIBDAX_AUDIOXTR_STRLEN 4096 |
#define | Libburn_dummy_probe_write_modeS 1 |
Typedefs | |
typedef int(* | burn_abort_handler_t )(void *handle, int signum, int flag) |
The prototype of a handler function suitable for burn_set_signal_handling() Such a function has to return -2 if it does not want the process to exit with value 1. | |
Enumerations | |
enum | burn_write_types { BURN_WRITE_PACKET, BURN_WRITE_TAO, BURN_WRITE_SAO, BURN_WRITE_RAW, BURN_WRITE_NONE } |
Possible disc writing style/modes. More... | |
enum | burn_block_types { BURN_BLOCK_RAW0 = 1, BURN_BLOCK_RAW16 = 2, BURN_BLOCK_RAW96P = 4, BURN_BLOCK_RAW96R = 8, BURN_BLOCK_MODE1 = 256, BURN_BLOCK_MODE2R = 512, BURN_BLOCK_MODE2_PATHETIC = 1024, BURN_BLOCK_MODE2_LAME = 2048, BURN_BLOCK_MODE2_OBSCURE = 4096, BURN_BLOCK_MODE2_OK = 8192, BURN_BLOCK_SAO = 16384 } |
Data format to send to the drive. More... | |
enum | burn_disc_status { BURN_DISC_UNREADY, BURN_DISC_BLANK, BURN_DISC_EMPTY, BURN_DISC_APPENDABLE, BURN_DISC_FULL, BURN_DISC_UNGRABBED, BURN_DISC_UNSUITABLE } |
Possible status of the drive in regard to the disc in it. More... | |
enum | burn_source_status { BURN_SOURCE_OK, BURN_SOURCE_EOF, BURN_SOURCE_FAILED } |
Possible data source return values. More... | |
enum | burn_drive_status { BURN_DRIVE_IDLE, BURN_DRIVE_SPAWNING, BURN_DRIVE_READING, BURN_DRIVE_WRITING, BURN_DRIVE_WRITING_LEADIN, BURN_DRIVE_WRITING_LEADOUT, BURN_DRIVE_ERASING, BURN_DRIVE_GRABBING, BURN_DRIVE_WRITING_PREGAP, BURN_DRIVE_CLOSING_TRACK, BURN_DRIVE_CLOSING_SESSION, BURN_DRIVE_FORMATTING, BURN_DRIVE_READING_SYNC, BURN_DRIVE_WRITING_SYNC } |
Possible busy states for a drive. More... | |
Functions | |
int | burn_initialize (void) |
Initialize the library. | |
void | burn_finish (void) |
Shutdown the library. | |
int | burn_abort (int patience, int(*pacifier_func)(void *handle, int patience, int elapsed), void *handle) |
Abort any running drive operation and eventually call burn_finish(). | |
int | burn_abort_pacifier (void *handle, int patience, int elapsed) |
A pacifier function suitable for burn_abort. | |
void | burn_set_verbosity (int level) |
ts A61006 : This is for development only. | |
void | burn_set_scsi_logging (int flag) |
Enable resp. | |
void | burn_preset_device_open (int exclusive, int blocking, int abort_on_busy) |
Set parameters for behavior on opening device files. | |
void | burn_allow_untested_profiles (int yes) |
Allows the use of media types which are implemented in libburn but not yet tested. | |
int | burn_drive_scan_and_grab (struct burn_drive_info *drive_infos[], char *adr, int load) |
Aquire a drive with known device file address. | |
int | burn_drive_add_whitelist (char *device_address) |
Add a device to the list of permissible drives. | |
void | burn_drive_clear_whitelist (void) |
Remove all drives from whitelist. | |
int | burn_drive_scan (struct burn_drive_info *drive_infos[], unsigned int *n_drives) |
Scan for drives. | |
int | burn_drive_info_forget (struct burn_drive_info *drive_info, int force) |
Release memory about a single drive and any exclusive lock on it. | |
void | burn_drive_info_free (struct burn_drive_info drive_infos[]) |
When no longer needed, free a whole burn_drive_info array which was returned by burn_drive_scan(). | |
int | burn_drive_d_get_adr (struct burn_drive *drive, char adr[]) |
Inquire the device file address of the given drive. | |
int | burn_drive_get_adr (struct burn_drive_info *drive_info, char adr[]) |
Inquire the device file address of a drive via a given drive_info object. | |
int | burn_drive_is_enumerable_adr (char *adr) |
Evaluate whether the given address would be a drive device file address which could be listed by a run of burn_drive_scan(). | |
int | burn_drive_convert_fs_adr (char *path, char adr[]) |
Try to convert a given existing filesystem address into a drive device file address. | |
int | burn_drive_convert_scsi_adr (int bus_no, int host_no, int channel_no, int target_no, int lun_no, char adr[]) |
Try to convert a given SCSI address of bus,host,channel,target,lun into a drive device file address. | |
int | burn_lookup_device_link (char *dev_adr, char link_adr[], char *dir_adr, char **templ, int num_templ, int flag) |
Try to convert a given drive device file address into the address of a symbolic link that points to this drive address. | |
int | burn_drive_obtain_scsi_adr (char *path, int *bus_no, int *host_no, int *channel_no, int *target_no, int *lun_no) |
Try to obtain bus,host,channel,target,lun from path. | |
int | burn_drive_grab (struct burn_drive *drive, int load) |
Grab a drive. | |
int | burn_drive_probe_cd_write_modes (struct burn_drive_info *drive_info) |
int | burn_drive_snooze (struct burn_drive *d, int flag) |
Calm down or alert a drive. | |
int | burn_drive_re_assess (struct burn_drive *d, int flag) |
Re-assess drive and media status. | |
void | burn_drive_release (struct burn_drive *drive, int eject) |
Release a drive. | |
int | burn_drive_leave_locked (struct burn_drive *d, int flag) |
Like burn_drive_release() but keeping the drive tray closed and its eject button disabled. | |
enum burn_disc_status | burn_disc_get_status (struct burn_drive *drive) |
Returns what kind of disc a drive is holding. | |
int | burn_disc_pretend_blank (struct burn_drive *drive) |
WARNING: This revives an old bug-like behavior that might be dangerous. | |
int | burn_disc_pretend_full (struct burn_drive *drive) |
WARNING: This overrides the safety measures against unsuitable media. | |
int | burn_disc_read_atip (struct burn_drive *drive) |
Reads ATIP information from inserted media. | |
int | burn_drive_get_start_end_lba (struct burn_drive *drive, int *start_lba, int *end_lba, int flag) |
Returns start and end lba of the media which is currently inserted in the given drive. | |
char * | burn_guess_cd_manufacturer (int m_li, int s_li, int f_li, int m_lo, int s_lo, int f_lo, int flag) |
Guess the manufacturer name of CD media from the ATIP addresses of lead-in and lead-out. | |
int | burn_disc_get_cd_info (struct burn_drive *d, char disc_type[80], unsigned int *disc_id, char bar_code[9], int *app_code, int *valid) |
Retrieve some media information which is mainly specific to CD. | |
int | burn_disc_get_bd_spare_info (struct burn_drive *d, int *alloc_blocks, int *free_blocks, int flag) |
Read the current usage of the eventual BD Spare Area. | |
int | burn_disc_get_phys_format_info (struct burn_drive *d, int *disk_category, char **book_name, int *part_version, int *num_layers, int *num_blocks, int flag) |
Retrieve some media information which is mainly specific to media of the DVD-R family: DVD-R , DVD-RW , DVD-R DL , HD DVD-R Currently the information cannot be retrieved from other media types. | |
int | burn_disc_track_lba_nwa (struct burn_drive *d, struct burn_write_opts *o, int trackno, int *lba, int *nwa) |
Read start lba and Next Writeable Address of a track from media. | |
int | burn_disc_next_track_is_damaged (struct burn_drive *d, int flag) |
Tells whether a previous attempt to determine the Next Writeable Address of the upcomming track reveiled that the READ TRACK INFORMATION Damage Bit is set for this track, resp. | |
int | burn_disc_close_damaged (struct burn_write_opts *o, int flag) |
Try to close the last track and session of media which have bit0 set in the return value of call burn_disc_next_track_is_damaged(). | |
int | burn_disc_get_msc1 (struct burn_drive *d, int *start_lba) |
Read start lba of the first track in the last complete session. | |
off_t | burn_disc_available_space (struct burn_drive *d, struct burn_write_opts *o) |
Return the best possible estimation of the currently available capacity of the media. | |
int | burn_disc_get_profile (struct burn_drive *d, int *pno, char name[80]) |
Tells the MMC Profile identifier of the loaded media. | |
int | burn_disc_get_media_id (struct burn_drive *d, char **product_id, char **media_code1, char **media_code2, char **book_type, int flag) |
Obtain product id and standards defined media codes. | |
char * | burn_guess_manufacturer (int profile_no, char *manuf_code, char *media_code, int flag) |
Guess the name of a manufacturer by profile number, manufacturer code and media code. | |
int | burn_disc_erasable (struct burn_drive *d) |
Tells whether a disc can be erased or not. | |
enum burn_drive_status | burn_drive_get_status (struct burn_drive *drive, struct burn_progress *p) |
Returns the progress and status of a drive. | |
burn_write_opts * | burn_write_opts_new (struct burn_drive *drive) |
Creates a write_opts struct for burning to the specified drive. | |
burn_drive * | burn_write_opts_get_drive (struct burn_write_opts *opts) |
Inquires the drive associated with a burn_write_opts object. | |
void | burn_write_opts_free (struct burn_write_opts *opts) |
Frees a write_opts struct created with burn_write_opts_new. | |
burn_read_opts * | burn_read_opts_new (struct burn_drive *drive) |
Creates a read_opts struct for reading from the specified drive must be freed with burn_read_opts_free. | |
void | burn_read_opts_free (struct burn_read_opts *opts) |
Frees a read_opts struct created with burn_read_opts_new. | |
void | burn_disc_erase (struct burn_drive *drive, int fast) |
Erase a disc in the drive. | |
void | burn_disc_format (struct burn_drive *drive, off_t size, int flag) |
Format media for use with libburn. | |
int | burn_disc_get_formats (struct burn_drive *drive, int *status, off_t *size, unsigned *bl_sas, int *num_formats) |
Inquire the formatting status, the associated sizes and the number of available formats. | |
int | burn_disc_get_format_descr (struct burn_drive *drive, int index, int *type, off_t *size, unsigned *tdp) |
Inquire parameters of an available media format. | |
void | burn_disc_read (struct burn_drive *drive, const struct burn_read_opts *o) |
Read a disc from the drive and write it to an fd pair. | |
int | burn_precheck_write (struct burn_write_opts *o, struct burn_disc *disc, char reasons[BURN_REASONS_LEN], int silent) |
Examines a completed setup for burn_disc_write() whether it is permissible with drive and media. | |
void | burn_disc_write (struct burn_write_opts *o, struct burn_disc *disc) |
Write a disc in the drive. | |
int | burn_drive_set_stream_recording (struct burn_drive *drive, int recmode, int start, int flag) |
Control stream recording during the write run and eventually set the start LBA for stream recording. | |
void | burn_drive_cancel (struct burn_drive *drive) |
Cancel an operation on a drive. | |
int | burn_drive_wrote_well (struct burn_drive *d) |
Inquire whether the most recent asynchronous media job was successful. | |
int | burn_msf_to_sectors (int m, int s, int f) |
Convert a minute-second-frame (MSF) value to sector count. | |
void | burn_sectors_to_msf (int sectors, int *m, int *s, int *f) |
Convert a sector count to minute-second-frame (MSF). | |
int | burn_msf_to_lba (int m, int s, int f) |
Convert a minute-second-frame (MSF) value to an lba. | |
void | burn_lba_to_msf (int lba, int *m, int *s, int *f) |
Convert an lba to minute-second-frame (MSF). | |
burn_disc * | burn_disc_create (void) |
Create a new disc. | |
void | burn_disc_free (struct burn_disc *d) |
Delete disc and decrease the reference count on all its sessions. | |
burn_session * | burn_session_create (void) |
Create a new session. | |
void | burn_session_free (struct burn_session *s) |
Free a session (and decrease reference count on all tracks inside). | |
int | burn_disc_add_session (struct burn_disc *d, struct burn_session *s, unsigned int pos) |
Add a session to a disc at a specific position, increasing the sessions's reference count. | |
int | burn_disc_remove_session (struct burn_disc *d, struct burn_session *s) |
Remove a session from a disc. | |
burn_track * | burn_track_create (void) |
Create a track (for TAO recording, or to put in a session). | |
void | burn_track_free (struct burn_track *t) |
Free a track. | |
int | burn_session_add_track (struct burn_session *s, struct burn_track *t, unsigned int pos) |
Add a track to a session at specified position. | |
int | burn_session_remove_track (struct burn_session *s, struct burn_track *t) |
Remove a track from a session. | |
void | burn_track_define_data (struct burn_track *t, int offset, int tail, int pad, int mode) |
Define the data in a track. | |
int | burn_track_set_byte_swap (struct burn_track *t, int swap_source_bytes) |
Define whether a track shall swap bytes of its input stream. | |
int | burn_track_set_cdxa_conv (struct burn_track *t, int value) |
Activates CD XA compatibility modes. | |
void | burn_track_set_isrc (struct burn_track *t, char *country, char *owner, unsigned char year, unsigned int serial) |
Set the ISRC details for a track. | |
void | burn_track_clear_isrc (struct burn_track *t) |
Disable ISRC parameters for a track. | |
void | burn_session_hide_first_track (struct burn_session *s, int onoff) |
Hide the first track in the "pre gap" of the disc. | |
burn_disc * | burn_drive_get_disc (struct burn_drive *d) |
Get the drive's disc struct - free when done. | |
enum burn_source_status | burn_track_set_source (struct burn_track *t, struct burn_source *s) |
Set the track's data source. | |
int | burn_track_set_default_size (struct burn_track *t, off_t size) |
Set a default track size to be used only if the track turns out to be of unpredictable length and if the effective write type demands a fixed size. | |
void | burn_source_free (struct burn_source *s) |
Free a burn_source (decrease its refcount and maybe free it). | |
burn_source * | burn_file_source_new (const char *path, const char *subpath) |
Creates a data source for an image file (and maybe subcode file). | |
int | burn_os_open_track_src (char *path, int open_flags, int flag) |
Opens a file with eventual acceleration preparations which may depend on the operating system and on compile time options of libburn. | |
void * | burn_os_alloc_buffer (size_t amount, int flag) |
Allocate a memory area that is suitable for reading with a file descriptor opened by burn_os_open_track_src(). | |
int | burn_os_free_buffer (void *buffer, size_t amount, int flag) |
Dispose a memory area which was obtained by burn_os_alloc_buffer(),. | |
burn_source * | burn_fd_source_new (int datafd, int subfd, off_t size) |
Creates a data source for an image file (a track) from an open readable filedescriptor, an eventually open readable subcodes file descriptor and eventually a fixed size in bytes. | |
burn_source * | burn_offst_source_new (struct burn_source *inp, struct burn_source *prev, off_t start, off_t size, int flag) |
Creates an offset source which shall provide a byte interval of a stream to its consumer. | |
burn_source * | burn_fifo_source_new (struct burn_source *inp, int chunksize, int chunks, int flag) |
Creates a fifo which acts as proxy for an already existing data source. | |
int | burn_fifo_inquire_status (struct burn_source *fifo, int *size, int *free_bytes, char **status_text) |
Inquires state and fill parameters of a fifo burn_source which was created by burn_fifo_source_new() . | |
void | burn_fifo_get_statistics (struct burn_source *fifo, int *total_min_fill, int *interval_min_fill, int *put_counter, int *get_counter, int *empty_counter, int *full_counter) |
Inquire various counters which reflect the fifo operation. | |
void | burn_fifo_next_interval (struct burn_source *fifo, int *interval_min_fill) |
Inquire the fifo minimum fill counter for intervals and reset that counter. | |
int | burn_fifo_peek_data (struct burn_source *fifo, char *buf, int bufsize, int flag) |
Obtain a preview of the first input data of a fifo which was created by burn_fifo_source_new(). | |
int | burn_fifo_fill (struct burn_source *fifo, int fill, int flag) |
Start the fifo worker thread and wait either until the requested number of bytes have arrived or until it becomes clear that this will not happen. | |
int | burn_track_set_size (struct burn_track *t, off_t size) |
Sets a fixed track size after the data source object has already been created. | |
int | burn_track_get_sectors (struct burn_track *) |
Tells how long a track will be on disc >>> NOTE: Not reliable with tracks of undefined length. | |
int | burn_track_get_counters (struct burn_track *t, off_t *read_bytes, off_t *written_bytes) |
Tells how many source bytes have been read and how many data bytes have been written by the track during burn. | |
void | burn_drive_set_speed (struct burn_drive *d, int read, int write) |
Sets drive read and write speed Note: "k" is 1000, not 1024. | |
int | burn_drive_set_buffer_waiting (struct burn_drive *d, int enable, int min_usec, int max_usec, int timeout_sec, int min_percent, int max_percent) |
Controls the behavior with writing when the drive buffer is suspected to be full. | |
void | burn_structure_print_disc (struct burn_disc *d) |
void | burn_structure_print_session (struct burn_session *s) |
void | burn_structure_print_track (struct burn_track *t) |
int | burn_write_opts_set_write_type (struct burn_write_opts *opts, enum burn_write_types write_type, int block_type) |
Sets the write type for the write_opts struct. | |
enum burn_write_types | burn_write_opts_auto_write_type (struct burn_write_opts *opts, struct burn_disc *disc, char reasons[BURN_REASONS_LEN], int flag) |
As an alternative to burn_write_opts_set_write_type() this function tries to find a suitable write type and block type for a given write job described by opts and disc. | |
void | burn_write_opts_set_toc_entries (struct burn_write_opts *opts, int count, struct burn_toc_entry *toc_entries) |
Supplies toc entries for writing - not normally required for cd mastering. | |
void | burn_write_opts_set_format (struct burn_write_opts *opts, int format) |
Sets the session format for a disc. | |
int | burn_write_opts_set_simulate (struct burn_write_opts *opts, int sim) |
Sets the simulate value for the write_opts struct . | |
int | burn_write_opts_set_underrun_proof (struct burn_write_opts *opts, int underrun_proof) |
Controls buffer underrun prevention. | |
void | burn_write_opts_set_perform_opc (struct burn_write_opts *opts, int opc) |
Sets whether to use opc or not with the write_opts struct. | |
void | burn_write_opts_set_has_mediacatalog (struct burn_write_opts *opts, int has_mediacatalog) |
void | burn_write_opts_set_mediacatalog (struct burn_write_opts *opts, unsigned char mediacatalog[13]) |
void | burn_write_opts_set_multi (struct burn_write_opts *opts, int multi) |
Sets the multi flag which eventually marks the emerging session as not being the last one and thus creating a BURN_DISC_APPENDABLE media. | |
void | burn_write_opts_set_start_byte (struct burn_write_opts *opts, off_t value) |
Sets a start address for writing to media and write modes which allow to choose this address at all (for now: DVD+RW, DVD-RAM, formatted DVD-RW). | |
void | burn_write_opts_set_fillup (struct burn_write_opts *opts, int fill_up_media) |
Caution: still immature and likely to change. | |
void | burn_write_opts_set_force (struct burn_write_opts *opts, int use_force) |
Eventually makes libburn ignore the failure of some conformance checks: - the check whether CD write+block type is supported by the drive - the check whether the media profile supports simulated burning. | |
void | burn_write_opts_set_stream_recording (struct burn_write_opts *opts, int value) |
Eventually makes use of the more modern write command AAh WRITE12 and sets the Streaming bit. | |
void | burn_write_opts_set_dvd_obs (struct burn_write_opts *opts, int obs) |
Overrides the write chunk size for DVD and BD media which is normally determined according to media type and setting of stream recording. | |
void | burn_write_opts_set_stdio_fsync (struct burn_write_opts *opts, int rythm) |
Sets the rythm by which stdio pseudo drives force their output data to be consumed by the receiving storage device. | |
void | burn_read_opts_set_raw (struct burn_read_opts *opts, int raw_mode) |
Sets whether to read in raw mode or not. | |
void | burn_read_opts_set_c2errors (struct burn_read_opts *opts, int c2errors) |
Sets whether to report c2 errors or not. | |
void | burn_read_opts_read_subcodes_audio (struct burn_read_opts *opts, int subcodes_audio) |
Sets whether to read subcodes from audio tracks or not. | |
void | burn_read_opts_read_subcodes_data (struct burn_read_opts *opts, int subcodes_data) |
Sets whether to read subcodes from data tracks or not. | |
void | burn_read_opts_set_hardware_error_recovery (struct burn_read_opts *opts, int hardware_error_recovery) |
Sets whether to recover errors if possible. | |
void | burn_read_opts_report_recovered_errors (struct burn_read_opts *opts, int report_recovered_errors) |
Sets whether to report recovered errors or not. | |
void | burn_read_opts_transfer_damaged_blocks (struct burn_read_opts *opts, int transfer_damaged_blocks) |
Sets whether blocks with unrecoverable errors should be read or not. | |
void | burn_read_opts_set_hardware_error_retries (struct burn_read_opts *opts, unsigned char hardware_error_retries) |
Sets the number of retries to attempt when trying to correct an error. | |
int | burn_drive_get_all_profiles (struct burn_drive *d, int *num_profiles, int profiles[64], char is_current[64]) |
Gets the list of profile codes supported by the drive. | |
int | burn_obtain_profile_name (int profile_code, char name[80]) |
Obtains the profile name associated with a profile code. | |
int | burn_drive_get_write_speed (struct burn_drive *d) |
Gets the maximum write speed for a drive and eventually loaded media. | |
int | burn_drive_get_min_write_speed (struct burn_drive *d) |
Gets the minimum write speed for a drive and eventually loaded media. | |
int | burn_drive_get_read_speed (struct burn_drive *d) |
Gets the maximum read speed for a drive. | |
int | burn_drive_get_speedlist (struct burn_drive *d, struct burn_speed_descriptor **speed_list) |
Obtain a copy of the current speed descriptor list. | |
int | burn_drive_get_best_speed (struct burn_drive *d, int speed_goal, struct burn_speed_descriptor **best_descr, int flag) |
Look up the fastest speed descriptor which is not faster than the given speed_goal. | |
int | burn_drive_free_speedlist (struct burn_speed_descriptor **speed_list) |
Dispose a speed descriptor list copy which was obtained by burn_drive_get_speedlist(). | |
int | burn_disc_get_multi_caps (struct burn_drive *d, enum burn_write_types wt, struct burn_multi_caps **caps, int flag) |
Allocates a struct burn_multi_caps (see above) and fills it with values which are appropriate for the drive and the loaded media. | |
int | burn_disc_free_multi_caps (struct burn_multi_caps **caps) |
Removes from memory a multi session info structure which was returned by burn_disc_get_multi_caps(). | |
void | burn_track_get_entry (struct burn_track *t, struct burn_toc_entry *entry) |
Gets a copy of the toc_entry structure associated with a track. | |
void | burn_session_get_leadout_entry (struct burn_session *s, struct burn_toc_entry *entry) |
Gets a copy of the toc_entry structure associated with a session's lead out. | |
burn_session ** | burn_disc_get_sessions (struct burn_disc *d, int *num) |
Gets an array of all the sessions for the disc THIS IS NO LONGER VALID AFTER YOU ADD OR REMOVE A SESSION. | |
int | burn_disc_get_sectors (struct burn_disc *d) |
burn_track ** | burn_session_get_tracks (struct burn_session *s, int *num) |
Gets an array of all the tracks for a session THIS IS NO LONGER VALID AFTER YOU ADD OR REMOVE A TRACK. | |
int | burn_session_get_sectors (struct burn_session *s) |
int | burn_track_get_mode (struct burn_track *track) |
Gets the mode of a track. | |
int | burn_session_get_hidefirst (struct burn_session *session) |
Returns whether the first track of a session is hidden in the pregap. | |
void | burn_version (int *major, int *minor, int *micro) |
Returns the library's version in its parts. | |
char * | burn_scsi_transport_id (int flag) |
Obtain the id string of the SCSI transport interface. | |
int | burn_msgs_set_severities (char *queue_severity, char *print_severity, char *print_id) |
Control queueing and stderr printing of messages from libburn. | |
int | burn_msgs_obtain (char *minimum_severity, int *error_code, char msg_text[], int *os_errno, char severity[]) |
Obtain the oldest pending libburn message from the queue which has at least the given minimum_severity. | |
int | burn_msgs_submit (int error_code, char msg_text[], int os_errno, char severity[], struct burn_drive *d) |
Submit a message to the libburn queueing system. | |
int | burn_text_to_sev (char *severity_name, int *severity_number, int flag) |
Convert a severity name into a severity number, which gives the severity rank of the name. | |
int | burn_sev_to_text (int severity_number, char **severity_name, int flag) |
Convert a severity number into a severity name
| |
int | burn_set_messenger (void *messenger) |
Replace the messenger object handle of libburn by a compatible handle obtained from a related library. | |
void | burn_set_signal_handling (void *handle, burn_abort_handler_t handler, int mode) |
Control built-in signal handling. | |
int | burn_is_aborting (int flag) |
int | burn_random_access_write (struct burn_drive *d, off_t byte_address, char *data, off_t data_count, int flag) |
Write data in random access mode. | |
int | burn_get_read_capacity (struct burn_drive *d, int *capacity, int flag) |
Inquire the maximum amount of readable data. | |
int | burn_read_data (struct burn_drive *d, off_t byte_address, char data[], off_t data_size, off_t *data_count, int flag) |
Read data in random access mode. | |
int | burn_drive_get_drive_role (struct burn_drive *d) |
Inquire whether the drive object is a real MMC drive or a pseudo-drive created by a stdio: address. | |
void | burn_allow_drive_role_4 (int allowed) |
Allow drive role 4 "random access read-only" and drive role 5 "random access write-only". | |
int | burn_drive_equals_adr (struct burn_drive *d1, char *adr2, int drive_role2) |
Find out whether a given address string would lead to the given drive object. | |
int | libdax_audioxtr_new (struct libdax_audioxtr **xtr, char *path, int flag) |
Open an audio file, check wether suitable, create extractor object. | |
int | libdax_audioxtr_get_id (struct libdax_audioxtr *xtr, char **fmt, char **fmt_info, int *num_channels, int *sample_rate, int *bits_per_sample, int *msb_first, int flag) |
Obtain identification parameters of opened audio source. | |
int | libdax_audioxtr_get_size (struct libdax_audioxtr *o, off_t *size, int flag) |
Obtain a prediction about the extracted size based on internal information of the formatted file. | |
int | libdax_audioxtr_read (struct libdax_audioxtr *xtr, char buffer[], int buffer_size, int flag) |
Obtain next buffer full of extracted data in desired format (only raw audio for now). | |
int | libdax_audioxtr_detach_fd (struct libdax_audioxtr *o, int *fd, int flag) |
Try to obtain a file descriptor which will deliver extracted data to normal calls of read(2). | |
int | libdax_audioxtr_destroy (struct libdax_audioxtr **xtr, int flag) |
Clean up after extraction and destroy extractor object. |
|
Track mode modifier - 4 channel audio.
|
|
Track mode - audio 2352 bytes per sector. may be | with 4ch or preemphasis. NOT TO BE CONFUSED WITH BURN_MODE_RAW Audio data must be 44100Hz 16bit stereo with no riff or other header at beginning. Extra header data will cause pops or clicks. Audio data should also be in little-endian byte order. Big-endian audio data causes static. |
|
Session format for obsolete CD-I discs.
|
|
Session format for normal audio or data discs.
|
|
Session format for CDROM-XA discs.
|
|
Track mode modifier - Digital copy permitted, can be set on any track.
|
|
Maximum length+1 to expect with a drive device file address string.
Definition at line 998 of file libburn.h. Referenced by libburner_setup(). |
|
Maximum number of particularly permissible drive addresses.
|
|
Track mode modifier - Form 1, | with MODE2 for reasonable results 2048 bytes of user data, 4 bytes of subheader.
|
|
Track mode modifier - Form 2, | with MODE2 for reasonable results lots of user data. not much LEC. |
|
|
|
Possible formatting status values.
|
|
|
|
These three release version numbers tell the revision of this header file and of the API it describes. They are memorized by applications at build time. Immediately after burn_initialize() an application should do this check: burn_version(&major, &minor, µ); if(major > burn_header_version_major || (major == burn_header_version_major && (minor > burn_header_version_minor || (minor == burn_header_version_minor && micro >= burn_header_version_micro)))) { ... Young enough. Go on with program run .... } else { ... Too old. Do not use this libburn version ... } |
|
|
|
|
|
Track mode - mode 0 data 0 bytes of user data. it's all 0s. mode 0. get it? HAH |
|
Track mode - mode 1 data 2048 bytes user data, and all the LEC money can buy.
|
|
Track mode - mode 2 data defaults to formless, 2336 bytes of user data, unprotected | with a data form if required.
|
|
Mask for mode bits.
|
|
Track mode - mode "raw" - all 2352 bytes supplied by app FOR DATA TRACKS ONLY!
|
|
|
|
Definition at line 73 of file libburn.h. Referenced by libburner_payload(). |
|
Track mode modifier - 50/15uS pre-emphasis.
|
|
The length of a rejection reasons string for burn_precheck_write() and burn_write_opts_auto_write_type() .
|
|
Input mode modifier - subcodes present packed 16.
|
|
Input mode modifier - subcodes present packed 96.
|
|
Input mode modifier - subcodes present raw 96.
|
|
|
|
|
|
The prototype of a handler function suitable for burn_set_signal_handling() Such a function has to return -2 if it does not want the process to exit with value 1.
|
|
Data format to send to the drive.
Definition at line 179 of file libburn.h. 00180 { 00181 /** sync, headers, edc/ecc provided by lib/user */ 00182 BURN_BLOCK_RAW0 = 1, 00183 /** sync, headers, edc/ecc and p/q subs provided by lib/user */ 00184 BURN_BLOCK_RAW16 = 2, 00185 /** sync, headers, edc/ecc and packed p-w subs provided by lib/user */ 00186 BURN_BLOCK_RAW96P = 4, 00187 /** sync, headers, edc/ecc and raw p-w subs provided by lib/user */ 00188 BURN_BLOCK_RAW96R = 8, 00189 /** only 2048 bytes of user data provided by lib/user */ 00190 BURN_BLOCK_MODE1 = 256, 00191 /** 2336 bytes of user data provided by lib/user */ 00192 BURN_BLOCK_MODE2R = 512, 00193 /** 2048 bytes of user data provided by lib/user 00194 subheader provided in write parameters 00195 are we ever going to support this shit? I vote no. 00196 (supposed to be supported on all drives...) 00197 */ 00198 BURN_BLOCK_MODE2_PATHETIC = 1024, 00199 /** 2048 bytes of data + 8 byte subheader provided by lib/user 00200 hey, this is also dumb 00201 */ 00202 BURN_BLOCK_MODE2_LAME = 2048, 00203 /** 2324 bytes of data provided by lib/user 00204 subheader provided in write parameters 00205 no sir, I don't like it. 00206 */ 00207 BURN_BLOCK_MODE2_OBSCURE = 4096, 00208 /** 2332 bytes of data supplied by lib/user 00209 8 bytes sub header provided in write parameters 00210 this is the second least suck mode2, and is mandatory for 00211 all drives to support. 00212 */ 00213 BURN_BLOCK_MODE2_OK = 8192, 00214 /** SAO block sizes are based on cue sheet, so use this. */ 00215 BURN_BLOCK_SAO = 16384 00216 };
|
|
Possible status of the drive in regard to the disc in it.
Definition at line 219 of file libburn.h. Referenced by libburner_blank_disc(), libburner_format(), and libburner_payload(). 00220 { 00221 /** The current status is not yet known */ 00222 BURN_DISC_UNREADY, 00223 00224 /** The drive holds a blank disc. It is ready for writing from scratch. 00225 Unused multi-session media: 00226 CD-R, CD-RW, DVD-R, DVD-RW, DVD+R, BD-R 00227 Blanked multi-session media (i.e. treated by burn_disc_erase()) 00228 CD-RW, DVD-RW 00229 Overwriteable media with or without valid data 00230 DVD-RAM, DVD+RW, formatted DVD-RW, BD-RE 00231 */ 00232 BURN_DISC_BLANK, 00233 00234 /** There is no disc at all in the drive */ 00235 BURN_DISC_EMPTY, 00236 00237 /** There is an incomplete disc in the drive. It is ready for appending 00238 another session. 00239 Written but not yet closed multi-session media 00240 CD-R, CD-RW, DVD-R, DVD-RW, DVD+R, BD-R 00241 */ 00242 BURN_DISC_APPENDABLE, 00243 00244 /** There is a disc with data on it in the drive. It is usable only for 00245 reading. 00246 Written and closed multi-session media 00247 CD-R, CD-RW, DVD-R, DVD-RW, DVD+R, BD-R 00248 Read-Only media 00249 CD-ROM, DVD-ROM, BD-ROM 00250 Note that many DVD-ROM drives report any written media 00251 as Read-Only media and not by their real media types. 00252 */ 00253 BURN_DISC_FULL, 00254 00255 /* ts A61007 */ 00256 /* @since 0.2.4 */ 00257 /** The drive was not grabbed when the status was inquired */ 00258 BURN_DISC_UNGRABBED, 00259 00260 /* ts A61020 */ 00261 /* @since 0.2.6 */ 00262 /** The media seems to be unsuitable for reading and for writing */ 00263 BURN_DISC_UNSUITABLE 00264 };
|
|
Possible busy states for a drive.
Definition at line 280 of file libburn.h. 00281 { 00282 /** The drive is not in an operation */ 00283 BURN_DRIVE_IDLE, 00284 /** The library is spawning the processes to handle a pending 00285 operation (A read/write/etc is about to start but hasn't quite 00286 yet) */ 00287 BURN_DRIVE_SPAWNING, 00288 /** The drive is reading data from a disc */ 00289 BURN_DRIVE_READING, 00290 /** The drive is writing data to a disc */ 00291 BURN_DRIVE_WRITING, 00292 /** The drive is writing Lead-In */ 00293 BURN_DRIVE_WRITING_LEADIN, 00294 /** The drive is writing Lead-Out */ 00295 BURN_DRIVE_WRITING_LEADOUT, 00296 /** The drive is erasing a disc */ 00297 BURN_DRIVE_ERASING, 00298 /** The drive is being grabbed */ 00299 BURN_DRIVE_GRABBING, 00300 00301 /* ts A61102 */ 00302 /* @since 0.2.6 */ 00303 /** The drive gets written zeroes before the track payload data */ 00304 BURN_DRIVE_WRITING_PREGAP, 00305 /** The drive is told to close a track (TAO only) */ 00306 BURN_DRIVE_CLOSING_TRACK, 00307 /** The drive is told to close a session (TAO only) */ 00308 BURN_DRIVE_CLOSING_SESSION, 00309 00310 /* ts A61223 */ 00311 /* @since 0.3.0 */ 00312 /** The drive is formatting media */ 00313 BURN_DRIVE_FORMATTING, 00314 00315 /* ts A70822 */ 00316 /* @since 0.4.0 */ 00317 /** The drive is busy in synchronous read (if you see this then it 00318 has been interrupted) */ 00319 BURN_DRIVE_READING_SYNC, 00320 /** The drive is busy in synchronous write (if you see this then it 00321 has been interrupted) */ 00322 BURN_DRIVE_WRITING_SYNC 00323 00324 };
|
|
Possible data source return values.
Definition at line 268 of file libburn.h. 00269 { 00270 /** The source is ok */ 00271 BURN_SOURCE_OK, 00272 /** The source is at end of file */ 00273 BURN_SOURCE_EOF, 00274 /** The source is unusable */ 00275 BURN_SOURCE_FAILED 00276 };
|
|
Possible disc writing style/modes.
Definition at line 125 of file libburn.h. 00126 { 00127 /** Packet writing. 00128 currently unsupported, (for DVD Incremental Streaming use TAO) 00129 */ 00130 BURN_WRITE_PACKET, 00131 00132 /** With CD: Track At Once recording 00133 2s gaps between tracks, no fonky lead-ins 00134 00135 With sequential DVD-R[W]: Incremental Streaming 00136 With DVD+R and BD-R: Track of open size 00137 With DVD-RAM, DVD+RW, BD-RE: Random Writeable (used sequentially) 00138 With overwriteable DVD-RW: Rigid Restricted Overwrite 00139 */ 00140 BURN_WRITE_TAO, 00141 00142 /** With CD: Session At Once 00143 Block type MUST be BURN_BLOCK_SAO 00144 ts A70122: Currently not capable of mixing data and audio tracks. 00145 00146 With sequential DVD-R[W]: Disc-at-once, DAO 00147 Single session, single track, fixed size mandatory, (-dvd-compat) 00148 With other DVD or BD media: same as BURN_WRITE_TAO but may demand 00149 that track size is known in advance. 00150 */ 00151 BURN_WRITE_SAO, 00152 00153 /** With CD: Raw disc at once recording. 00154 all subcodes must be provided by lib or user 00155 only raw block types are supported 00156 With DVD and BD media: not supported. 00157 00158 ts A90901: This had been disabled because its implementation 00159 relied on code from cdrdao which is not understood 00160 currently. 00161 A burn run will abort with "FATAL" error message 00162 if this mode is attempted. 00163 @since 0.7.2 00164 ts A91016: Re-implemented according to ECMA-130 Annex A and B. 00165 Now understood, explained and not stemming from cdrdao. 00166 @since 0.7.4 00167 */ 00168 BURN_WRITE_RAW, 00169 00170 /** In replies this indicates that not any writing will work. 00171 As parameter for inquiries it indicates that no particular write 00172 mode shall is specified. 00173 Do not use for setting a write mode for burning. It will not work. 00174 */ 00175 BURN_WRITE_NONE 00176 };
|
|
Abort any running drive operation and eventually call burn_finish(). You MUST shut down the busy drives if an aborting event occurs during a burn run. For that you may call this function either from your own signal handling code or indirectly by activating the built-in signal handling: burn_set_signal_handling("my_app_name : ", NULL, 0); Else you may eventually call burn_drive_cancel() on the active drives and wait for them to assume state BURN_DRIVE_IDLE.
Referenced by main(). |
|
A pacifier function suitable for burn_abort.
Referenced by main(). |
|
Allow drive role 4 "random access read-only" and drive role 5 "random access write-only". By default a random access file assumes drive role 2 "read-write" regardless whether it is actually readable or writeable. If enabled, random-access file objects which recognizably allow no writing will be classified as role 4 and those which allow no reading will get role 5. Candidates are drive addresses of the form stdio:/dev/fd/# , where # is the integer number of an open file descriptor. If this descriptor was opened read-only resp. write-only, then it gets role 4 resp. role 5. Other paths may get tested by an attempt to open them for read-write (role 2) resp. read-only (role 4) resp. write-only (role 5). See bit1.
|
|
Allows the use of media types which are implemented in libburn but not yet tested. The list of those untested profiles is subject to change.
|
|
Add a session to a disc at a specific position, increasing the sessions's reference count.
Referenced by libburner_payload(). |
|
Return the best possible estimation of the currently available capacity of the media. This might depend on particular write option settings. For inquiring the space with such a set of options, the drive has to be grabbed and BURN_DRIVE_IDLE. If not, then one will only get a canned value from the most recent automatic inquiry (e.g. during last drive grabbing). An eventual start address from burn_write_opts_set_start_byte() will be subtracted from the obtained capacity estimation. Negative results get defaulted to 0. If the drive is actually a file in a large filesystem or a large block device, then the capacity is curbed to a maximum of 0x7ffffff0 blocks = 4 TB - 32 KB.
|
|
Try to close the last track and session of media which have bit0 set in the return value of call burn_disc_next_track_is_damaged(). Whether it helps depends much on the reason why the media is reported as damaged by the drive. This call works only for profiles 0x09 CD-R, 0x0a CD-RW, 0x11 DVD-R, 0x14 DVD-RW sequential, 0x1b DVD+R, 0x2b DVD+R DL, 0x41 BD-R sequential. Note: After writing it is advised to give up the drive and to grab it again in order to learn about its view on the new media state.
|
|
Create a new disc.
Referenced by libburner_payload(). |
|
Tells whether a disc can be erased or not.
Referenced by libburner_blank_disc(), and libburner_payload(). |
|
Erase a disc in the drive. The drive must be grabbed successfully BEFORE calling this functions. Always ensure that the drive reports a status of BURN_DISC_FULL before calling this function. An erase operation is not cancellable, as control of the operation is passed wholly to the drive and there is no way to interrupt it safely.
Referenced by libburner_blank_disc(). |
|
Format media for use with libburn. This currently applies to DVD-RW in state "Sequential Recording" (profile 0014h) which get formatted to state "Restricted Overwrite" (profile 0013h). DVD+RW can be "de-iced" by setting bit2 of flag. DVD-RAM and BD-RE may get formatted initially or re-formatted to adjust their Defect Managment. This function usually returns while the drive is still in the process of formatting. The formatting is done, when burn_drive_get_status() returns BURN_DRIVE_IDLE. This may be immediately after return or may need several thousand seconds to occur.
Referenced by libburner_format(). |
|
Delete disc and decrease the reference count on all its sessions.
Referenced by libburner_payload(). |
|
Removes from memory a multi session info structure which was returned by burn_disc_get_multi_caps(). The pointer *caps gets set to NULL.
|
|
Read the current usage of the eventual BD Spare Area. This area gets reserved on BD media during formatting. During writing it is used to host replacements of blocks which failed the checkread immediately after writing. This call applies only to recordable BD media. I.e. profiles 0x41 to 0x43.
|
|
Retrieve some media information which is mainly specific to CD. For other media only the bits in reply parameter valid are supposed to be meaningful.
|
|
Inquire parameters of an available media format.
|
|
Inquire the formatting status, the associated sizes and the number of available formats. The info is media specific and stems from MMC command 23h READ FORMAT CAPACITY. See mmc5r03c.pdf 6.24 for background details. Media type can be determined via burn_disc_get_profile().
Referenced by libburner_format(). |
|
Obtain product id and standards defined media codes. The product id is a printable string which is supposed to be the same for identical media but should vary with non-identical media. Some media do not allow to obtain such an id at all. The pair (profile_number, product_id) should be the best id to identify media with identical product specifications. The reply parameters media_code1 and media_code2 can be used with burn_guess_manufacturer() The reply parameters have to be disposed by free() when no longer needed.
|
|
Read start lba of the first track in the last complete session. This is the first parameter of mkisofs option -C. The second parameter is nwa as obtained by burn_disc_track_lba_nwa() with trackno 0.
|
|
Allocates a struct burn_multi_caps (see above) and fills it with values which are appropriate for the drive and the loaded media. The drive must be grabbed for this call. The returned structure has to be disposed via burn_disc_free_multi_caps() when no longer needed.
|
|
Retrieve some media information which is mainly specific to media of the DVD-R family: DVD-R , DVD-RW , DVD-R DL , HD DVD-R Currently the information cannot be retrieved from other media types.
|
|
Tells the MMC Profile identifier of the loaded media. The drive must be grabbed in order to get a non-zero result. libburn currently writes only to profiles 0x09 "CD-R" 0x0a "CD-RW" 0x11 "DVD-R sequential recording" 0x12 "DVD-RAM" 0x13 "DVD-RW restricted overwrite" 0x14 "DVD-RW sequential recording", 0x15 "DVD-R/DL sequential recording", 0x1a "DVD+RW" 0x1b "DVD+R", 0x2b "DVD+R/DL", 0x41 "BD-R sequential recording", 0x43 "BD-RE", 0xffff "stdio file" Note: 0xffff is not a MMC profile but a libburn invention. Read-only are the profiles 0x08 "CD-ROM", 0x10 "DVD-ROM", 0x40 "BD-ROM", Read-only for now is this BD-R profile (testers wanted) 0x42 "BD-R random recording"
Referenced by libburner_aquire_drive(), and libburner_format(). |
|
|
|
Gets an array of all the sessions for the disc THIS IS NO LONGER VALID AFTER YOU ADD OR REMOVE A SESSION.
|
|
Returns what kind of disc a drive is holding. This function may need to be called more than once to get a proper status from it. See burn_disc_status for details.
Referenced by libburner_blank_disc(), libburner_format(), and libburner_payload(). |
|
Tells whether a previous attempt to determine the Next Writeable Address of the upcomming track reveiled that the READ TRACK INFORMATION Damage Bit is set for this track, resp. that no valid writable address is available. See MMC-5 6.27.3.7 Damage Bit, 6.27.3.11 NWA_V (NWA valid)
|
|
WARNING: This revives an old bug-like behavior that might be dangerous. Sets the drive status to BURN_DISC_BLANK if it is BURN_DISC_UNREADY or BURN_DISC_UNSUITABLE. Thus marking media as writable which actually failed to declare themselves either blank or (partially) filled.
|
|
WARNING: This overrides the safety measures against unsuitable media. Sets the drive status to BURN_DISC_FULL if it is BURN_DISC_UNREADY or BURN_DISC_UNSUITABLE. Thus marking media as blankable which actually failed to declare themselves either blank or (partially) filled.
|
|
Read a disc from the drive and write it to an fd pair. The drive must be grabbed successfully BEFORE calling this function. Always ensure that the drive reports a status of BURN_DISC_FULL before calling this function.
|
|
Reads ATIP information from inserted media. To be obtained via burn_drive_get_write_speed(), burn_drive_get_min_write_speed(), burn_drive_get_start_end_lba(). The drive must be grabbed for this call.
|
|
Remove a session from a disc.
|
|
Read start lba and Next Writeable Address of a track from media. Usually a track lba is obtained from the result of burn_track_get_entry(). This call retrieves an updated lba, eventual nwa, and can address the invisible track to come. The drive must be grabbed for this call. One may not issue this call during ongoing burn_disc_write() or burn_disc_erase().
|
|
Write a disc in the drive. The drive must be grabbed successfully before calling this function. Always ensure that the drive reports a status of BURN_DISC_BLANK ot BURN_DISC_APPENDABLE before calling this function. Note: write_type BURN_WRITE_SAO is currently not capable of writing a mix of data and audio tracks. You must use BURN_WRITE_TAO for such sessions. To be set by burn_write_opts_set_write_type(). Note: This function is not suitable for overwriting data in the middle of a valid data area because it is allowed to append trailing data. For exact random access overwriting use burn_random_access_write(). Note: After writing it is advised to give up the drive and to grab it again in order to learn about its view on the new media state. Note: Before mounting the written media it might be necessary to eject and reload in order to allow the operating system to notice the new media state.
Referenced by libburner_payload(). |
|
Add a device to the list of permissible drives. As soon as some entry is in the whitelist all non-listed drives are banned from scanning.
|
|
Cancel an operation on a drive. This will only work when the drive's busy state is BURN_DRIVE_READING or BURN_DRIVE_WRITING.
|
|
Remove all drives from whitelist. This enables all possible drives. |
|
Try to convert a given existing filesystem address into a drive device file address. This succeeds with symbolic links or if a hint about the drive's system address can be read from the filesystem object and a matching drive is found.
Referenced by libburner_aquire_by_adr(). |
|
Try to convert a given SCSI address of bus,host,channel,target,lun into a drive device file address. If a SCSI address component parameter is < 0 then it is not decisive and the first enumerated address which matches the >= 0 parameters is taken as result. Note: bus and (host,channel) are supposed to be redundant.
|
|
Inquire the device file address of the given drive.
|
|
Find out whether a given address string would lead to the given drive object. This should be done in advance for track source addresses with parameter drive_role set to 2. Although a real MMC drive should hardly exist as two drive objects at the same time, this can easily happen with stdio-drives. So if more than one drive is used by the application, then this gesture is advised: burn_drive_d_get_adr(d2, adr2); if (burn_drive_equals_adr(d1, adr2, burn_drive_get_drive_role(d2))) ... Both drive objects point to the same storage facility ...
|
|
Dispose a speed descriptor list copy which was obtained by burn_drive_get_speedlist().
|
|
Inquire the device file address of a drive via a given drive_info object. (Note: This is a legacy call.)
Referenced by libburner_aquire_by_driveno(). |
|
Gets the list of profile codes supported by the drive. Profiles depict the feature sets which constitute media types. For known profile codes and names see burn_disc_get_profile().
|
|
Look up the fastest speed descriptor which is not faster than the given speed_goal. If it is 0, then the fastest one is chosen among the descriptors with the highest end_lba. If it is -1 then the slowest speed descriptor is chosen regardless of end_lba. Parameter flag decides whether the speed goal means write speed or read speed.
|
|
Get the drive's disc struct - free when done.
|
|
Inquire whether the drive object is a real MMC drive or a pseudo-drive created by a stdio: address.
|
|
Gets the minimum write speed for a drive and eventually loaded media. The return value might change by the media type of already loaded media, again by call burn_drive_grab() and again by call burn_disc_read_atip().
|
|
Gets the maximum read speed for a drive.
|
|
Obtain a copy of the current speed descriptor list. The drive's list gets updated on various occasions such as burn_drive_grab() but the copy obtained here stays untouched. It has to be disposed via burn_drive_free_speedlist() when it is not longer needed. Speeds may appear several times in the list. The list content depends much on drive and media type. It seems that .source == 1 applies mostly to CD media whereas .source == 2 applies to any media.
|
|
Returns start and end lba of the media which is currently inserted in the given drive. The drive has to be grabbed to have hope for reply. Shortcomming (not a feature): unless burn_disc_read_atip() was called only blank media will return valid info.
|
|
Returns the progress and status of a drive.
Referenced by libburner_blank_disc(), libburner_format(), and libburner_payload(). |
|
Gets the maximum write speed for a drive and eventually loaded media. The return value might change by the media type of already loaded media, again by call burn_drive_grab() and again by call burn_disc_read_atip().
|
|
Grab a drive. This must be done before the drive can be used (for reading, writing, etc).
Referenced by libburner_aquire_by_driveno(). |
|
Release memory about a single drive and any exclusive lock on it. Become unable to inquire or grab it. Expect FATAL consequences if you try.
Referenced by libburner_aquire_by_driveno(). |
|
When no longer needed, free a whole burn_drive_info array which was returned by burn_drive_scan(). For freeing single drive array elements use burn_drive_info_forget(). |
|
Evaluate whether the given address would be a drive device file address which could be listed by a run of burn_drive_scan(). No check is made whether a device file with this address exists or whether it leads to a usable MMC drive.
|
|
Like burn_drive_release() but keeping the drive tray closed and its eject button disabled. This physically locked drive state will last until the drive is grabbed again and released via burn_drive_release(). Programs like eject, cdrecord, growisofs will break that ban too.
|
|
Try to obtain bus,host,channel,target,lun from path. If there is an SCSI address at all, then this call should succeed with a drive device file address obtained via burn_drive_d_get_adr(). It is also supposed to succeed with any device file of a (possibly emulated) SCSI device.
|
|
|
|
Re-assess drive and media status. This should be done after a drive underwent a status change and shall be further used without intermediate burn_drive_release(), burn_drive_grab(). E.g. after blanking or burning.
|
|
Release a drive. This should not be done until the drive is no longer busy (see burn_drive_get_status).
Referenced by main(). |
|
Scan for drives. This function MUST be called until it returns nonzero. In case of re-scanning: All pointers to struct burn_drive and all struct burn_drive_info arrays are invalidated by using this function. Do NOT store drive pointers across calls to this function ! To avoid invalid pointers one MUST free all burn_drive_info arrays by burn_drive_info_free() before calling burn_drive_scan() a second time. If there are drives left, then burn_drive_scan() will refuse to work. After this call all drives depicted by the returned array are subject to eventual (O_EXCL) locking. See burn_preset_device_open(). This state ends either with burn_drive_info_forget() or with burn_drive_release(). It is unfriendly to other processes on the system to hold drives locked which one does not definitely plan to use soon.
Referenced by libburner_aquire_by_driveno(). |
|
Aquire a drive with known device file address. This is the sysadmin friendly way to open one drive and to leave all others untouched. It bundles the following API calls to form a non-obtrusive way to use libburn: burn_drive_add_whitelist() , burn_drive_scan() , burn_drive_grab() You are *strongly urged* to use this call whenever you know the drive address in advance. If not, then you have to use directly above calls. In that case, you are strongly urged* to drop any unintended drive which will be exclusively occupied and not closed by burn_drive_scan(). This can be done by shutting down the library including a call to burn_finish(). You may later start a new libburn session and should then use the function described here with an address obtained after burn_drive_scan() via burn_drive_d_get_adr(drive_infos[driveno].drive,adr). Another way is to drop the unwanted drives by burn_drive_info_forget(). Operating on multiple drives: Different than with burn_drive_scan() it is allowed to call burn_drive_scan_and_grab() without giving up any other scanned drives. So this call can be used to get a collection of more than one aquired drives. The attempt to aquire the same drive twice will fail, though. Pseudo-drives: burn_drive_scan_and_grab() is able to aquire virtual drives which will accept options much like a MMC burner drive. Many of those options will not cause any effect, though. The address of a pseudo-drive begins with prefix "stdio:" followed by a path. Examples: "stdio:/tmp/pseudo_drive" , "stdio:/dev/null" , "stdio:-" If the path is empty, the result is a null-drive = drive role 0. It pretends to have loaded no media and supports no reading or writing. If the path leads to an existing regular file, or to a not yet existing file, or to an existing block device, then the result is a random access stdio-drive capable of reading and writing = drive role 2. If the path leads to an existing file of any type other than directory, then the result is a sequential write-only stdio-drive = drive role 3. The special address form "stdio:/dev/fd/{number}" is interpreted literally as reference to open file descriptor {number}. This address form coincides with real files on some systems, but it is in fact hardcoded in libburn. Special address "stdio:-" means stdout = "stdio:/dev/fd/1". The role of such a drive is determined by the file type obtained via fstat({number}). Roles 2 and 3 perform all their eventual data transfer activities on a file via standard i/o functions open(2), lseek(2), read(2), write(2), close(2). The media profile is reported as 0xffff. Write space information from those media is not necessarily realistic. The capabilities of role 2 resemble DVD-RAM but it can simulate writing. If the path does not exist in the filesystem yet, it is attempted to create it as a regular file as soon as write operations are started. The capabilities of role 3 resemble a blank DVD-R. Nevertheless each burn_disc_write() run may only write a single track. One may distinguish pseudo-drives from MMC drives by call burn_drive_get_drive_role().
Referenced by libburner_aquire_by_adr(). |
|
Controls the behavior with writing when the drive buffer is suspected to be full. To check and wait for enough free buffer space before writing will move the task of waiting from the operating system's device driver to libburn. While writing is going on and waiting is enabled, any write operation will be checked whether it will fill the drive buffer up to more than max_percent. If so, then waiting will happen until the buffer fill is predicted with at most min_percent. Thus: if min_percent < max_percent then transfer rate will oscillate. This may allow the driver to operate on other devices, e.g. a disk from which to read the input for writing. On the other hand, this checking might reduce maximum throughput to the drive or even get misled by faulty buffer fill replies from the drive. If a setting parameter is < 0, then this setting will stay unchanged by the call. Known burner or media specific pitfalls: To have max_percent larger than the burner's best reported buffer fill has the same effect as min_percent==max_percent. Some burners do not report their full buffer with all media types. Some are not suitable because they report their buffer fill with delay.
|
|
Sets drive read and write speed Note: "k" is 1000, not 1024. 1xCD = 176.4 k/s, 1xDVD = 1385 k/s. Fractional speeds should be rounded up. Like 4xCD = 706.
Referenced by libburner_payload(). |
|
Control stream recording during the write run and eventually set the start LBA for stream recording. Stream recording is set from struct burn_write_opts when the write run gets started. See burn_write_opts_set_stream_recording(). The call described here can be used later to override this setting and to program automatic switching at a given LBA. It also affects subsequent calls to burn_random_access_write().
|
|
Calm down or alert a drive. Some drives stay alert after reading for quite some time. This saves time with the startup for the next read operation but also causes noise and consumes extra energy. It makes sense to calm down the drive if no read operation is expected for the next few seconds. The drive will get alert automatically if operations are required.
|
|
Inquire whether the most recent asynchronous media job was successful. This applies to burn_disc_erase(), burn_disc_format(), burn_disc_write(). Reasons for non-success may be: rejection of burn parameters, abort due to fatal errors during write, blank or format, a call to burn_drive_cancel() by the application thread.
|
|
Creates a data source for an image file (a track) from an open readable filedescriptor, an eventually open readable subcodes file descriptor and eventually a fixed size in bytes.
Referenced by libburner_payload(). |
|
Start the fifo worker thread and wait either until the requested number of bytes have arrived or until it becomes clear that this will not happen. Filling will go on asynchronously after burn_fifo_fill() returned. This call and burn_fifo_peek_data() do not disturb each other.
|
|
Inquire various counters which reflect the fifo operation.
|
|
Inquires state and fill parameters of a fifo burn_source which was created by burn_fifo_source_new() . Do not use with other burn_source variants.
Referenced by libburner_payload(). |
|
Inquire the fifo minimum fill counter for intervals and reset that counter.
|
|
Obtain a preview of the first input data of a fifo which was created by burn_fifo_source_new(). The data will later be delivered normally to the consumer track of the fifo. bufsize may not be larger than the fifo size (chunk_size * chunks) - 32k. This call will succeed only if data consumption by the track has not started yet, i.e. best before the call to burn_disc_write(). It will start the worker thread of the fifo with the expectable side effects on the external data source. Then it waits either until enough data have arrived or until it becomes clear that this will not happen. The call may be repeated with increased bufsize. It will always yield the bytes beginning from the first one in the fifo.
|
|
Creates a fifo which acts as proxy for an already existing data source. The fifo provides a ring buffer which shall smoothen the data stream between burn_source and writer thread. Each fifo serves only for one data source and gets attached to one track as its only data source by burn_track_set_source(). A fifo starts its life in "standby" mode with no buffer space allocated. As soon as its track requires bytes, the fifo establishes a worker thread and allocates its buffer. After input has ended and all buffer content is consumed, the buffer space gets freed and the worker thread ends. This happens asynchronously. So expect two buffers and worker threads to exist for a short time between tracks. Be modest in your size demands if multiple tracks are to be expected.
Referenced by libburner_payload(). |
|
Creates a data source for an image file (and maybe subcode file).
|
|
Shutdown the library. This should be called before exiting your application. Make sure that all drives you have grabbed are released before calling this. Referenced by main(). |
|
Inquire the maximum amount of readable data. It is supposed that all LBAs in the range from 0 to media_read_acpacity-1 can be read via burn_read_data() although some of them may never have been recorded. If tracks are recognizable then it is better to only read LBAs which are part of some track. If the drive is actually a large file or block device, then the capacity is curbed to a maximum of 0x7ffffff0 blocks = 4 TB - 32 KB.
|
|
Guess the manufacturer name of CD media from the ATIP addresses of lead-in and lead-out. (Currently only lead-in is interpreted. Lead-out may in future be used to identify the media type in more detail.) The parameters of this call should be obtained by burn_disc_read_atip(d), burn_drive_get_start_end_lba(d, &start_lba, &end_lba, 0), burn_lba_to_msf(start_lba, &m_li, &s_li, &f_li) and burn_lba_to_msf(end_lba, &m_lo, &s_lo, &f_lo).
|
|
Guess the name of a manufacturer by profile number, manufacturer code and media code. The profile number can be obtained by burn_disc_get_profile(), the other two parameters can be obtained as media_code1 and media_code2 by burn_get_media_product_id().
|
|
Initialize the library. This must be called before using any other functions in the library. It may be called more than once with no effect. It is possible to 'restart' the library by shutting it down and re-initializing it. Once this was necessary if you follow the older and more general way of accessing a drive via burn_drive_scan() and burn_drive_grab(). See burn_drive_scan_and_grab() with its strong urges and its explanations.
Referenced by main(). |
|
Referenced by libburner_blank_disc(), libburner_format(), libburner_payload(), and main(). |
|
Convert an lba to minute-second-frame (MSF).
|
|
Try to convert a given drive device file address into the address of a symbolic link that points to this drive address. Modern GNU/Linux systems may shuffle drive addresses from boot to boot. The udev daemon is supposed to create links which always point to the same drive, regardless of its system address. This call tries to find such links.
|
|
Convert a minute-second-frame (MSF) value to an lba.
|
|
Convert a minute-second-frame (MSF) value to sector count.
|
|
Obtain the oldest pending libburn message from the queue which has at least the given minimum_severity. This message and any older message of lower severity will get discarded from the queue and is then lost forever.
|
|
Control queueing and stderr printing of messages from libburn. Severity may be one of "NEVER", "ABORT", "FATAL", "FAILURE", "SORRY", "WARNING", "HINT", "NOTE", "UPDATE", "DEBUG", "ALL".
Referenced by main(). |
|
Submit a message to the libburn queueing system. It will be queued or printed as if it was generated by libburn itself.
|
|
Obtains the profile name associated with a profile code.
|
|
Creates an offset source which shall provide a byte interval of a stream to its consumer. It is supposed to be chain-linked with other offset sources which serve neighboring consumers. The chronological sequence of consumers and the sequence of offset sources must match. The intervals of the sources must not overlap. A chain of these burn_source objects may be used to feed multiple tracks from one single stream of input bytes. Each of the offset sources will skip the bytes up to its start address and provide the prescribed number of bytes to the track. Skipping takes into respect the bytes which have been processed by eventual predecessors in the chain. Important: It is not allowed to free an offset source before its successor has ended its work. Best is to keep them all until all tracks are done.
|
|
Allocate a memory area that is suitable for reading with a file descriptor opened by burn_os_open_track_src().
|
|
Dispose a memory area which was obtained by burn_os_alloc_buffer(),.
|
|
Opens a file with eventual acceleration preparations which may depend on the operating system and on compile time options of libburn. You may use this call instead of open(2) for opening file descriptors which shall be handed to burn_fd_source_new(). This should only be done for tracks with BURN_BLOCK_MODE1 (2048 bytes per block). If you use this call then you MUST allocate the buffers which you use with read(2) by call burn_os_alloc_buffer(). Read sizes MUST be a multiple of a safe buffer amount. Else you risk that track data get altered during transmission. burn_disk_write() will allocate a suitable read/write buffer for its own operations. A fifo created by burn_fifo_source_new() will allocate suitable memory for its buffer if called with flag bit0 and a multiple of a safe buffer amount.
|
|
Examines a completed setup for burn_disc_write() whether it is permissible with drive and media. This function is called by burn_disc_write() but an application might be interested in this check in advance.
|
|
Set parameters for behavior on opening device files. To be called early after burn_initialize() and before any bus scan. But not mandatory at all. Parameter value 1 enables a feature, 0 disables. Default is (1,0,0). Have a good reason before you change it.
|
|
Write data in random access mode. The drive must be grabbed successfully before calling this function which circumvents usual libburn session processing and rather writes data without preparations or finalizing. This will work only with overwriteable media which are also suitable for burn_write_opts_set_start_byte(). The same address alignment restrictions as with this function apply. I.e. for DVD it is best to align to 32 KiB blocks (= 16 LBA units). The amount of data to be written is subject to the same media dependent alignment rules. Again, 32 KiB is most safe. Call burn_disc_get_multi_caps() can obtain the necessary media info. See resulting struct burn_multi_caps elements .start_adr , .start_alignment , .start_range_low , .start_range_high . Other than burn_disc_write() this is a synchronous call which returns only after the write transaction has ended (sucessfully or not). So it is wise not to transfer giant amounts of data in a single call. Important: Data have to fit into the already formatted area of the media.
|
|
Read data in random access mode. The drive must be grabbed successfully before calling this function. With all currently supported drives and media the byte_address has to be aligned to 2048 bytes. Only data tracks with 2048 bytes per sector can be read this way. I.e. not CD-audio, not CD-video-stream ... This is a synchronous call which returns only after the full read job has ended (sucessfully or not). So it is wise not to read giant amounts of data in a single call.
|
|
Frees a read_opts struct created with burn_read_opts_new.
|
|
Creates a read_opts struct for reading from the specified drive must be freed with burn_read_opts_free.
|
|
Sets whether to read subcodes from audio tracks or not.
|
|
Sets whether to read subcodes from data tracks or not.
|
|
Sets whether to report recovered errors or not.
|
|
Sets whether to report c2 errors or not.
|
|
Sets whether to recover errors if possible.
|
|
Sets the number of retries to attempt when trying to correct an error.
|
|
Sets whether to read in raw mode or not.
|
|
Sets whether blocks with unrecoverable errors should be read or not.
|
|
Obtain the id string of the SCSI transport interface. This interface may be a system specific adapter module of libburn or an adapter to a supporting library like libcdio.
|
|
Convert a sector count to minute-second-frame (MSF).
|
|
Add a track to a session at specified position.
Referenced by libburner_payload(). |
|
Create a new session.
Referenced by libburner_payload(). |
|
Free a session (and decrease reference count on all tracks inside).
Referenced by libburner_payload(). |
|
Returns whether the first track of a session is hidden in the pregap.
|
|
Gets a copy of the toc_entry structure associated with a session's lead out.
|
|
|
|
Gets an array of all the tracks for a session THIS IS NO LONGER VALID AFTER YOU ADD OR REMOVE A TRACK.
|
|
Hide the first track in the "pre gap" of the disc.
|
|
Remove a track from a session.
|
|
Replace the messenger object handle of libburn by a compatible handle obtained from a related library. See also: libisofs, API function iso_get_messenger().
|
|
Enable resp. disable logging of SCSI commands. This call can be made at any time - even before burn_initialize(). It is in effect for all active drives and currently not very thread safe for multiple drives.
|
|
Control built-in signal handling. Either by setting an own handler or by activating the built-in signal handler. A function parameter handle of NULL activates the built-in abort handler. Depending on mode it may cancel all drive operations, wait for all drives to become idle, exit(1). It may also prepare function burn_drive_get_status() for waiting and performing exit(1). If parameter handle may be NULL or a text that shall be used as prefix for pacifier messages of burn_abort_pacifier(). Other than with an application provided handler, the prefix char array does not have to be kept existing until the eventual signal event. Before version 0.7.8 only action 0 was available. I.e. the built-in handler waited for the drives to become idle and then performed exit(1) directly. But during burn_disc_write() onto real CD or DVD, FreeBSD 8.0 pauses the other threads until the signal handler returns. The new actions try to avoid this deadlock. It is advised to use action 3 at least during burn_disc_write(), burn_disc_erase(), burn_disc_format(): burn_set_signal_handling(text, NULL, 0x30); and to call burn_is_aborting(0) when the drive is BURN_DRIVE_IDLE. If burn_is_aborting(0) returns 1, then call burn_abort() and exit(1).
Referenced by libburner_blank_disc(), libburner_format(), libburner_payload(), and main(). |
|
ts A61006 : This is for development only. Not suitable for applications. Set the verbosity level of the library. The default value is 0, which means that nothing is output on stderr. The more you increase this, the more debug output should be displayed on stderr for you.
|
|
Convert a severity number into a severity name
|
|
Free a burn_source (decrease its refcount and maybe free it).
Referenced by libburner_payload(). |
|
|
|
|
|
|
|
Convert a severity name into a severity number, which gives the severity rank of the name.
|
|
Disable ISRC parameters for a track.
|
|
Create a track (for TAO recording, or to put in a session).
Referenced by libburner_payload(). |
|
Define the data in a track.
Referenced by libburner_payload(). |
|
Free a track.
Referenced by libburner_payload(). |
|
Tells how many source bytes have been read and how many data bytes have been written by the track during burn.
|
|
Gets a copy of the toc_entry structure associated with a track.
|
|
Gets the mode of a track.
|
|
Tells how long a track will be on disc >>> NOTE: Not reliable with tracks of undefined length.
|
|
Define whether a track shall swap bytes of its input stream.
|
|
Activates CD XA compatibility modes. libburn currently writes data only in CD mode 1. Some programs insist in sending data with additional management bytes. These bytes have to be stripped in order to make the input suitable for BURN_MODE1.
|
|
Set a default track size to be used only if the track turns out to be of unpredictable length and if the effective write type demands a fixed size. This can be useful to enable write types CD SAO or DVD DAO together with a track source like stdin. If the track source delivers fewer bytes than announced then the track will be padded up with zeros.
|
|
Set the ISRC details for a track.
|
|
Sets a fixed track size after the data source object has already been created.
|
|
Set the track's data source.
Referenced by libburner_payload(). |
|
Returns the library's version in its parts. This is the runtime counterpart of the three build time macros burn_header_version_* below.
|
|
As an alternative to burn_write_opts_set_write_type() this function tries to find a suitable write type and block type for a given write job described by opts and disc. To be used after all other setups have been made, i.e. immediately before burn_disc_write().
Referenced by libburner_payload(). |
|
Frees a write_opts struct created with burn_write_opts_new.
Referenced by libburner_payload(). |
|
Inquires the drive associated with a burn_write_opts object.
|
|
Creates a write_opts struct for burning to the specified drive. The returned object must later be freed with burn_write_opts_free().
Referenced by libburner_payload(). |
|
Overrides the write chunk size for DVD and BD media which is normally determined according to media type and setting of stream recording. A chunk size of 64 KB may improve throughput with bus systems which show latency problems.
|
|
Caution: still immature and likely to change. Problems arose with sequential DVD-RW on one drive. Controls whether the whole available space of the media shall be filled up by the last track of the last session.
|
|
Eventually makes libburn ignore the failure of some conformance checks: - the check whether CD write+block type is supported by the drive - the check whether the media profile supports simulated burning.
|
|
Sets the session format for a disc.
|
|
|
|
|
|
Sets the multi flag which eventually marks the emerging session as not being the last one and thus creating a BURN_DISC_APPENDABLE media. Note: DVD-R[W] in write mode BURN_WRITE_SAO are not capable of this. DVD-R DL are not capable of this at all. libburn will refuse to write if burn_write_opts_set_multi() is enabled under such conditions.
Referenced by libburner_payload(). |
|
Sets whether to use opc or not with the write_opts struct.
Referenced by libburner_payload(). |
|
Sets the simulate value for the write_opts struct . This corresponds to the Test Write bit in MMC mode page 05h. Several media types do not support this. See struct burn_multi_caps.might_simulate for actual availability of this feature. If the media is suitable, the drive will perform burn_disc_write() as a simulation instead of effective write operations. This means that the media content and burn_disc_get_status() stay unchanged. Note: With stdio-drives, the target file gets eventually created, opened, lseeked, and closed, but not written. So there are effects on it. Warning: Call burn_random_access_write() will never do simulation because it does not get any burn_write_opts.
Referenced by libburner_payload(). |
|
Sets a start address for writing to media and write modes which allow to choose this address at all (for now: DVD+RW, DVD-RAM, formatted DVD-RW). now). The address is given in bytes. If it is not -1 then a write run will fail if choice of start address is not supported or if the block alignment of the address is not suitable for media and write mode. Alignment to 32 kB blocks is supposed to be safe with DVD media. Call burn_disc_get_multi_caps() can obtain the necessary media info. See resulting struct burn_multi_caps elements .start_adr , .start_alignment , .start_range_low , .start_range_high .
|
|
Sets the rythm by which stdio pseudo drives force their output data to be consumed by the receiving storage device. This forcing keeps the memory from being clogged with lots of pending data for slow devices.
|
|
Eventually makes use of the more modern write command AAh WRITE12 and sets the Streaming bit. With DVD-RAM and BD this can override the traditional slowdown to half nominal speed. But if it speeds up writing then it also disables error management and correction. Weigh your priorities. This affects the write operations of burn_disc_write() and subsequent calls of burn_random_access_write().
|
|
Supplies toc entries for writing - not normally required for cd mastering.
|
|
Controls buffer underrun prevention.
Referenced by libburner_payload(). |
|
Sets the write type for the write_opts struct. Note: write_type BURN_WRITE_SAO is currently not capable of writing a mix of data and audio tracks. You must use BURN_WRITE_TAO for such sessions.
|
|
Clean up after extraction and destroy extractor object.
|
|
Try to obtain a file descriptor which will deliver extracted data to normal calls of read(2). This may fail because the format is unsuitable for that, but ".wav" is ok. If this call succeeds the xtr object will have forgotten its file descriptor and libdax_audioxtr_read() will return a usage error. One may use *fd after libdax_audioxtr_destroy() and will have to close it via close(2) when done with it.
|
|
Obtain identification parameters of opened audio source.
|
|
Obtain a prediction about the extracted size based on internal information of the formatted file.
|
|
Open an audio file, check wether suitable, create extractor object.
|
|
Obtain next buffer full of extracted data in desired format (only raw audio for now).
|