BurnerTrackStream

BurnerTrackStream

Functions

Types and Values

Description

Functions

burner_track_stream_new ()

BurnerTrackStream *
burner_track_stream_new (void);

Creates a new BurnerTrackStream object.

This type of tracks is used to burn audio or video files.

Returns

a BurnerTrackStream object.


burner_track_stream_set_source ()

BurnerBurnResult
burner_track_stream_set_source (BurnerTrackStream *track,
                                const gchar *uri);

Sets the stream (song or video) uri.

Note: it resets the end point of the track to 0 but keeps start point and gap unchanged.

Parameters

track

a BurnerTrackStream

 

uri

a gchar

 

Returns

a BurnerBurnResult. BURNER_BURN_OK if it is successful.


burner_track_stream_set_format ()

BurnerBurnResult
burner_track_stream_set_format (BurnerTrackStream *track,
                                BurnerStreamFormat format);

Sets the format of the stream.

Parameters

track

a BurnerTrackStream

 

format

a BurnerStreamFormat

 

Returns

a BurnerBurnResult. BURNER_BURN_OK if it is successful.


burner_track_stream_set_boundaries ()

BurnerBurnResult
burner_track_stream_set_boundaries (BurnerTrackStream *track,
                                    gint64 start,
                                    gint64 end,
                                    gint64 gap);

Sets the boundaries of the stream (where it starts, ends in the file; how long is the gap with the next track) in nano seconds.

Parameters

track

a BurnerTrackStream

 

start

a gint64 or -1 to ignore

 

end

a gint64 or -1 to ignore

 

gap

a gint64 or -1 to ignore

 

Returns

a BurnerBurnResult. BURNER_BURN_OK if it is successful.


burner_track_stream_get_source ()

gchar *
burner_track_stream_get_source (BurnerTrackStream *track,
                                gboolean uri);

This function returns the path or the URI (if uri is TRUE) of the stream (song or video file).

Note: this function resets any length previously set to 0.

Parameters

track

a BurnerTrackStream

 

uri

a gboolean

 

Returns

a gchar.


burner_track_stream_get_length ()

BurnerBurnResult
burner_track_stream_get_length (BurnerTrackStream *track,
                                guint64 *length);

This function returns the length of the stream (in nano seconds) taking into account the start and end time as well as the length of the gap. It stores it in length .

Parameters

track

a BurnerTrackStream

 

length

a guint64

 

Returns

a BurnerBurnResult. BURNER_BURN_OK if length was set.


burner_track_stream_get_start ()

guint64
burner_track_stream_get_start (BurnerTrackStream *track);

This function returns start time in the stream (in nano seconds).

Parameters

track

a BurnerTrackStream

 

Returns

a guint64.


burner_track_stream_get_end ()

guint64
burner_track_stream_get_end (BurnerTrackStream *track);

This function returns end time in the stream (in nano seconds).

Parameters

track

a BurnerTrackStream

 

Returns

a guint64.


burner_track_stream_get_gap ()

guint64
burner_track_stream_get_gap (BurnerTrackStream *track);

This function returns length of the gap (in nano seconds).

Parameters

track

a BurnerTrackStream

 

Returns

a guint64.


burner_track_stream_get_format ()

BurnerStreamFormat
burner_track_stream_get_format (BurnerTrackStream *track);

This function returns the format of the stream.

Parameters

track

a BurnerTrackStream

 

Returns

a BurnerStreamFormat.

Types and Values

struct BurnerTrackStream

struct BurnerTrackStream {
	BurnerTrack parent_instance;
};