Lines Matching refs:obj

28 MixParams* mix_acp_dup(const MixParams *obj);
30 static void mix_acp_finalize(MixParams *obj);
77 void mix_acp_finalize(MixParams *obj) in mix_acp_finalize() argument
80 MixAudioConfigParams *acp = MIX_AUDIOCONFIGPARAMS(obj); in mix_acp_finalize()
89 parent_class->finalize(obj); in mix_acp_finalize()
104 MixParams* mix_acp_dup(const MixParams *obj) in mix_acp_dup() argument
108 if (MIX_IS_AUDIOCONFIGPARAMS(obj)) in mix_acp_dup()
111 if (mix_acp_copy(MIX_PARAMS(duplicate), MIX_PARAMS(obj))) in mix_acp_dup()
208 gboolean mix_acp_is_streamname_valid(MixAudioConfigParams *obj) in mix_acp_is_streamname_valid() argument
210 if (MIX_IS_AUDIOCONFIGPARAMS(obj)) in mix_acp_is_streamname_valid()
211 if ((obj->stream_name) && (obj->stream_name[0] != 0)) return TRUE; in mix_acp_is_streamname_valid()
216 gchar *mix_acp_get_streamname(MixAudioConfigParams *obj) in mix_acp_get_streamname() argument
219 if (G_LIKELY(MIX_IS_AUDIOCONFIGPARAMS(obj)) && obj->stream_name) in mix_acp_get_streamname()
221 ret = g_strdup(obj->stream_name); in mix_acp_get_streamname()
226 MIX_RESULT mix_acp_set_streamname(MixAudioConfigParams *obj, const gchar *streamname) in mix_acp_set_streamname() argument
230 if (!obj) return MIX_RESULT_NULL_PTR; in mix_acp_set_streamname()
232 if (G_LIKELY(MIX_IS_AUDIOCONFIGPARAMS(obj))) in mix_acp_set_streamname()
234 if (obj->stream_name) in mix_acp_set_streamname()
236 g_free(obj->stream_name); in mix_acp_set_streamname()
237 obj->stream_name = NULL; in mix_acp_set_streamname()
240 if (streamname) obj->stream_name = g_strdup(streamname); in mix_acp_set_streamname()
252 MixACPBPSType mix_acp_get_bps(MixAudioConfigParams *obj) in mix_acp_get_bps() argument
254 if (G_LIKELY(obj)) in mix_acp_get_bps()
255 return obj->bits_per_sample; in mix_acp_get_bps()
260 MIX_RESULT mix_acp_set_bps(MixAudioConfigParams *obj, MixACPBPSType type) in mix_acp_set_bps() argument
264 if (!obj) return MIX_RESULT_NULL_PTR; in mix_acp_set_bps()
266 if (G_LIKELY(MIX_IS_AUDIOCONFIGPARAMS(obj))) in mix_acp_set_bps()
273 obj->bits_per_sample = type; in mix_acp_set_bps()
289 MixACPOpAlign mix_acp_get_op_align(MixAudioConfigParams *obj) in mix_acp_get_op_align() argument
291 return (obj->op_align); in mix_acp_get_op_align()
294 MIX_RESULT mix_acp_set_op_align(MixAudioConfigParams *obj, MixACPOpAlign op_align) in mix_acp_set_op_align() argument
299 obj->op_align = op_align; in mix_acp_set_op_align()
305 void mix_acp_print_params(MixAudioConfigParams *obj) in mix_acp_print_params() argument
307 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_INFO, "decode_mode: %d\n", obj->decode_mode); in mix_acp_print_params()
308 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_INFO, "stream_name: %s\n", obj->stream_name); in mix_acp_print_params()
309 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_INFO, "audio_manager: %d\n", obj->audio_manager); in mix_acp_print_params()
310 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_INFO, "num_channels: %d\n", obj->num_channels); in mix_acp_print_params()
311 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_INFO, "bit_rate: %d\n", obj->bit_rate); in mix_acp_print_params()
312 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_INFO, "sample_freq: %d\n", obj->sample_freq); in mix_acp_print_params()
313 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_INFO, "bits_per_sample: %d\n", obj->bits_per_sample); in mix_acp_print_params()
314 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_INFO, "op_align: %d\n", obj->op_align); in mix_acp_print_params()
316 MixAudioConfigParamsClass *klass = MIX_AUDIOCONFIGPARAMS_GET_CLASS(obj); in mix_acp_print_params()
319 klass->print_params(obj); in mix_acp_print_params()