#17 Soundcards and hotplugging

closed-fixed
Jan Reucker
None
5
2007-10-03
2007-10-01
Jan Reucker
No

Audio interface problem: Sometimes the audio interface initialization fails and reverts to mouse input although the input device is available.

CRRCsim currently stores the ID of the audio input device in the configuration file:

<input_method>
....
<audio soundcard="0">

The problem is that CRRCsim only stores the ID, not the name of the device. This will cause problems if some devices are hot-plugged and may or may not be present when CRRCsim is running.

The solution would be to store the device ID, device name and number of in- and output channels. On startup CRRCsim could match up the name and channel numbers with the interface list and see if the device has changed its ID since the last run. In this case CRRCsim could use the new ID to open the audio device.

Discussion

  • Jan Reucker
    Jan Reucker
    2007-10-03

    Logged In: YES
    user_id=712954
    Originator: YES

    in work

     
  • Jan Reucker
    Jan Reucker
    2007-10-03

    • assigned_to: nobody --> slowhand_47
     
  • Jan Reucker
    Jan Reucker
    2007-10-03

    • status: open --> closed-fixed
     
  • Jan Reucker
    Jan Reucker
    2007-10-03

    Logged In: YES
    user_id=712954
    Originator: YES

    The configuration file now stores the device name and number of input/output channels in addition to the device ID. If the device ID changes (e.g. because a new audio device was connected since the last CRRCsim run, or an audio device was removed), these additional attributes are used as a signature to find the new ID of the original device.