krähemann.com

AgsWasapiDevin

AgsWasapiDevin — Output to soundcard

Properties

gpointer attack Read
gdouble bpm Read / Write
gpointer buffer Read
guint buffer-size Read / Write
gdouble delay-factor Read / Write
gchar * device Read / Write
guint dsp-channels Read / Write
guint format Read / Write
guint pcm-channels Read / Write
guint samplerate Read / Write

Object Hierarchy

    GObject
    ╰── AgsWasapiDevin

Implemented Interfaces

AgsWasapiDevin implements AgsConnectable and AgsSoundcard.

Includes

#include <ags/audio/wasapi/ags_wasapi_devin.h>

Description

AgsWasapiDevin represents a soundcard and supports output.

Functions

AGS_WASAPI_DEVIN_GET_OBJ_MUTEX()

#define AGS_WASAPI_DEVIN_GET_OBJ_MUTEX(obj) (&(((AgsWasapiDevin *) obj)->obj_mutex))

ags_wasapi_devin_error_quark ()

GQuark
ags_wasapi_devin_error_quark ();

ags_wasapi_devin_test_flags ()

gboolean
ags_wasapi_devin_test_flags (AgsWasapiDevin *wasapi_devin,
                             guint flags);

Test flags to be set on wasapi_devin .

Parameters

wasapi_devin

the AgsWasapiDevin

 

flags

the flags

 

Returns

TRUE if flags are set, else FALSE

Since: 3.0.0


ags_wasapi_devin_set_flags ()

void
ags_wasapi_devin_set_flags (AgsWasapiDevin *wasapi_devin,
                            guint flags);

Enable a feature of wasapi_devin .

Parameters

wasapi_devin

the AgsWasapiDevin

 

flags

see AgsWasapiDevinFlags

 

Since: 3.0.0


ags_wasapi_devin_unset_flags ()

void
ags_wasapi_devin_unset_flags (AgsWasapiDevin *wasapi_devin,
                              guint flags);

Disable a feature of wasapi_devin .

Parameters

wasapi_devin

the AgsWasapiDevin

 

flags

see AgsWasapiDevinFlags

 

Since: 3.0.0


ags_wasapi_devin_switch_buffer_flag ()

void
ags_wasapi_devin_switch_buffer_flag (AgsWasapiDevin *wasapi_devin);

The buffer flag indicates the currently played buffer.

Parameters

wasapi_devin

an AgsWasapiDevin

 

Since: 3.0.0


ags_wasapi_devin_adjust_delay_and_attack ()

void
ags_wasapi_devin_adjust_delay_and_attack
                               (AgsWasapiDevin *wasapi_devin);

Calculate delay and attack and reset it.

Parameters

wasapi_devin

the AgsWasapiDevin

 

Since: 3.0.0


ags_wasapi_devin_realloc_buffer ()

void
ags_wasapi_devin_realloc_buffer (AgsWasapiDevin *wasapi_devin);

Reallocate the internal audio buffer.

Parameters

wasapi_devin

the AgsWasapiDevin

 

Since: 3.0.0


ags_wasapi_devin_new ()

AgsWasapiDevin *
ags_wasapi_devin_new ();

Creates a new instance of AgsWasapiDevin.

Returns

a new AgsWasapiDevin

Since: 3.0.0


AGS_IS_WASAPI_DEVIN()

#define AGS_IS_WASAPI_DEVIN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_WASAPI_DEVIN))

AGS_IS_WASAPI_DEVIN_CLASS()

#define AGS_IS_WASAPI_DEVIN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_WASAPI_DEVIN))

AGS_WASAPI_DEVIN()

#define AGS_WASAPI_DEVIN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_WASAPI_DEVIN, AgsWasapiDevin))

AGS_WASAPI_DEVIN_CLASS()

#define AGS_WASAPI_DEVIN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_WASAPI_DEVIN, AgsWasapiDevin))

AGS_WASAPI_DEVIN_GET_CLASS()

#define AGS_WASAPI_DEVIN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_WASAPI_DEVIN, AgsWasapiDevinClass))

ags_wasapi_devin_get_type ()

GType
ags_wasapi_devin_get_type ();

Types and Values

AGS_WASAPI_DEVIN_DEFAULT_WASAPI_BUFFER_SIZE

#define AGS_WASAPI_DEVIN_DEFAULT_WASAPI_BUFFER_SIZE (8192)

