![]() |
![]() |
![]() |
Buzztard Bt-Core Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
Everyone who writes an application using the btcore library should create a
child of the BtApplication
class.
The base class automatically creates a GstBin element as a thread.
This can be retrieved via the bin property of an application instance.
When creating BtSong instances, the BtApplication instance needs to be passed
to the bt_song_new()
constructor, so that it can retrieve the GstBin element.
BtApplication *app; BtSong *song; ... song=bt_song_new(app);
Another module the application base class maintains is a settings instance (see BtSettings), that manages application preferences.