| Top |
Functions
| #define | AGS_AUDIO_FILE_GET_OBJ_MUTEX() |
|
|
ags_audio_file_test_flags () |
|
|
ags_audio_file_set_flags () |
|
|
ags_audio_file_unset_flags () |
|
|
ags_audio_file_check_suffix () |
|
|
ags_audio_file_add_audio_signal () |
|
|
ags_audio_file_remove_audio_signal () |
|
|
ags_audio_file_add_wave () |
|
|
ags_audio_file_remove_wave () |
|
|
ags_audio_file_open () |
|
|
ags_audio_file_open_from_data () |
|
|
ags_audio_file_rw_open () |
|
|
ags_audio_file_close () |
|
|
ags_audio_file_read () |
|
|
ags_audio_file_read_audio_signal () |
|
|
ags_audio_file_read_wave () |
|
|
ags_audio_file_seek () |
|
|
ags_audio_file_write () |
|
|
ags_audio_file_flush () |
| AgsAudioFile * | ags_audio_file_new () |
| #define | AGS_AUDIO_FILE() |
| #define | AGS_AUDIO_FILE_CLASS() |
| #define | AGS_AUDIO_FILE_GET_CLASS() |
| #define | AGS_IS_AUDIO_FILE() |
| #define | AGS_IS_AUDIO_FILE_CLASS() |
|
|
ags_audio_file_get_type () |
Properties
| audio-channel | Read / Write | |
| audio-signal | Read / Write | |
| buffer-size | Read / Write | |
| file-audio-channels | Read / Write | |
| file-frame-count | Read / Write | |
| file-samplerate | Read / Write | |
|
|
filename | Read / Write |
| format | Read / Write | |
| samplerate | Read / Write | |
|
|
soundcard | Read / Write |
| wave | Read / Write |
Types and Values
| enum | AgsAudioFileFlags |
| #define | AGS_TYPE_AUDIO_FILE |
| struct | AgsAudioFile |
| struct | AgsAudioFileClass |
Functions
AGS_AUDIO_FILE_GET_OBJ_MUTEX()
#define AGS_AUDIO_FILE_GET_OBJ_MUTEX(obj) (&(((AgsAudioFile *) obj)->obj_mutex))
ags_audio_file_test_flags ()
gboolean ags_audio_file_test_flags (AgsAudioFile *audio_file,);guint flags
Test flags
to be set on audio_file
.
Since:
ags_audio_file_set_flags ()
void ags_audio_file_set_flags (AgsAudioFile *audio_file,);guint flags
Enable a feature of audio_file
.
Since:
ags_audio_file_unset_flags ()
void ags_audio_file_unset_flags (AgsAudioFile *audio_file,);guint flags
Disable a feature of audio_file
.
Since:
ags_audio_file_check_suffix ()
gboolean ags_audio_file_check_suffix ();gchar *filename
Check suffix.
Since:
ags_audio_file_add_audio_signal ()
void ags_audio_file_add_audio_signal (AgsAudioFile *audio_file,);GObject *audio_signal
Add audio_signal
to audio_file
.
Since:
ags_audio_file_remove_audio_signal ()
void ags_audio_file_remove_audio_signal (AgsAudioFile *audio_file,);GObject *audio_signal
Remove audio_signal
from audio_file
.
Since:
ags_audio_file_add_wave ()
void ags_audio_file_add_wave (AgsAudioFile *audio_file,);GObject *wave
Add wave
to audio_file
.
Since:
ags_audio_file_remove_wave ()
void ags_audio_file_remove_wave (AgsAudioFile *audio_file,);GObject *wave
Remove wave
from audio_file
.
Since:
ags_audio_file_open ()
gboolean ags_audio_file_open (AgsAudioFile *audio_file);
Open the AgsAudioFile in read mode.
Since:
ags_audio_file_open_from_data ()
gboolean ags_audio_file_open_from_data (AgsAudioFile *audio_file,);gchar *data
Open AgsAudioFile using virtual functions.
Since:
ags_audio_file_rw_open ()
gboolean ags_audio_file_rw_open (AgsAudioFile *audio_file,);gboolean create
Open the AgsAudioFile in read/write mode.
Since:
ags_audio_file_close ()
void ags_audio_file_close (AgsAudioFile *audio_file);
Close the AgsAudioFile.
Since:
ags_audio_file_read ()
void * ags_audio_file_read (AgsAudioFile *audio_file,,guint audio_channel,guint format);GError **error
Read audio buffer.
Parameters
audio_file |
the AgsAudioFile |
|
audio_channel |
nth channel |
|
format |
the format |
|
error |
returned error |
Since:
ags_audio_file_read_audio_signal ()
void ags_audio_file_read_audio_signal (AgsAudioFile *audio_file);
Convert the AgsAudioFile to a
Since:
ags_audio_file_read_wave ()
void ags_audio_file_read_wave (AgsAudioFile *audio_file,,guint64 x_offset,gdouble delay);guint attack
Convert the AgsAudioFile to a
Since:
ags_audio_file_seek ()
void ags_audio_file_seek (AgsAudioFile *audio_file,,guint frames);gint whence
Position the AgsAudioFile's internal data address.
Parameters
audio_file |
the AgsAudioFile |
|
frames |
number of frames to seek |
|
whence |
SEEK_SET, SEEK_CUR, or SEEK_END |
Since:
ags_audio_file_write ()
void ags_audio_file_write (AgsAudioFile *audio_file,,void *buffer,guint buffer_size);guint format
Write the buffer to AgsAudioFile.
Parameters
audio_file |
the AgsAudioFile |
|
buffer |
the audio data |
|
buffer_size |
the count of frames to write |
|
format |
the format |
Since:
ags_audio_file_flush ()
void ags_audio_file_flush (AgsAudioFile *audio_file);
Flushes the AgsAudioFile's internal buffer.
Since:
ags_audio_file_new ()
AgsAudioFile * ags_audio_file_new (,gchar *filename,GObject *soundcard);gint audio_channel
Create a new instance of AgsAudioFile.
Parameters
filename |
the filename |
|
soundcard |
defaults of |
|
audio_channel |
the audio channel to read |
Since:
AGS_AUDIO_FILE()
#define AGS_AUDIO_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_FILE, AgsAudioFile))
AGS_AUDIO_FILE_CLASS()
#define AGS_AUDIO_FILE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO_FILE, AgsAudioFileClass))
AGS_AUDIO_FILE_GET_CLASS()
#define AGS_AUDIO_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_AUDIO_FILE, AgsAudioFileClass))
AGS_IS_AUDIO_FILE()
#define AGS_IS_AUDIO_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUDIO_FILE))
AGS_IS_AUDIO_FILE_CLASS()
#define AGS_IS_AUDIO_FILE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_AUDIO_FILE))
Types and Values
enum AgsAudioFileFlags
Enum values to control the behavior or indicate internal state of AgsAudioFile by enable/disable as flags.
Property Details
The “audio-channel” property
“audio-channel”gint
The audio channel to be read.
Owner: AgsAudioFile
Flags: Read / Write
Allowed values: >= -1
Default value: 0
Since:
The “audio-signal” property
“audio-signal”gpointer
The containing AgsAudioSignal.
[transfer full]
Owner: AgsAudioFile
Flags: Read / Write
Since:
The “buffer-size” property
“buffer-size”guint
The buffer size to be used.
Owner: AgsAudioFile
Flags: Read / Write
Default value: 0
Since:
The “file-audio-channels” property
“file-audio-channels”guint
The audio channel count of this file.
Owner: AgsAudioFile
Flags: Read / Write
Default value: 0
Since:
The “file-frame-count” property
“file-frame-count”guint
The frame count of the file.
Owner: AgsAudioFile
Flags: Read / Write
Default value: 0
The “file-samplerate” property
“file-samplerate”guint
The samplerate of this file.
Owner: AgsAudioFile
Flags: Read / Write
Default value: 0
Since:
The “filename” property
“filename”gchar *
The assigned filename.
Owner: AgsAudioFile
Flags: Read / Write
Default value: NULL
Since:
The “format” property
“format”guint
The format to be used.
Owner: AgsAudioFile
Flags: Read / Write
Default value: 0
Since:
The “samplerate” property
“samplerate”guint
The samplerate to be used.
Owner: AgsAudioFile
Flags: Read / Write
Default value: 0
Since:
The “soundcard” property
“soundcard”GObject *
The assigned soundcard.
Owner: AgsAudioFile
Flags: Read / Write
Since:
The “wave” property
“wave”gpointer
The containing AgsWave.
[transfer full]
Owner: AgsAudioFile
Flags: Read / Write
Since: