*
* @since 1.8
*/
-EAPI void ecore_audio_output_userdata_set(Ecore_Audio_Object *output, void *data);
+EAPI void ecore_audio_output_data_set(Ecore_Audio_Object *output, void *data);
/**
* @brief Get the user data pointer
*
* @since 1.8
*/
-EAPI void *ecore_audio_output_userdata_get(Ecore_Audio_Object *output);
+EAPI void *ecore_audio_output_data_get(Ecore_Audio_Object *output);
/**
* @brief Set the volume of the output
*
* @since 1.8
*/
-EAPI void ecore_audio_input_userdata_set(Ecore_Audio_Object *input, void *data);
+EAPI void ecore_audio_input_data_set(Ecore_Audio_Object *input, void *data);
/**
* @brief Get the user data pointer
*
* @since 1.8
*/
-EAPI void *ecore_audio_input_userdata_get(Ecore_Audio_Object *input);
+EAPI void *ecore_audio_input_data_get(Ecore_Audio_Object *input);
/**
* @brief Get the sample rate of the input
free(output);
}
-EAPI void ecore_audio_output_userdata_set(Ecore_Audio_Object *output, void *data)
+EAPI void ecore_audio_output_data_set(Ecore_Audio_Object *output, void *data)
{
Ecore_Audio_Output *out = (Ecore_Audio_Output *)output;
out->user_data = data;
}
-EAPI void *ecore_audio_output_userdata_get(Ecore_Audio_Object *output)
+EAPI void *ecore_audio_output_data_get(Ecore_Audio_Object *output)
{
Ecore_Audio_Output *out = (Ecore_Audio_Output *)output;
return out->user_data;
free(in);
}
-EAPI void ecore_audio_input_userdata_set(Ecore_Audio_Object *input, void *data)
+EAPI void ecore_audio_input_data_set(Ecore_Audio_Object *input, void *data)
{
Ecore_Audio_Input *in = (Ecore_Audio_Input *)input;
in->user_data = data;
}
-EAPI void *ecore_audio_input_userdata_get(Ecore_Audio_Object *input)
+EAPI void *ecore_audio_input_data_get(Ecore_Audio_Object *input)
{
Ecore_Audio_Input *in = (Ecore_Audio_Input *)input;
return in->user_data;
static int
eet_snd_file_get_length(Ecore_Audio_Object *in)
{
- struct _edje_multisense_eet_data *vf = ecore_audio_input_userdata_get(in);
+ struct _edje_multisense_eet_data *vf = ecore_audio_input_data_get(in);
return vf->length;
}
static int
eet_snd_file_seek(Ecore_Audio_Object *in, int offset, int whence)
{
- struct _edje_multisense_eet_data *vf = ecore_audio_input_userdata_get(in);
+ struct _edje_multisense_eet_data *vf = ecore_audio_input_data_get(in);
switch (whence)
{
static int
eet_snd_file_read(Ecore_Audio_Object *in, void *buffer, int count)
{
- struct _edje_multisense_eet_data *vf = ecore_audio_input_userdata_get(in);
+ struct _edje_multisense_eet_data *vf = ecore_audio_input_data_get(in);
if ((vf->offset + count) > vf->length)
count = vf->length - vf->offset;
static int
eet_snd_file_tell(Ecore_Audio_Object *in)
{
- struct _edje_multisense_eet_data *vf = ecore_audio_input_userdata_get(in);
+ struct _edje_multisense_eet_data *vf = ecore_audio_input_data_get(in);
return vf->offset;
}
eet_data->offset = 0;
- ecore_audio_input_userdata_set(in, eet_data);
+ ecore_audio_input_data_set(in, eet_data);
ecore_audio_input_sndfile_vio_set(in, &eet_data->vio);
if (!out)
in = ecore_audio_input_add(ECORE_AUDIO_TYPE_SNDFILE);
fail_if(!in);
- ecore_audio_input_userdata_set(in, &len);
+ ecore_audio_input_data_set(in, &len);
ecore_audio_input_name_set(in, "sms.ogg");
ecore_audio_input_sndfile_filename_set(in, SOUNDS_DIR"sms.ogg");
fail_if(ecore_audio_input_channels_get(in) != 2);
// fail_if(len != ecore_audio_input_remaining_get(in));
fail_if(strcmp("sms.ogg", ecore_audio_input_name_get(in)));
- fail_if(ecore_audio_input_userdata_get(in) != &len);
+ fail_if(ecore_audio_input_data_get(in) != &len);
ecore_audio_input_del(in);
}
END_TEST
int _get_length(Ecore_Audio_Object *in)
{
- struct buffer *buf = ecore_audio_input_userdata_get(in);
+ struct buffer *buf = ecore_audio_input_data_get(in);
return buf->length;
}
int _seek(Ecore_Audio_Object *in, int offs, int whence)
{
- struct buffer *buf = ecore_audio_input_userdata_get(in);
+ struct buffer *buf = ecore_audio_input_data_get(in);
switch (whence) {
case SEEK_SET:
int _tell(Ecore_Audio_Object *in)
{
- struct buffer *buf = ecore_audio_input_userdata_get(in);
+ struct buffer *buf = ecore_audio_input_data_get(in);
return buf->offset;
}
int _read(Ecore_Audio_Object *in, void *buffer, int length)
{
- struct buffer *buf = ecore_audio_input_userdata_get(in);
+ struct buffer *buf = ecore_audio_input_data_get(in);
if ((buf->offset + length) > buf->length)
length = buf->length - buf->offset;
int _write(Ecore_Audio_Object *out, const void *buffer, int length)
{
- struct buffer *buf = ecore_audio_output_userdata_get(out);
+ struct buffer *buf = ecore_audio_output_data_get(out);
if ((buf->offset + length) > buf->length)
length = buf->length - buf->offset;
ecore_audio_input_name_set(in, "tmp");
ecore_audio_input_channels_set(in, 1);
ecore_audio_input_samplerate_set(in, 44100);
- ecore_audio_input_userdata_set(in, &indata);
+ ecore_audio_input_data_set(in, &indata);
ecore_audio_input_sndfile_format_set(in, SF_FORMAT_RAW | SF_FORMAT_PCM_U8);
ecore_audio_input_sndfile_vio_set(in, &vio);
fail_if(!out);
ecore_audio_output_name_set(out, "tmp");
ecore_audio_output_sndfile_format_set(out, SF_FORMAT_RAW | SF_FORMAT_PCM_U8);
- ecore_audio_output_userdata_set(out, &outdata);
+ ecore_audio_output_data_set(out, &outdata);
ecore_audio_output_sndfile_vio_set(out, &vio);