## BurnerMedium

BurnerMedium

## Functions

BurnerMedia | burner_medium_get_status ()
guint64 | burner_medium_get_max_write_speed ()
guint64 * | burner_medium_get_write_speeds ()
void | burner_medium_get_free_space ()
void | burner_medium_get_capacity ()
void | burner_medium_get_data_size ()
gint64 | burner_medium_get_next_writable_address ()
gboolean | burner_medium_can_be_rewritten ()
gboolean | burner_medium_can_be_written ()
const gchar * | burner_medium_get_CD_TEXT_title ()
const gchar * | burner_medium_get_type_string ()
gchar * | burner_medium_get_tooltip ()
BurnerDrive * | burner_medium_get_drive ()
guint | burner_medium_get_track_num ()
gboolean | burner_medium_get_last_data_track_space ()
gboolean | burner_medium_get_last_data_track_address ()
gboolean | burner_medium_get_track_space ()
gboolean | burner_medium_get_track_address ()
gboolean | burner_medium_can_use_dummy_for_sao ()
gboolean | burner_medium_can_use_dummy_for_tao ()
gboolean | burner_medium_can_use_burnfree ()

## Types and Values

struct | BurnerMedium

## Description

## Functions

### burner_medium_get_status ()

    BurnerMedia
    burner_medium_get_status (BurnerMedium *medium);

Gets the medium type and state.

#### Parameters

medium | BurnerMedium |

#### Returns

a BurnerMedia.

### burner_medium_get_max_write_speed ()

    guint64
    burner_medium_get_max_write_speed (BurnerMedium *medium);

Gets the maximum speed that can be used to write to `medium` . Note: the speed are in B/sec.

#### Parameters

medium | BurnerMedium |

#### Returns

a guint64.

### burner_medium_get_write_speeds ()

    guint64 *
    burner_medium_get_write_speeds (BurnerMedium *medium);

Gets an array holding all possible speeds to write to `medium` . Note: the speed are in B/sec.

#### Parameters

medium | BurnerMedium |

#### Returns

a guint64 *.

### burner_medium_get_free_space ()

    void
    burner_medium_get_free_space (BurnerMedium *medium,
                                  goffset *bytes,
                                  goffset *blocks);

Stores in either `size` (in bytes) or `blocks` (the number of blocks) the space on the disc that can be used for writing.

#### Parameters

medium | BurnerMedium |
bytes | a gint64 * or NULL |
blocks | a gint64 * or NULL |

### burner_medium_get_capacity ()

    void
    burner_medium_get_capacity (BurnerMedium *medium,
                                goffset *bytes,
                                goffset *blocks);

Stores in either `size` (in bytes) or `blocks` (the number of blocks) the total disc space. Note that when the disc is closed this space is the one occupied by data. Otherwise it is the sum of free and used space.

#### Parameters

medium | BurnerMedium |
bytes | a gint64 * or NULL |
blocks | a gint64 * or NULL |

### burner_medium_get_data_size ()

    void
    burner_medium_get_data_size (BurnerMedium *medium,
                                 goffset *bytes,
                                 goffset *blocks);

Stores in either `size` (in bytes) or `blocks` (the number of blocks) the size used to store data (including audio on CDs) on the disc.

#### Parameters

medium | BurnerMedium |
bytes | a gint64 * or NULL |
blocks | a gint64 * or NULL |

### burner_medium_get_next_writable_address ()

    gint64
    burner_medium_get_next_writable_address
                                   (BurnerMedium *medium);

Gets the address (block number) that can be used to write a new session on `medium`

#### Parameters

medium | BurnerMedium |

#### Returns

a gint64.

### burner_medium_can_be_rewritten ()

    gboolean
    burner_medium_can_be_rewritten (BurnerMedium *medium);

Gets whether the medium can be rewritten. Note: it also checks that the drive can rewrite the medium type.

#### Parameters

medium | BurnerMedium |

#### Returns

a gboolean. TRUE if the medium can be rewritten, FALSE otherwise.

### burner_medium_can_be_written ()

    gboolean
    burner_medium_can_be_written (BurnerMedium *medium);

Gets whether the medium can be written. It also checks that the medium can write the medium.

#### Parameters

medium | BurnerMedium |

#### Returns

a gboolean. TRUE if the medium can be rewritten, FALSE otherwise.

### burner_medium_get_CD_TEXT_title ()

    const gchar *
    burner_medium_get_CD_TEXT_title (BurnerMedium *medium);

Gets the CD-TEXT title for `Medium` .

#### Parameters

medium | BurnerMedium |

