int vcd_recorder_set(const char* audio_type, vce_audio_type_e type, int rate, int channel)
{
- vcd_audio_streaming_mode_e streaming_mode;
- vcd_config_get_audio_streaming_mode(&streaming_mode);
- if (VCD_AUDIO_STREAMING_MODE_MULTI_ASSISTANT == streaming_mode || VCD_AUDIO_STREAMING_MODE_OUTSIDE == streaming_mode) {
- SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] Current audio streaming mode(%d)", streaming_mode);
- return VCD_ERROR_NONE;
- }
-
if (NULL == audio_type) {
return VCD_ERROR_INVALID_PARAMETER;
}
int vcd_recorder_get(char** audio_type)
{
- vcd_audio_streaming_mode_e streaming_mode;
- vcd_config_get_audio_streaming_mode(&streaming_mode);
- if (VCD_AUDIO_STREAMING_MODE_MULTI_ASSISTANT == streaming_mode || VCD_AUDIO_STREAMING_MODE_OUTSIDE == streaming_mode) {
- SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] Current audio streaming mode(%d)", streaming_mode);
- return VCD_ERROR_NONE;
- }
-
if (NULL == audio_type) {
return VCD_ERROR_INVALID_PARAMETER;
}