AgsSoundcardThread

AgsSoundcardThread — soundcard thread

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Includes

#include <ags/audio/thread/ags_soundcard_thread.h>

Description

The AgsSoundcardThread acts as audio output thread to soundcard.

Functions

ags_soundcard_thread_find_soundcard ()

AgsSoundcardThread *
ags_soundcard_thread_find_soundcard (AgsSoundcardThread *soundcard_thread,
                                     GObject *soundcard);

Find soundcard as sibling of soundcard_thread , if it was found on the returned thread should be called g_object_unref().

Parameters

soundcard_thread

the AgsSoundcardThread

 

soundcard

the AgsSoundcard to find

 

Returns

the matching AgsSoundcardThread, if not found NULL.

[transfer full]

Since: 3.0.0


ags_soundcard_thread_new ()

AgsSoundcardThread *
ags_soundcard_thread_new (GObject *soundcard,
                          guint soundcard_capability);

Create a new instance of AgsSoundcardThread.

Parameters

soundcard

the AgsSoundcard

 

soundcard_capability

see AgsSoundcardCapability

 

Returns

the new AgsSoundcardThread

Since: 3.0.0

Types and Values

AGS_SOUNDCARD_THREAD_DEFAULT_JIFFIE

#define AGS_SOUNDCARD_THREAD_DEFAULT_JIFFIE (ceil(AGS_SOUNDCARD_DEFAULT_SAMPLERATE / AGS_SOUNDCARD_DEFAULT_BUFFER_SIZE) + AGS_SOUNDCARD_DEFAULT_OVERCLOCK)