/* --------------------------------------------------------------------------*/
int audio_right_mono(int pid)
{
    int ret = -1;
    play_para_t *player_para;
    codec_para_t *p;

    player_para = player_open_pid_data(pid);
    if (player_para == NULL) {
        return 0;    /*this data is 0 for default!*/
    }

    p = get_audio_codec(player_para);
    if (p != NULL) {
        ret = codec_right_mono(p);
    }
    player_close_pid_data(pid);

    return ret;
}
Beispiel #2
0
int CTsPlayer::Setmono(int index)
{
	int ret;
	#if 1
	switch(index)
	{
		case 0:
			ret = codec_stereo(pcodec);
			break;
		case 1:
			ret = codec_left_mono(pcodec);
			break;	
		case 2:
			ret = codec_right_mono(pcodec);
			break;
		default:
			break;
	}
		#endif
	return ret;	
}