Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 476 → Rev 477

/programy/C/ix86/SID/src/sidd.c
385,7 → 385,7
if( mode == 2) output_record( &right, prefix, fsecs);
}
 
void check_los( struct CHAN *c)
void check_los( struct CHAN *c) // checking for signal loss
{
if( !c->los_state)
{
595,7 → 595,7
char buff[100], *p, *fields[20];
 
if( (f=fopen( CONFIG_FILE, "r")) == NULL)
bailout( "no config file found");
bailout( "no config file found [%s]", CONFIG_FILE);
 
while( fgets( buff, 99, f))
{
673,13 → 673,13
int right = atoi( fields[3]);
int gain = (right << 8) | left;
 
if( !strcasecmp( fields[1], "line"))
if( !strcasecmp( fields[1], "line")) // get line source
{
req_lgain = gain;
mixer_recsrc = SOUND_MASK_LINE;
}
else
if( !strcasecmp( fields[1], "mic"))
if( !strcasecmp( fields[1], "mic")) // get mic source
{
req_mgain = gain;
mixer_recsrc = SOUND_MASK_MIC;
727,8 → 727,8
if( ioctl( fdm, SOUND_MIXER_READ_RECMASK, &mixer_recmask) < 0)
bailout( "cannot read mixer devmask");
 
if( (mixer_recmask & SOUND_MASK_LINE) == 0)
bailout( "mixer has no line device");
/* if( (mixer_recmask & SOUND_MASK_LINE) == 0)
bailout( "mixer has no line device");*/
 
if( ioctl( fdm, SOUND_MIXER_READ_STEREODEVS, &mixer_stereo) < 0)
bailout( "cannot read mixer stereodevs");
736,9 → 736,9
if( ioctl( fdm, SOUND_MIXER_READ_RECSRC, &mixer_recsrc) < 0)
bailout( "cannot read mixer recsrc");
 
// Read the line input gain.
/* // Read the line input gain.
if( ioctl( fdm, SOUND_MIXER_READ_LINE, &mixer_line) < 0)
bailout( "cannot read mixer line");
bailout( "cannot read mixer line");*/
 
// Read overall input gain? Optional.
if( (mixer_recmask & SOUND_MASK_IGAIN) &&
836,9 → 836,6
mixer_reclev & 0xff, (mixer_reclev >> 8) & 0xff);
}
 
//mixer_recsrc= SOUND_MASK_LINE;
mixer_recsrc= SOUND_MASK_MIC;
 
switch (mixer_recsrc)
{
case SOUND_MASK_MIC: