AgsSndfile

AgsSndfile — Libsndfile wrapper

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Includes

#include <ags/audio/file/ags_sndfile.h>

Description

AgsSndfile is the base object to ineract with libsndfile.

Functions

AGS_SNDFILE_GET_OBJ_MUTEX()

#define AGS_SNDFILE_GET_OBJ_MUTEX(obj) (&(((AgsSndfile *) obj)->obj_mutex))

ags_sndfile_test_flags ()

gboolean
ags_sndfile_test_flags (AgsSndfile *sndfile,
                        guint flags);

Test flags to be set on sndfile .

Parameters

sndfile

the AgsSndfile

 

flags

the flags

 

Returns

TRUE if flags are set, else FALSE

Since: 3.0.0


ags_sndfile_set_flags ()

void
ags_sndfile_set_flags (AgsSndfile *sndfile,
                       guint flags);

Enable a feature of sndfile .

Parameters

sndfile

the AgsSndfile

 

flags

see AgsSndfileFlags

 

Since: 3.0.0


ags_sndfile_unset_flags ()

void
ags_sndfile_unset_flags (AgsSndfile *sndfile,
                         guint flags);

Disable a feature of sndfile .

Parameters

sndfile

the AgsSndfile

 

flags

see AgsSndfileFlags

 

Since: 3.0.0


ags_sndfile_check_suffix ()

gboolean
ags_sndfile_check_suffix (gchar *filename);

Check suffix.

Parameters

filename

the filename

 

Returns

TRUE if suffix supported, else FALSE

Since: 3.6.0


ags_sndfile_new ()

AgsSndfile *
ags_sndfile_new ();

Creates a new instance of AgsSndfile.

Returns

the new AgsSndfile.

Since: 3.0.0

Types and Values

enum AgsSndfileFlags

Enum values to control the behavior or indicate internal state of AgsSndfile by enable/disable as flags.

Members

AGS_SNDFILE_ADDED_TO_REGISTRY

the sndfile was added to registry, see AgsConnectable::add_to_registry()

 

AGS_SNDFILE_CONNECTED

indicates the sndfile was connected by calling AgsConnectable::connect()

 

AGS_SNDFILE_VIRTUAL

virtual IO

 

AGS_SNDFILE_FILL_CACHE

fill cache