Changeset 2559

Show
Ignore:
Timestamp:
05/28/99 17:48:11 (15 years ago)
Author:
ucaccsp
Message:

Cope with sample rate skew when probing for allowed sampling rates.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/auddev_oss.c

    r2558 r2559  
    527527         
    528528        /* We might want to set sample type here */ 
     529        debug_msg("Testing support for %dHz %s...\n", speed, stereo?"stereo":"mono"); 
    529530 
    530531        st = stereo; 
     
    534535 
    535536        sp = speed; 
    536         if (ioctl(audio_fd[ad], SNDCTL_DSP_SPEED, &sp) == -1 || sp != speed) { 
     537        if (ioctl(audio_fd[ad], SNDCTL_DSP_SPEED, &sp) == -1) { 
    537538                success = FALSE; 
    538539        } 
     540        if (sp != speed) { 
     541                debug_msg("Sampling clock skew: %d should be %d\n", sp, speed); 
     542        } 
    539543         
    540544        return success;