#### Returns

a gchar *.

### burner_medium_get_type_string ()

    const gchar *
    burner_medium_get_type_string (BurnerMedium *medium);

Returns the medium type as a string to be displayed in a UI.

#### Parameters

medium | BurnerMedium |

#### Returns

a gchar *.

### burner_medium_get_tooltip ()

    gchar *
    burner_medium_get_tooltip (BurnerMedium *medium);

Returns a tooltip to be displayed in the UI. It is of the form {content type} {disc type} in {drive name}.

#### Parameters

medium | BurnerMedium |

#### Returns

a gchar *.

### burner_medium_get_drive ()

    BurnerDrive *
    burner_medium_get_drive (BurnerMedium *medium);

Gets the BurnerDrive in which the medium is inserted.

#### Parameters

medium | BurnerMedium |

#### Returns

a BurnerDrive. No need to unref after use.

[transfer none]

### burner_medium_get_track_num ()

    guint
    burner_medium_get_track_num (BurnerMedium *medium);

Gets the number of tracks on the medium.

#### Parameters

medium | BurnerMedium |

#### Returns

a guint.

### burner_medium_get_last_data_track_space ()

    gboolean
    burner_medium_get_last_data_track_space
                                   (BurnerMedium *medium,
                                    goffset *bytes,
                                    goffset *sectors);

Stores in either `bytes` (in bytes) or in `sectors` (in blocks) the space used by the last track on the medium.

#### Parameters

medium | BurnerMedium |
bytes | a goffset * or NULL |
sectors | a goffset * or NULL |

#### Returns

a gboolean. Returns TRUE if information could be retrieved.

### burner_medium_get_last_data_track_address ()

    gboolean
    burner_medium_get_last_data_track_address
                                   (BurnerMedium *medium,
                                    goffset *bytes,
                                    goffset *sectors);

Stores in either `bytes` (in bytes) or in `sectors` (in blocks) the address where the last session starts. This is useful when creating a multisession image or when reading the contents of this last track.

#### Parameters

medium | BurnerMedium |
bytes | a goffset * or NULL |
sectors | a goffset * or NULL |

#### Returns

a gboolean. Returns TRUE if information could be retrieved.

### burner_medium_get_track_space ()

    gboolean
    burner_medium_get_track_space (BurnerMedium *medium,
                                   guint num,
                                   goffset *bytes,
                                   goffset *sectors);

Stores in either `bytes` (in bytes) or in `sectors` (in blocks) the space used by session `num` on the disc.

#### Parameters

medium | a BurnerMedium |
num | a guint |
bytes | a goffset * or NULL |
sectors | a goffset * or NULL |

#### Returns

a gboolean. Returns TRUE if information could be retrieved; FALSE otherwise (usually when track `num` doesn't exist).

### burner_medium_get_track_address ()

    gboolean
    burner_medium_get_track_address (BurnerMedium *medium,
                                     guint num,
                                     goffset *bytes,
                                     goffset *sectors);

Stores in either `bytes` (in bytes) or in `sectors` (in blocks) the address at which the session identified by `num` starts.

#### Parameters

medium | a BurnerMedium |
num | a guint |
bytes | a goffset * or NULL |
sectors | a goffset * or NULL |

#### Returns

a gboolean. Returns TRUE if information could be retrieved; FALSE otherwise (usually when track `num` doesn't exist).

### burner_medium_can_use_dummy_for_sao ()

    gboolean
    burner_medium_can_use_dummy_for_sao (BurnerMedium *medium);

Gets whether the medium supports doing a test write with SAO on.

#### Parameters

medium | BurnerMedium |

#### Returns

a gboolean. TRUE if the medium can use SAO write mode during a test write, FALSE otherwise.

### burner_medium_can_use_dummy_for_tao ()

    gboolean
    burner_medium_can_use_dummy_for_tao (BurnerMedium *medium);

Gets whether the medium supports doing a test write with TAO on.

#### Parameters

medium | BurnerMedium |

#### Returns

a gboolean. TRUE if the medium can use TAO write mode during a test write, FALSE otherwise.

### burner_medium_can_use_burnfree ()

    gboolean
    burner_medium_can_use_burnfree (BurnerMedium *medium);

Gets whether the medium supports any burnfree technology.

#### Parameters

medium | BurnerMedium |

#### Returns

a gboolean. TRUE if the medium can use any burnfree technology, FALSE otherwise.

## Types and Values

### struct BurnerMedium

    struct BurnerMedium {
    	GObject parent_instance;
    };

Represents a physical medium currently inserted in a BurnerDrive.