![]() |
![]() |
![]() |
Buzztard Bt-Cmd Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include "bt-cmd.h" struct BtCmdApplication; BtCmdApplication * bt_cmd_application_new (gboolean quiet
); gboolean bt_cmd_application_play (const BtCmdApplication *self
,const gchar *input_file_name
); gboolean bt_cmd_application_info (const BtCmdApplication *self
,const gchar *input_file_name
,const gchar *output_file_name
); gboolean bt_cmd_application_convert (const BtCmdApplication *self
,const gchar *input_file_name
,const gchar *output_file_name
); gboolean bt_cmd_application_encode (const BtCmdApplication *self
,const gchar *input_file_name
,const gchar *output_file_name
);
This class implements the body of the buzztard commandline tool. It provides application level function like play, convert and encode songs.
struct BtCmdApplication;
BtApplication subclass for the commandline application
BtCmdApplication * bt_cmd_application_new (gboolean quiet
);
Create a new instance
|
do not output on stdout |
Returns : |
the new instance or NULL in case of an error |
gboolean bt_cmd_application_play (const BtCmdApplication *self
,const gchar *input_file_name
);
load and play the file of the supplied name
|
the application instance to run |
|
the file to play |
Returns : |
TRUE for success |
gboolean bt_cmd_application_info (const BtCmdApplication *self
,const gchar *input_file_name
,const gchar *output_file_name
);
load the file of the supplied name and print information about it to stdout.
|
the application instance to run |
|
the file to print information about |
|
the file to put informations from the input_file_name. If the given file_name is NULL, stdout is used to print the informations. |
Returns : |
TRUE for success |
gboolean bt_cmd_application_convert (const BtCmdApplication *self
,const gchar *input_file_name
,const gchar *output_file_name
);
Load the file of the supplied name and convert it into a buzztard song file. The type of the input file is automatically determined.
|
the application instance to run |
|
the file to read in |
|
the file to generate |
Returns : |
TRUE for success |
gboolean bt_cmd_application_encode (const BtCmdApplication *self
,const gchar *input_file_name
,const gchar *output_file_name
);
Load the file of the supplied name and encode it as an audio file. The type of the output file is automatically determined from the filename extension.
|
the application instance to run |
|
the file to read in |
|
the file to generate |
Returns : |
TRUE for success |