Changeset 2146

Show
Ignore:
Timestamp:
01/07/99 16:46:38 (16 years ago)
Author:
ucacoxh
Message:

- Fixed bug for interfaces with multiple devices.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/auddev.c

    r2145 r2146  
    405405        /* Find interface device number idx belongs to */ 
    406406        iface = 0; 
    407         while((devs = audio_if_table[iface].audio_if_dev_cnt()) && idx > devs) { 
     407        while((devs = audio_if_table[iface].audio_if_dev_cnt()) && idx >= devs) { 
    408408                iface++; 
    409409                idx -= devs;