BtApplication

BtApplication — base class for a buzztard based application

Synopsis

#include <libbtcore/core.h>

struct              BtApplication;

Object Hierarchy

  GObject
   +----BtApplication

Properties

  "bin"                      GstBin*               : Read
  "settings"                 BtSettings*           : Read

Description

Every application using the libbtcore library should inherit from this class.

The base class automatically creates a GstBin element as a container for the song. This can be retrieved via the "bin" property. 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.

Details

struct BtApplication

struct BtApplication;

base object for a buzztard based application

Property Details

The "bin" property

  "bin"                      GstBin*               : Read

The top-level gstreamer element for the song, e.g. a GstPipeline or GstBin.


The "settings" property

  "settings"                 BtSettings*           : Read

applications configuration settings.