- 论坛徽章:
- 0
|
Now i need to playback an audio file and record it synchronously with MIC or LINELN.I don't know how to use LINELN to record and a error message turns up as set the record source.please help me!!!
The configuration of my system is :RH9.0,oss driver with ITEL ICH6 card.
Source code for setting record source as below:
int mfd = open("/dev/mixer",O_RDONLY);
if(mfd == -1){
printf("Open device fail.\n" ;
return 1;
}
int recmask = SOUND_MIXER_MIC;
int status = ioctl(mfd,SOUND_MIXER_WRITE_RECSRC,&recmask);
if(status==-1){
perror("SOUND_MIXER_WRITE_RECSRC fail\n" ;
return 1;
}
The error message is:"SOUND_MIXER_WRITE_RECSRC fail:invalid argument"
Back to top |
|