enum AgsWasapiDevinFlags

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

Members

AGS_WASAPI_DEVIN_ADDED_TO_REGISTRY

the core-audio devin was added to registry, see AgsConnectable::add_to_registry()

 

AGS_WASAPI_DEVIN_CONNECTED

indicates the core-audio devin was connected by calling AgsConnectable::connect()

 

AGS_WASAPI_DEVIN_BUFFER0

ring-buffer 0

 

AGS_WASAPI_DEVIN_BUFFER1

ring-buffer 1

 

AGS_WASAPI_DEVIN_BUFFER2

ring-buffer 2

 

AGS_WASAPI_DEVIN_BUFFER3

ring-buffer 3

 

AGS_WASAPI_DEVIN_BUFFER4

ring-buffer 4

 

AGS_WASAPI_DEVIN_BUFFER5

ring-buffer 5

 

AGS_WASAPI_DEVIN_BUFFER6

ring-buffer 6

 

AGS_WASAPI_DEVIN_BUFFER7

ring-buffer 7

 

AGS_WASAPI_DEVIN_ATTACK_FIRST

use first attack, instead of second one

 

AGS_WASAPI_DEVIN_RECORD

do capture

 

AGS_WASAPI_DEVIN_SHUTDOWN

stop capture

 

AGS_WASAPI_DEVIN_START_RECORD

capture starting

 

AGS_WASAPI_DEVIN_NONBLOCKING

do non-blocking calls

 

AGS_WASAPI_DEVIN_INITIALIZED

the soundcard was initialized

 

AGS_WASAPI_DEVIN_SHARE_MODE_EXCLUSIVE

share mode exclusive

 

AGS_WASAPI_DEVIN_ERROR

#define AGS_WASAPI_DEVIN_ERROR (ags_wasapi_devin_error_quark())

enum AgsWasapiDevinError

Members

AGS_WASAPI_DEVIN_ERROR_LOCKED_SOUNDCARD

   

AGS_WASAPI_DEVIN_ERROR_BROKEN_CONFIGURATION

   

AGS_TYPE_WASAPI_DEVIN

#define AGS_TYPE_WASAPI_DEVIN                (ags_wasapi_devin_get_type())

struct AgsWasapiDevin

struct AgsWasapiDevin;

struct AgsWasapiDevinClass

struct AgsWasapiDevinClass {
  GObjectClass gobject;
};

Property Details

The “attack” property

  “attack”                   gpointer

Attack of the buffer

Owner: AgsWasapiDevin

Flags: Read

Since: 3.0.0


The “bpm” property

  “bpm”                      gdouble

Beats per minute

Owner: AgsWasapiDevin

Flags: Read / Write

Allowed values: [1,240]

Default value: 120

Since: 3.0.0


The “buffer” property

  “buffer”                   gpointer

The buffer

Owner: AgsWasapiDevin

Flags: Read

Since: 3.0.0


The “buffer-size” property

  “buffer-size”              guint

The buffer size

Owner: AgsWasapiDevin

Flags: Read / Write

Allowed values: [1,44100]

Default value: 940

Since: 3.0.0


The “delay-factor” property

  “delay-factor”             gdouble

tact

Owner: AgsWasapiDevin

Flags: Read / Write

Allowed values: [0,16]

Default value: 1

Since: 3.0.0


The “device” property

  “device”                   gchar *

The core audio soundcard indentifier

Owner: AgsWasapiDevin

Flags: Read / Write

Default value: "ags-wasapi-devin-0"

Since: 3.0.0


The “dsp-channels” property

  “dsp-channels”             guint

The dsp channel count

Owner: AgsWasapiDevin

Flags: Read / Write

Allowed values: [1,64]

Default value: 2

Since: 3.0.0


The “format” property

  “format”                   guint

The precision of the buffer

Owner: AgsWasapiDevin

Flags: Read / Write

Allowed values: [1,64]

Default value: 16

Since: 3.0.0


The “pcm-channels” property

  “pcm-channels”             guint

The pcm channel count

Owner: AgsWasapiDevin

Flags: Read / Write

Allowed values: [1,64]

Default value: 2

Since: 3.0.0


The “samplerate” property

  “samplerate”               guint

The samplerate

Owner: AgsWasapiDevin

Flags: Read / Write

Allowed values: [8000,96000]

Default value: 44100

Since: 3.0.0