![]() |
![]() |
![]() |
lomo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#define LOMO_PLAYER_E_API enum LomoFormat; LomoPlayer; LomoPlayerClass; enum LomoPlayerError; gboolean (*LomoPlayerHook) (LomoPlayer *self
,LomoPlayerHookEvent event
,gpointer ret
,gpointer data
); LomoPlayerHookEvent; enum LomoPlayerHookType; LomoPlayerVTable; enum LomoState; enum LomoStateChangeReturn; #define lomo_player_append_multiple (self, streams) #define lomo_player_append_strv (self, uris) void lomo_player_clear (LomoPlayer *self
); gboolean lomo_player_dequeue (LomoPlayer *self
,gint queue_index
); gboolean lomo_player_get_auto_parse (LomoPlayer *self
); gboolean lomo_player_get_auto_play (LomoPlayer *self
); gboolean lomo_player_get_can_go_next (LomoPlayer *self
); gboolean lomo_player_get_can_go_previous (LomoPlayer *self
); gint lomo_player_get_current (LomoPlayer *self
); #define lomo_player_get_current_stream (self) gboolean lomo_player_get_gapless_mode (LomoPlayer *self
); gint64 lomo_player_get_length (LomoPlayer *self
); gboolean lomo_player_get_mute (LomoPlayer *self
); gint lomo_player_get_n_streams (LomoPlayer *self
); gint lomo_player_get_next (LomoPlayer *self
); LomoStream * lomo_player_get_nth_stream (LomoPlayer *self
,gint index
); const GList * lomo_player_get_playlist (LomoPlayer *self
); gint64 lomo_player_get_position (LomoPlayer *self
); gint lomo_player_get_previous (LomoPlayer *self
); gboolean lomo_player_get_random (LomoPlayer *self
); gboolean lomo_player_get_repeat (LomoPlayer *self
); LomoState lomo_player_get_state (LomoPlayer *self
); gint lomo_player_get_stream_index (LomoPlayer *self
,LomoStream *stream
); gint lomo_player_get_volume (LomoPlayer *self
); #define lomo_player_go_next (self, error) #define lomo_player_go_previous (self, error) void lomo_player_hook_add (LomoPlayer *self
,LomoPlayerHook func
,gpointer data
); void lomo_player_hook_remove (LomoPlayer *self
,LomoPlayerHook func
); void lomo_player_insert (LomoPlayer *self
,LomoStream *stream
,gint index
); void lomo_player_insert_multiple (LomoPlayer *self
,GList *streams
,gint index
); void lomo_player_insert_strv (LomoPlayer *self
,const gchar *const *uris
,gint index
); void lomo_player_insert_uri (LomoPlayer *self
,const gchar *uri
,gint index
); LomoPlayer * lomo_player_new (gchar *option_name
,...
); #define lomo_player_pause (self, error) #define lomo_player_play (self, error) gint lomo_player_queue (LomoPlayer *self
,gint index
); void lomo_player_queue_clear (LomoPlayer *self
); gint lomo_player_queue_get_n_streams (LomoPlayer *self
); LomoStream * lomo_player_queue_get_nth_stream (LomoPlayer *self
,gint queue_index
); gint lomo_player_queue_get_stream_index (LomoPlayer *self
,LomoStream *stream
); gboolean lomo_player_remove (LomoPlayer *self
,gint index
); void lomo_player_set_auto_parse (LomoPlayer *self
,gboolean auto_parse
); void lomo_player_set_auto_play (LomoPlayer *self
,gboolean auto_play
); gboolean lomo_player_set_current (LomoPlayer *self
,gint index
,GError **error
); void lomo_player_set_gapless_mode (LomoPlayer *self
,gboolean gapless_mode
); gboolean lomo_player_set_mute (LomoPlayer *self
,gboolean mute
); gboolean lomo_player_set_position (LomoPlayer *self
,gint64 position
); void lomo_player_set_random (LomoPlayer *self
,gboolean val
); void lomo_player_set_repeat (LomoPlayer *self
,gboolean val
); gboolean lomo_player_set_state (LomoPlayer *self
,LomoState state
,GError **error
); gboolean lomo_player_set_volume (LomoPlayer *self
,gint val
); gint64 lomo_player_stats_get_stream_time_played (LomoPlayer *self
); #define lomo_player_stop (self, error)
"auto-parse" gboolean : Read / Write / Construct "auto-play" gboolean : Read / Write / Construct "can-go-next" gboolean : Read "can-go-previous" gboolean : Read "current" gint : Read / Write / Construct "gapless-mode" gboolean : Read / Write / Construct "mute" gboolean : Read / Write / Construct "position" gint64 : Read / Write "random" gboolean : Read / Write / Construct "repeat" gboolean : Read / Write / Construct "state" LomoStateEnumType : Read / Write / Construct "volume" gint : Read / Write / Construct
"all-tags" :Run Last
"change" :Run Last
"clear" :Run Last
"dequeue" :Run Last
"eos" :Run Last
"error" :Run Last
"insert" :Run Last
"mute" :Run Last
"pause" :Run Last
"play" :Run Last
"pre-change" :Run Last
"queue" :Run Last
"queue-clear" :Run Last
"random" :Run Last
"remove" :Run Last
"repeat" :Run Last
"seek" :Run Last
"state-changed" :Run Last
"stop" :Run Last
"tag" :Run Last
"volume" :Run Last
typedef enum { LOMO_FORMAT_INVALID = -1, LOMO_FORMAT_TIME = 0, LOMO_FORMAT_PERCENT = 1, LOMO_FORMAT_N_FORMATS } LomoFormat;
Define in which format data is expressed
typedef enum { LOMO_PLAYER_ERROR_MISSING_METHOD = 1, LOMO_PLAYER_ERROR_MISSING_PIPELINE, LOMO_PLAYER_ERROR_UNKNOW_STATE, LOMO_PLAYER_ERROR_SET_STATE, LOMO_PLAYER_ERROR_BLOCK_BY_HOOK } LomoPlayerError;
gboolean (*LomoPlayerHook) (LomoPlayer *self
,LomoPlayerHookEvent event
,gpointer ret
,gpointer data
);
Handles hook events
|
A LomoPlayer |
|
The LomoPlayerHookEvent to handle |
|
Alternative value for return |
|
User data |
Returns : |
TRUE if event was handle and stop the default implementation,
FALSE if other hooks and default implementation should be called |
typedef struct { LomoPlayerHookType type; gint64 old, new; // seek gint volume; // volume LomoStream *stream; // insert, remove, queue, dequeue, tag, all_tags gint pos; // insert, remove gint queue_pos; // queue, dequeue gint from, to; // change const gchar *tag; // tag gboolean value; // random, repeat, mute GError *error; // error } LomoPlayerHookEvent;
Packs relative for a concrete event, depending the type of the event more or less fields will be set, others will be unconcrete.
LomoPlayerHookType |
Type of the event |
gint64 |
Old position (seek type event) |
gint64 |
New position (seek type event) |
gint |
Volumen value (volume type event) |
LomoStream * |
Stream object (insert, remove, queue, dequeue, tag and all_tags event types) |
gint |
Position (insert and remove event types) |
gint |
Queue position (queue and dequeue event types) |
gint |
From position (change event type) |
gint |
From position (change event type) |
const gchar * |
Tag value (tag event type) |
gboolean |
TRUE or FALSE (randonm, repeat and mute event types) |
GError * |
A GError (error event type) |
typedef enum { LOMO_PLAYER_HOOK_PLAY, LOMO_PLAYER_HOOK_PAUSE, LOMO_PLAYER_HOOK_STOP, LOMO_PLAYER_HOOK_SEEK, LOMO_PLAYER_HOOK_VOLUME, LOMO_PLAYER_HOOK_MUTE, LOMO_PLAYER_HOOK_INSERT, LOMO_PLAYER_HOOK_REMOVE, LOMO_PLAYER_HOOK_QUEUE, LOMO_PLAYER_HOOK_DEQUEUE, LOMO_PLAYER_HOOK_QUEUE_CLEAR, LOMO_PLAYER_HOOK_CHANGE, LOMO_PLAYER_HOOK_CLEAR, LOMO_PLAYER_HOOK_REPEAT, LOMO_PLAYER_HOOK_RANDOM, LOMO_PLAYER_HOOK_EOS, LOMO_PLAYER_HOOK_ERROR, LOMO_PLAYER_HOOK_TAG, LOMO_PLAYER_HOOK_ALL_TAGS } LomoPlayerHookType;
Determines the type of hook
Play hook | |
Pause hook | |
Stop hook | |
Seek hook | |
Volume hook | |
Mute hook | |
Insert hook | |
Remove hook | |
Queue hook | |
Dequeue hook | |
Queue clear hook | |
Changed hook | |
Clear hook | |
Repeat hook | |
Random hook | |
EOS hook | |
Error hook | |
Tag hook | |
All tags hook |
typedef struct { GstElement* (*set_uri) (GstElement *old_pipeline, const gchar *uri, GHashTable *opts); GstStateChangeReturn (*set_state) (GstElement *pipeline, GstState state); GstState (*get_state) (GstElement *pipeline); gboolean (*set_position) (GstElement *pipeline, GstFormat format, gint64 position); gboolean (*get_position) (GstElement *pipeline, GstFormat *format, gint64 *position); gboolean (*get_length) (GstElement *pipeline, GstFormat *format, gint64 *duration); // 0 lowest, 100 highest (there is not a common range over all posible // sinks, so make it relative and let vfunc set it gboolean (*set_volume) (GstElement *pipeline, gint volume); gint (*get_volume) (GstElement *pipeline); // Can be omited gboolean (*set_mute) (GstElement *pipeline, gboolean mute); gboolean (*get_mute) (GstElement *pipeline); } LomoPlayerVTable;
Override default methods from LomoPlayer. This method for override methods will be replaced with class methods for LomoPlayer in the future.
Method to create or reset a GstElement for new URI | |
Method to set state on a GstElement | |
Method to get volume from a GstElement | |
Method to set position from a GstElement in the specified format | |
Method to get position and format from a GstElement | |
Method to get the lenght of the stream currently in GstElement | |
Method to set the volume on a GstElement | |
Method to get the volume from a GstElement | |
Method to set mute on a GstElement. [allow-none] | |
Method to get mute on a GstElement. [allow-none] |
typedef enum { LOMO_STATE_INVALID = -1, LOMO_STATE_STOP = 0, LOMO_STATE_PLAY = 1, LOMO_STATE_PAUSE = 2, LOMO_STATE_N_STATES } LomoState;
Defines the state of the LomoPlayer object
typedef enum { LOMO_STATE_CHANGE_SUCCESS = GST_STATE_CHANGE_SUCCESS, LOMO_STATE_CHANGE_ASYNC = GST_STATE_CHANGE_ASYNC, LOMO_STATE_CHANGE_NO_PREROLL = GST_STATE_CHANGE_NO_PREROLL, LOMO_STATE_CHANGE_FAILURE = GST_STATE_CHANGE_FAILURE, } LomoStateChangeReturn;
Defines how the state change is performed after a lomo_player_set_state()
call
The state has changed | |
State change will append async | |
See GST_STATE_CHANGE_NO_PREROLL
|
|
State change has failed. |
#define lomo_player_append_multiple(self, streams) lomo_player_insert_multiple(self, streams, -1)
#define lomo_player_append_strv(self, uris) lomo_player_insert_strv(self, uris, -1)
gboolean lomo_player_dequeue (LomoPlayer *self
,gint queue_index
);
Removes the element indicated by queue_pos
from the queue
|
a LomoPlayer |
|
Index of the queue to dequeue |
Returns : |
TRUE if element was dequeue, FALSE if queue_pos was invalid |
gboolean lomo_player_get_auto_parse (LomoPlayer *self
);
Gets the auto-parse property value.
|
a LomoPlayer |
Returns : |
The auto-parse property value. |
gboolean lomo_player_get_auto_play (LomoPlayer *self
);
Gets the auto-play property value.
|
a LomoPlayer |
Returns : |
The auto-play property value. |
gboolean lomo_player_get_can_go_next (LomoPlayer *self
);
Gets the value of the 'can-go-next' property
|
A LomoPlayer |
Returns : |
The value |
gboolean lomo_player_get_can_go_previous (LomoPlayer *self
);
Gets the value of the 'can-go-previous' property
|
A LomoPlayer |
Returns : |
The value |
gint lomo_player_get_current (LomoPlayer *self
);
Gets the index for the current active stream in the player
|
A LomoPlayer |
Returns : |
the index |
#define lomo_player_get_current_stream(self) lomo_player_get_nth_stream(self, lomo_player_get_current(self))
gboolean lomo_player_get_gapless_mode (LomoPlayer *self
);
Returns whether the gapless mode is active or not
|
A LomoPlayer |
Returns : |
TRUE if gapless mode is enabled |
gboolean lomo_player_get_mute (LomoPlayer *self
);
Gets current mute value
|
a LomoPlayer |
Returns : |
current mute value |
gint lomo_player_get_next (LomoPlayer *self
);
Gets the position of the next stream in the playlist following random and repeat behaviours
|
a LomoPlayer |
Returns : |
the position of the next stream, or -1 if none |
LomoStream * lomo_player_get_nth_stream (LomoPlayer *self
,gint index
);
Gets the LomoStream at the given position
|
a LomoPlayer |
|
the index of the LomoStream, starting from 0 |
Returns : |
the LomoStream, or NULL if index is off the list. [transfer none]
|
const GList * lomo_player_get_playlist (LomoPlayer *self
);
Gets current playlist
|
a LomoPlayer |
Returns : |
a GList of LomoStream. Should not be modified. [element-type Lomo.Stream][transfer none] |
gint lomo_player_get_previous (LomoPlayer *self
);
Gets the position of the previous stream in the playlist following random and repeat behaviours
|
a LomoPlayer |
Returns : |
the position of the previous stream, or -1 if none |
gboolean lomo_player_get_random (LomoPlayer *self
);
Gets current value of the random behaviour
|
a LomoPlayer |
Returns : |
TRUE if repeat is applied, FALSE otherwise |
gboolean lomo_player_get_repeat (LomoPlayer *self
);
Gets current value of the repeat behaviour
|
a LomoPlayer |
Returns : |
TRUE if repeat is applied, FALSE otherwise |
LomoState lomo_player_get_state (LomoPlayer *self
);
Gets current state from self
|
The LomoPlayer |
Returns : |
a LomoState representing current state |
gint lomo_player_get_stream_index (LomoPlayer *self
,LomoStream *stream
);
gint lomo_player_get_volume (LomoPlayer *self
);
Gets current volume (between 0 and 100)
|
a LomoPlayer |
Returns : |
current volume |
#define lomo_player_go_next(self,error) lomo_player_set_current(self, lomo_player_get_next(self), error)
#define lomo_player_go_previous(self,error) lomo_player_set_current(self, lomo_player_get_previous(self), error)
void lomo_player_hook_add (LomoPlayer *self
,LomoPlayerHook func
,gpointer data
);
Add a hook to the hook system
|
a LomoPlayer |
|
a LomoPlayerHook function. [scope call] |
|
data to pass to func or NULL to ignore |
void lomo_player_hook_remove (LomoPlayer *self
,LomoPlayerHook func
);
Remove a hook from the hook system
|
a LomoPlayer |
|
a LomoPlayerHook function. [scope call] |
void lomo_player_insert (LomoPlayer *self
,LomoStream *stream
,gint index
);
Inserts a LomoStream in the internal playlist
|
a LomoPlayer |
|
a LomoStream which will be owner by self . [transfer none]
|
|
position to insert the element, If this is negative, or is larger than the number of elements in the list, the new element is added on to the end of the list. |
void lomo_player_insert_multiple (LomoPlayer *self
,GList *streams
,gint index
);
Inserts multiple streams in the internal playlist
|
a LomoPlayer |
|
a GList of LomoStream which will be owned by self . [transfer none]
|
|
Index to insert the elements, If this is negative, or is larger than the number of elements in the list, the new elements are added on to the end of the list. |
void lomo_player_insert_strv (LomoPlayer *self
,const gchar *const *uris
,gint index
);
Inserts multiple URIs into self
|
a LomoPlayer |
|
a NULL-terminated array of URIs. [transfer none][array zero-terminated=1][element-type utf8] |
|
Index to insert the elements, If this is negative, or is larger than the number of elements in the list, the new elements are added on to the end of the list. |
void lomo_player_insert_uri (LomoPlayer *self
,const gchar *uri
,gint index
);
Inserts a LomoStream in the internal playlist
|
a LomoPlayer |
|
a URI |
|
position to insert the element, If this is negative, or is larger than the number of elements in the list, the new element is added on to the end of the list. |
LomoPlayer * lomo_player_new (gchar *option_name
,...
);
Creates a new LomoPlayer with options
|
First option name |
|
A NULL -terminated pairs of option-name,option-value |
Returns : |
the new created LomoPlayer |
#define lomo_player_pause(self,error) lomo_player_set_state(self, LOMO_STATE_PAUSE, error)
#define lomo_player_play(self,error) lomo_player_set_state(self, LOMO_STATE_PLAY, error)
gint lomo_player_queue (LomoPlayer *self
,gint index
);
Queues the element for inmediate play after active element
|
a LomoPlayer |
|
position of the element to queue |
Returns : |
index of the elemement in the queue |
void lomo_player_queue_clear (LomoPlayer *self
);
Removes all LomoStream queued
|
a LomoPlayer |
gint lomo_player_queue_get_n_streams (LomoPlayer *self
);
Returns the number of streams in the queue
|
A LomoPlayer |
Returns : |
Number of streams |
LomoStream * lomo_player_queue_get_nth_stream (LomoPlayer *self
,gint queue_index
);
Gets the LomoStream at the given position in the queue
|
a LomoPlayer |
|
The queue index of the element, starting from 0 |
Returns : |
the LomoStream, or NULL if the position is off the end of the
queue. [transfer none]
|
gint lomo_player_queue_get_stream_index (LomoPlayer *self
,LomoStream *stream
);
gboolean lomo_player_remove (LomoPlayer *self
,gint index
);
Removes a LomoStream from the internal playlist using and index This also implies a reference decrease on the element
|
a LomoPlayer |
|
Index of the LomoStream to remove |
Returns : |
TRUE is position was remove, FALSE otherwise |
void lomo_player_set_auto_parse (LomoPlayer *self
,gboolean auto_parse
);
Sets the auto-parse property value.
|
a LomoPlayer |
|
new value for auto-parse property |
void lomo_player_set_auto_play (LomoPlayer *self
,gboolean auto_play
);
Sets the auto-play property value.
|
a LomoPlayer |
|
new value for auto-play property |
gboolean lomo_player_set_current (LomoPlayer *self
,gint index
,GError **error
);
Gets the current active item
|
An LomoPlayer |
|
Index |
|
Location for errors |
Returns : |
TRUE on successfull, FALSE otherwise |
void lomo_player_set_gapless_mode (LomoPlayer *self
,gboolean gapless_mode
);
Enables or disables the gapless mode
|
A LomoPlayer |
|
Whatever the gapless mode has to be actived or not |
gboolean lomo_player_set_mute (LomoPlayer *self
,gboolean mute
);
Sets mute
|
a LomoPlayer |
|
new value for mute |
Returns : |
TRUE on success, FALSE if an error ocurred |
void lomo_player_set_random (LomoPlayer *self
,gboolean val
);
Sets the value of the random behaviour, if value
is TRUE
playlist will be
randomized
|
a LomoPlayer |
|
Value for random behaviour |
void lomo_player_set_repeat (LomoPlayer *self
,gboolean val
);
Sets the value of the repeat behaviour
|
a LomoPlayer |
|
Value for repeat behaviour |
gboolean lomo_player_set_state (LomoPlayer *self
,LomoState state
,GError **error
);
Changes state of self
to state
.
|
The LomoPlayer |
|
The LomoState to set |
|
Location to store error (if any) |
Returns : |
TRUE if successful, FALSE otherwise |
gboolean lomo_player_set_volume (LomoPlayer *self
,gint val
);
Sets volume, val must be between 0 and 100
|
a LomoPlayer |
|
new value for volume |
Returns : |
TRUE on success, FALSE if an error ocurred |
gint64 lomo_player_stats_get_stream_time_played
(LomoPlayer *self
);
|
a LomoPlayer |
Returns : |
Microseconds stream was played |
"auto-parse"
property"auto-parse" gboolean : Read / Write / Construct
Control if LomoPlayer must parse automatically all inserted streams
Default value: TRUE
"auto-play"
property"auto-play" gboolean : Read / Write / Construct
Control if LomoPlayer should auto start play when any stream is available
Default value: FALSE
"can-go-next"
property"can-go-next" gboolean : Read
Check if player can forward in playlist
Default value: FALSE
"can-go-previous"
property"can-go-previous" gboolean : Read
Check if player can backwards in playlist
Default value: FALSE
"current"
property"current" gint : Read / Write / Construct
Current active stream
Allowed values: >= G_MAXULONG
Default value: -1
"gapless-mode"
property"gapless-mode" gboolean : Read / Write / Construct
Gapless mode.
Default value: TRUE
"position"
property"position" gint64 : Read / Write
Position within the stream
Allowed values: >= -1
Default value: 0
"random"
property"random" gboolean : Read / Write / Construct
Enables or disables random mode
Default value: FALSE
"repeat"
property"repeat" gboolean : Read / Write / Construct
Enables or disables repeat mode
Default value: FALSE
"state"
property "state" LomoStateEnumType : Read / Write / Construct
State of the player
Default value: LOMO_STATE_STOP
"volume"
property"volume" gint : Read / Write / Construct
Volume value, from 0 to 100.
Allowed values: [0,100]
Default value: 50
"all-tags"
signalvoid user_function (LomoPlayer *lomo,
GObject *stream,
gpointer user_data) : Run Last
Emitted when all (or no more to be discoverd) tag are found for a LomoStream
|
the object that received the signal |
|
LomoStream which discoved all his tags |
|
user data set when the signal handler was connected. |
"change"
signalvoid user_function (LomoPlayer *lomo,
gint from,
gint to,
gpointer user_data) : Run Last
Emitted when the active element in the internal playlist changes
|
the object that received the signal |
|
Active element before the change |
|
Active element after the change |
|
user data set when the signal handler was connected. |
"clear"
signalvoid user_function (LomoPlayer *lomo,
gpointer user_data) : Run Last
Emitted when the playlist of a LomoPlayer is cleared
|
the object that received the signal |
|
user data set when the signal handler was connected. |
"dequeue"
signalvoid user_function (LomoPlayer *lomo,
GObject *stream,
gint position,
gint arg3,
gpointer user_data) : Run Last
Emitted when a LomoStream is dequeue inside a LomoPlayer
|
the object that received the signal |
|
LomoStream object that was removed |
|
last position of the stream in the queue |
|
user data set when the signal handler was connected. |
"eos"
signalvoid user_function (LomoPlayer *lomo,
gpointer user_data) : Run Last
Emitted when current stream reaches end of stream, think about end of file for file descriptors.
|
the object that received the signal |
|
user data set when the signal handler was connected. |
"error"
signalvoid user_function (LomoPlayer *lomo,
GObject *error,
gpointer arg2,
gpointer user_data) : Run Last
Emitted when some error was ocurred.
|
the object that received the signal |
|
error ocurred |
|
user data set when the signal handler was connected. |
"insert"
signalvoid user_function (LomoPlayer *lomo,
GObject *stream,
gint position,
gpointer user_data) : Run Last
Emitted when a LomoStream is inserted into LomoPlayer
|
the object that received the signal |
|
LomoStream object that was added |
|
position of the stream in the playlist |
|
user data set when the signal handler was connected. |
"mute"
signalvoid user_function (LomoPlayer *lomo,
gboolean mute,
gpointer user_data) : Run Last
Emitted when LomoPlayer mutes or unmutes
|
the object that received the signal |
|
Current value state of mute |
|
user data set when the signal handler was connected. |
"pause"
signalvoid user_function (LomoPlayer *lomo,
gpointer user_data) : Run Last
Emitted when LomoPlayer changes his state to LOMO_STATE_PAUSE
|
the object that received the signal |
|
user data set when the signal handler was connected. |
"play"
signalvoid user_function (LomoPlayer *lomo,
gpointer user_data) : Run Last
Emitted when LomoPlayer changes his state to LOMO_STATE_PLAY
|
the object that received the signal |
|
user data set when the signal handler was connected. |
"pre-change"
signalvoid user_function (LomoPlayer *lomo,
gpointer user_data) : Run Last
Emitted before an change event
This signal is deprecated, use LomoPlayerHook as a replacement
|
the object that received the signal |
|
active stream at the current instant |
|
active stream after the change will be completed |
|
user data set when the signal handler was connected. |
"queue"
signalvoid user_function (LomoPlayer *lomo,
GObject *stream,
gint position,
gint arg3,
gpointer user_data) : Run Last
Emitted when a LomoStream is queued inside a LomoPlayer
|
the object that received the signal |
|
LomoStream object that was queued |
|
position of the stream in the queue |
|
user data set when the signal handler was connected. |
"queue-clear"
signalvoid user_function (LomoPlayer *lomo,
gpointer user_data) : Run Last
Emitted when the queue of a LomoPlayer is cleared
|
the object that received the signal |
|
user data set when the signal handler was connected. |
"random"
signalvoid user_function (LomoPlayer *lomo,
gboolean repeat,
gpointer user_data) : Run Last
Emitted when value of the random behaviour changes
|
the object that received the signal |
|
value of random behaviour |
|
user data set when the signal handler was connected. |
"remove"
signalvoid user_function (LomoPlayer *lomo,
GObject *stream,
gint position,
gpointer user_data) : Run Last
Emitted when a LomoStream is remove from LomoPlayer
|
the object that received the signal |
|
LomoStream object that was removed |
|
last position of the stream in the playlist |
|
user data set when the signal handler was connected. |
"repeat"
signalvoid user_function (LomoPlayer *lomo,
gboolean repeat,
gpointer user_data) : Run Last
Emitted when value of the repeat behaviour changes
|
the object that received the signal |
|
value of repeat behaviour |
|
user data set when the signal handler was connected. |
"seek"
signalvoid user_function (LomoPlayer *lomo,
gint64 from,
gint64 to,
gpointer user_data) : Run Last
Emitted when LomoPlayer seeks in a stream
|
the object that received the signal |
|
Position before the seek |
|
Position after the seek |
|
user data set when the signal handler was connected. |
"state-changed"
signalvoid user_function (LomoPlayer *lomo,
gpointer user_data) : Run Last
Emitted when LomoPlayer changes his state.
|
the object that received the signal |
|
user data set when the signal handler was connected. |
"stop"
signalvoid user_function (LomoPlayer *lomo,
gpointer user_data) : Run Last
Emitted when LomoPlayer changes his state to LOMO_STATE_STOP
|
the object that received the signal |
|
user data set when the signal handler was connected. |
"tag"
signalvoid user_function (LomoPlayer *lomo,
GObject *stream,
gchar *tag,
gpointer user_data) : Run Last
Emitted when some tag is found in a stream.
|
the object that received the signal |
|
LomoStream that gives a new tag. [type LomoStream] |
|
Discoved tag |
|
user data set when the signal handler was connected. |
"volume"
signalvoid user_function (LomoPlayer *lomo,
gint volume,
gpointer user_data) : Run Last
Emitted when LomoPlayer changes his volume
|
the object that received the signal |
|
New value of volume (between 0 and 100) |
|
user data set when the signal handler was connected. |