Advanced Gtk+ Sequencer Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#include <ags/audio/file/ags_audio_file.h> struct AgsAudioFile; struct AgsAudioFileClass;void ags_audio_file_close (AgsAudioFile *audio_file
);void ags_audio_file_flush (AgsAudioFile *audio_file
); AgsAudioFile * ags_audio_file_new (,
gchar *nameAgsDevout *devout
,,
guint start_channel);
guint audio_channelsgboolean ags_audio_file_open (AgsAudioFile *audio_file
);gboolean ags_audio_file_open_from_data (AgsAudioFile *audio_file
,);
gchar *datavoid ags_audio_file_read_audio_signal (AgsAudioFile *audio_file
);gboolean ags_audio_file_rw_open (AgsAudioFile *audio_file
,);
gboolean createvoid ags_audio_file_seek (AgsAudioFile *audio_file
,,
guint frames);
gint whencevoid ags_audio_file_write (AgsAudioFile *audio_file
,signed
,short *buffer);
guint buffer_size
struct AgsAudioFile { GObject object; AgsDevout *devout; gchar *name; guint samplerate; guint frames; guint channels; guint format; guint start_channel; guint audio_channels; GList *audio_signal; GObject *file; };
void ags_audio_file_close (AgsAudioFile *audio_file
);
Close the AgsAudioFile.
|
the AgsAudioFile |
Since 0.3
void ags_audio_file_flush (AgsAudioFile *audio_file
);
Flushes the AgsAudioFile's internal buffer.
|
the AgsAudioFile |
Since 0.4
AgsAudioFile * ags_audio_file_new (,
gchar *nameAgsDevout *devout
,,
guint start_channel);
guint audio_channels
Creates an AgsAudioFile.
|
the filename |
|
defaults of AgsDevout |
|
ommited channels |
|
number of channels to read |
Returns : |
an empty AgsAudioFile. |
Since 0.3
gboolean ags_audio_file_open (AgsAudioFile *audio_file
);
Open the AgsAudioFile in read mode.
|
the AgsAudioFile |
Since 0.3
gboolean ags_audio_file_open_from_data (AgsAudioFile *audio_file
,);
gchar *data
Open AgsAudioFile using virtual functions.
|
the AgsAudioFile |
|
the audio data |
Since 0.4
void ags_audio_file_read_audio_signal (AgsAudioFile *audio_file
);
Convert the AgsAudioFile to a
|
the AgsAudioFile |
Since 0.3
gboolean ags_audio_file_rw_open (AgsAudioFile *audio_file
,);
gboolean create
Open the AgsAudioFile in read/write mode.
|
the AgsAudioFile |
|
create the file |
Since 0.4
void ags_audio_file_seek (AgsAudioFile *audio_file
,,
guint frames);
gint whence
Position the AgsAudioFile's internal data address.
|
the AgsAudioFile |
|
number of frames to seek |
|
SEEK_SET, SEEK_CUR, or SEEK_END |
Since 0.4
void ags_audio_file_write (AgsAudioFile *audio_file
,signed
,short *buffer);
guint buffer_size
Write the buffer to AgsAudioFile.
|
the AgsAudioFile |
|
the audio data |
|
the count of frames to write |
Since 0.4