1
<refentry id="libbrasero-burn-BraseroTrackStream">
3
<refentrytitle role="top_of_page" id="libbrasero-burn-BraseroTrackStream.top_of_page">BraseroTrackStream</refentrytitle>
4
<manvolnum>3</manvolnum>
5
<refmiscinfo>LIBBRASERO-BURN Library</refmiscinfo>
9
<refname>BraseroTrackStream</refname>
10
<refpurpose></refpurpose>
13
<refsynopsisdiv id="libbrasero-burn-BraseroTrackStream.synopsis" role="synopsis">
14
<title role="synopsis.title">Synopsis</title>
17
<link linkend="BraseroTrackStream">BraseroTrackStream</link>;
18
<link linkend="BraseroTrackStream">BraseroTrackStream</link> * <link linkend="brasero-track-stream-new">brasero_track_stream_new</link> (void);
19
<link linkend="BraseroBurnResult">BraseroBurnResult</link> <link linkend="brasero-track-stream-set-source">brasero_track_stream_set_source</link> (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track,
20
const <link linkend="gchar">gchar</link> *uri);
21
<link linkend="BraseroBurnResult">BraseroBurnResult</link> <link linkend="brasero-track-stream-set-format">brasero_track_stream_set_format</link> (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track,
22
<link linkend="BraseroStreamFormat">BraseroStreamFormat</link> format);
23
<link linkend="BraseroBurnResult">BraseroBurnResult</link> <link linkend="brasero-track-stream-set-boundaries">brasero_track_stream_set_boundaries</link> (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track,
24
<link linkend="gint64">gint64</link> start,
25
<link linkend="gint64">gint64</link> end,
26
<link linkend="gint64">gint64</link> gap);
27
<link linkend="gchar">gchar</link> * <link linkend="brasero-track-stream-get-source">brasero_track_stream_get_source</link> (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track,
28
<link linkend="gboolean">gboolean</link> uri);
29
<link linkend="BraseroBurnResult">BraseroBurnResult</link> <link linkend="brasero-track-stream-get-length">brasero_track_stream_get_length</link> (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track,
30
<link linkend="guint64">guint64</link> *length);
31
<link linkend="guint64">guint64</link> <link linkend="brasero-track-stream-get-start">brasero_track_stream_get_start</link> (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track);
32
<link linkend="guint64">guint64</link> <link linkend="brasero-track-stream-get-end">brasero_track_stream_get_end</link> (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track);
33
<link linkend="guint64">guint64</link> <link linkend="brasero-track-stream-get-gap">brasero_track_stream_get_gap</link> (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track);
34
<link linkend="BraseroStreamFormat">BraseroStreamFormat</link> <link linkend="brasero-track-stream-get-format">brasero_track_stream_get_format</link> (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track);
46
<refsect1 id="libbrasero-burn-BraseroTrackStream.description" role="desc">
47
<title role="desc.title">Description</title>
52
<refsect1 id="libbrasero-burn-BraseroTrackStream.details" role="details">
53
<title role="details.title">Details</title>
54
<refsect2 id="BraseroTrackStream" role="struct">
55
<title>BraseroTrackStream</title>
56
<indexterm zone="BraseroTrackStream"><primary sortas="BraseroTrackStream">BraseroTrackStream</primary></indexterm><programlisting>typedef struct {
57
BraseroTrack parent_instance;
62
<refsect2 id="brasero-track-stream-new" role="function">
63
<title>brasero_track_stream_new ()</title>
64
<indexterm zone="brasero-track-stream-new"><primary sortas="brasero_track_stream_new">brasero_track_stream_new</primary></indexterm><programlisting><link linkend="BraseroTrackStream">BraseroTrackStream</link> * brasero_track_stream_new (void);</programlisting>
66
Creates a new <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link> object.
69
This type of tracks is used to burn audio or
72
</para><variablelist role="params">
73
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link> object.
74
</simpara></listitem></varlistentry>
75
</variablelist></refsect2>
76
<refsect2 id="brasero-track-stream-set-source" role="function">
77
<title>brasero_track_stream_set_source ()</title>
78
<indexterm zone="brasero-track-stream-set-source"><primary sortas="brasero_track_stream_set_source">brasero_track_stream_set_source</primary></indexterm><programlisting><link linkend="BraseroBurnResult">BraseroBurnResult</link> brasero_track_stream_set_source (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track,
79
const <link linkend="gchar">gchar</link> *uri);</programlisting>
81
Sets the stream (song or video) uri.</para>
83
</para><variablelist role="params">
84
<varlistentry><term><parameter>track</parameter> :</term>
85
<listitem><simpara> a <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link>
86
</simpara></listitem></varlistentry>
87
<varlistentry><term><parameter>uri</parameter> :</term>
88
<listitem><simpara> a <link linkend="gchar"><type>gchar</type></link>
89
</simpara></listitem></varlistentry>
90
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="BraseroBurnResult"><type>BraseroBurnResult</type></link>. BRASERO_BURN_OK if it is successful.
91
</simpara></listitem></varlistentry>
92
</variablelist></refsect2>
93
<refsect2 id="brasero-track-stream-set-format" role="function">
94
<title>brasero_track_stream_set_format ()</title>
95
<indexterm zone="brasero-track-stream-set-format"><primary sortas="brasero_track_stream_set_format">brasero_track_stream_set_format</primary></indexterm><programlisting><link linkend="BraseroBurnResult">BraseroBurnResult</link> brasero_track_stream_set_format (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track,
96
<link linkend="BraseroStreamFormat">BraseroStreamFormat</link> format);</programlisting>
98
Sets the format of the stream.</para>
100
</para><variablelist role="params">
101
<varlistentry><term><parameter>track</parameter> :</term>
102
<listitem><simpara> a <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link>
103
</simpara></listitem></varlistentry>
104
<varlistentry><term><parameter>format</parameter> :</term>
105
<listitem><simpara> a <link linkend="BraseroStreamFormat"><type>BraseroStreamFormat</type></link>
106
</simpara></listitem></varlistentry>
107
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="BraseroBurnResult"><type>BraseroBurnResult</type></link>. BRASERO_BURN_OK if it is successful.
108
</simpara></listitem></varlistentry>
109
</variablelist></refsect2>
110
<refsect2 id="brasero-track-stream-set-boundaries" role="function">
111
<title>brasero_track_stream_set_boundaries ()</title>
112
<indexterm zone="brasero-track-stream-set-boundaries"><primary sortas="brasero_track_stream_set_boundaries">brasero_track_stream_set_boundaries</primary></indexterm><programlisting><link linkend="BraseroBurnResult">BraseroBurnResult</link> brasero_track_stream_set_boundaries (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track,
113
<link linkend="gint64">gint64</link> start,
114
<link linkend="gint64">gint64</link> end,
115
<link linkend="gint64">gint64</link> gap);</programlisting>
117
Sets the boundaries of the stream (where it starts, ends in the file;
118
how long is the gap with the next track) in nano seconds.</para>
120
</para><variablelist role="params">
121
<varlistentry><term><parameter>track</parameter> :</term>
122
<listitem><simpara> a <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link>
123
</simpara></listitem></varlistentry>
124
<varlistentry><term><parameter>start</parameter> :</term>
125
<listitem><simpara> a <link linkend="gint64"><type>gint64</type></link> or -1 to ignore
126
</simpara></listitem></varlistentry>
127
<varlistentry><term><parameter>end</parameter> :</term>
128
<listitem><simpara> a <link linkend="gint64"><type>gint64</type></link> or -1 to ignore
129
</simpara></listitem></varlistentry>
130
<varlistentry><term><parameter>gap</parameter> :</term>
131
<listitem><simpara> a <link linkend="gint64"><type>gint64</type></link> or -1 to ignore
132
</simpara></listitem></varlistentry>
133
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="BraseroBurnResult"><type>BraseroBurnResult</type></link>. BRASERO_BURN_OK if it is successful.
134
</simpara></listitem></varlistentry>
135
</variablelist></refsect2>
136
<refsect2 id="brasero-track-stream-get-source" role="function">
137
<title>brasero_track_stream_get_source ()</title>
138
<indexterm zone="brasero-track-stream-get-source"><primary sortas="brasero_track_stream_get_source">brasero_track_stream_get_source</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * brasero_track_stream_get_source (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track,
139
<link linkend="gboolean">gboolean</link> uri);</programlisting>
141
This function returns the path or the URI (if <parameter>uri</parameter> is TRUE)
142
of the stream (song or video file).</para>
144
</para><variablelist role="params">
145
<varlistentry><term><parameter>track</parameter> :</term>
146
<listitem><simpara> a <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link>
147
</simpara></listitem></varlistentry>
148
<varlistentry><term><parameter>uri</parameter> :</term>
149
<listitem><simpara> a <link linkend="gboolean"><type>gboolean</type></link>
150
</simpara></listitem></varlistentry>
151
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="gchar"><type>gchar</type></link>.
152
</simpara></listitem></varlistentry>
153
</variablelist></refsect2>
154
<refsect2 id="brasero-track-stream-get-length" role="function">
155
<title>brasero_track_stream_get_length ()</title>
156
<indexterm zone="brasero-track-stream-get-length"><primary sortas="brasero_track_stream_get_length">brasero_track_stream_get_length</primary></indexterm><programlisting><link linkend="BraseroBurnResult">BraseroBurnResult</link> brasero_track_stream_get_length (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track,
157
<link linkend="guint64">guint64</link> *length);</programlisting>
159
This function returns the length of the stream (in nano seconds)
160
taking into account the start and end time as well as the length
161
of the gap. It stores it in <parameter>length</parameter>.</para>
163
</para><variablelist role="params">
164
<varlistentry><term><parameter>track</parameter> :</term>
165
<listitem><simpara> a <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link>
166
</simpara></listitem></varlistentry>
167
<varlistentry><term><parameter>length</parameter> :</term>
168
<listitem><simpara> a <link linkend="guint64"><type>guint64</type></link>
169
</simpara></listitem></varlistentry>
170
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="BraseroBurnResult"><type>BraseroBurnResult</type></link>. BRASERO_BURN_OK if <parameter>length</parameter> was set.
171
</simpara></listitem></varlistentry>
172
</variablelist></refsect2>
173
<refsect2 id="brasero-track-stream-get-start" role="function">
174
<title>brasero_track_stream_get_start ()</title>
175
<indexterm zone="brasero-track-stream-get-start"><primary sortas="brasero_track_stream_get_start">brasero_track_stream_get_start</primary></indexterm><programlisting><link linkend="guint64">guint64</link> brasero_track_stream_get_start (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track);</programlisting>
177
This function returns start time in the stream (in nano seconds).</para>
179
</para><variablelist role="params">
180
<varlistentry><term><parameter>track</parameter> :</term>
181
<listitem><simpara> a <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link>
182
</simpara></listitem></varlistentry>
183
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="guint64"><type>guint64</type></link>.
184
</simpara></listitem></varlistentry>
185
</variablelist></refsect2>
186
<refsect2 id="brasero-track-stream-get-end" role="function">
187
<title>brasero_track_stream_get_end ()</title>
188
<indexterm zone="brasero-track-stream-get-end"><primary sortas="brasero_track_stream_get_end">brasero_track_stream_get_end</primary></indexterm><programlisting><link linkend="guint64">guint64</link> brasero_track_stream_get_end (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track);</programlisting>
190
This function returns end time in the stream (in nano seconds).</para>
192
</para><variablelist role="params">
193
<varlistentry><term><parameter>track</parameter> :</term>
194
<listitem><simpara> a <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link>
195
</simpara></listitem></varlistentry>
196
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="guint64"><type>guint64</type></link>.
197
</simpara></listitem></varlistentry>
198
</variablelist></refsect2>
199
<refsect2 id="brasero-track-stream-get-gap" role="function">
200
<title>brasero_track_stream_get_gap ()</title>
201
<indexterm zone="brasero-track-stream-get-gap"><primary sortas="brasero_track_stream_get_gap">brasero_track_stream_get_gap</primary></indexterm><programlisting><link linkend="guint64">guint64</link> brasero_track_stream_get_gap (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track);</programlisting>
203
This function returns length of the gap (in nano seconds).</para>
205
</para><variablelist role="params">
206
<varlistentry><term><parameter>track</parameter> :</term>
207
<listitem><simpara> a <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link>
208
</simpara></listitem></varlistentry>
209
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="guint64"><type>guint64</type></link>.
210
</simpara></listitem></varlistentry>
211
</variablelist></refsect2>
212
<refsect2 id="brasero-track-stream-get-format" role="function">
213
<title>brasero_track_stream_get_format ()</title>
214
<indexterm zone="brasero-track-stream-get-format"><primary sortas="brasero_track_stream_get_format">brasero_track_stream_get_format</primary></indexterm><programlisting><link linkend="BraseroStreamFormat">BraseroStreamFormat</link> brasero_track_stream_get_format (<link linkend="BraseroTrackStream">BraseroTrackStream</link> *track);</programlisting>
216
This function returns the format of the stream.</para>
218
</para><variablelist role="params">
219
<varlistentry><term><parameter>track</parameter> :</term>
220
<listitem><simpara> a <link linkend="BraseroTrackStream"><type>BraseroTrackStream</type></link>
221
</simpara></listitem></varlistentry>
222
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="BraseroStreamFormat"><type>BraseroStreamFormat</type></link>.
223
</simpara></listitem></varlistentry>
224
</variablelist></refsect2>