audio_ctl/audio_ctrl.c File Reference
codec control lib functions for audio More...
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <codec_error.h>
#include <codec.h>
#include "adecproc.h"
Go to the source code of this file.
Functions | |
void | audio_start (void) |
audio_start Start audio decoder | |
void | audio_stop (void) |
audio_stop Stop audio decoder | |
void | audio_pause (void) |
audio_pause Pause audio decoder | |
void | audio_resume (void) |
audio_resume Resume audio decoder | |
int | codec_get_mutesta (codec_para_t *p) |
codec_get_mutesta Get codec mute status | |
int | codec_set_mute (codec_para_t *p, int mute) |
codec_set_mute Set audio mute | |
int | codec_get_volume_range (codec_para_t *p, int *min, int *max) |
codec_get_volume_range Get audio volume range | |
int | codec_set_volume (codec_para_t *p, int val) |
codec_set_volume Set audio volume | |
int | codec_get_volume (codec_para_t *p) |
codec_get_volume Get audio volume | |
int | codec_set_volume_balance (codec_para_t *p, int balance) |
codec_set_volume_balance Set volume balance | |
int | codec_swap_left_right (codec_para_t *p) |
codec_swap_left_right Swap audio left and right channel | |
int | codec_left_mono (codec_para_t *p) |
codec_left_mono Set mono with left channel | |
int | codec_right_mono (codec_para_t *p) |
codec_right_mono Set mono with right channel | |
int | codec_stereo (codec_para_t *p) |
codec_stereo Set stereo | |
int | codec_audio_automute (int auto_mute) |
codec_audio_automute Set decoder to automute mode | |
int | codec_audio_spectrum_switch (codec_para_t *p, int isStart, int interval) |
codec_audio_spectrum_switch Switch audio spectrum |
Detailed Description
codec control lib functions for audio
- Author:
- Zhou Zhi <[email protected]>
- Version:
- 1.0.0
- Date:
- 2011-02-24
Definition in file audio_ctrl.c.
Function Documentation
int codec_audio_automute | ( | int | auto_mute | ) |
codec_audio_automute Set decoder to automute mode
- Parameters:
-
[in] auto_mute automute mode
- Returns:
- Command result
Definition at line 238 of file audio_ctrl.c.
int codec_audio_spectrum_switch | ( | codec_para_t * | p, | |
int | isStart, | |||
int | interval | |||
) |
codec_audio_spectrum_switch Switch audio spectrum
- Parameters:
-
[in] p Pointer of codec parameter structure [in] isStart Start(1) or stop(0) spectrum [in] interval Spectrum interval
- Returns:
- Command result
Definition at line 259 of file audio_ctrl.c.
int codec_get_mutesta | ( | codec_para_t * | p | ) |
codec_get_mutesta Get codec mute status
- Parameters:
-
[in] p Pointer of codec parameter structure
- Returns:
- audio command result
Definition at line 72 of file audio_ctrl.c.
int codec_get_volume | ( | codec_para_t * | p | ) |
codec_get_volume Get audio volume
- Parameters:
-
[in] p Pointer of codec parameter structure
- Returns:
- command result
Definition at line 143 of file audio_ctrl.c.
int codec_get_volume_range | ( | codec_para_t * | p, | |
int * | min, | |||
int * | max | |||
) |
codec_get_volume_range Get audio volume range
- Parameters:
-
[in] p Pointer of codec parameter structure [out] min Data to save the min volume [out] max Data to save the max volume
- Returns:
- not used, read failed
Definition at line 110 of file audio_ctrl.c.
int codec_left_mono | ( | codec_para_t * | p | ) |
codec_left_mono Set mono with left channel
- Parameters:
-
[in] p Pointer of codec parameter structure
- Returns:
- Command result
Definition at line 190 of file audio_ctrl.c.
int codec_right_mono | ( | codec_para_t * | p | ) |
codec_right_mono Set mono with right channel
- Parameters:
-
[in] p Pointer of codec parameter structure
- Returns:
- Command result
Definition at line 206 of file audio_ctrl.c.
int codec_set_mute | ( | codec_para_t * | p, | |
int | mute | |||
) |
codec_set_mute Set audio mute
- Parameters:
-
[in] p Pointer of codec parameter structure [in] mute mute command, 1 for mute, 0 for unmute
- Returns:
- audio command result
Definition at line 89 of file audio_ctrl.c.
int codec_set_volume | ( | codec_para_t * | p, | |
int | val | |||
) |
codec_set_volume Set audio volume
- Parameters:
-
[in] p Pointer of codec parameter structure [in] val Volume to be set
- Returns:
- command result
Definition at line 125 of file audio_ctrl.c.
int codec_set_volume_balance | ( | codec_para_t * | p, | |
int | balance | |||
) |
codec_set_volume_balance Set volume balance
- Parameters:
-
[in] p Pointer of codec parameter structure [in] balance Balance to be set
- Returns:
- not used, return failed
Definition at line 160 of file audio_ctrl.c.
int codec_stereo | ( | codec_para_t * | p | ) |
codec_stereo Set stereo
- Parameters:
-
[in] p Pointer of codec parameter structure
- Returns:
- Command result
Definition at line 222 of file audio_ctrl.c.
int codec_swap_left_right | ( | codec_para_t * | p | ) |
codec_swap_left_right Swap audio left and right channel
- Parameters:
-
[in] p Pointer of codec parameter structure
- Returns:
- Command result
Definition at line 174 of file audio_ctrl.c.
Generated on Fri Feb 25 15:30:29 2011 for Amcodec by 1.6.1