mozilla / cubeb-coreaudio-rs

The audio backend of Firefox on Mac OS X.
ISC License
25 stars 10 forks source link

Revise custom group id test #139

Closed ChunMinChang closed 3 years ago

ChunMinChang commented 3 years ago

This patch solves #138.

The Blackhole device's input and output data source values are the same. As a result, the hash-map, whose key is the data source value, has a collision when we use the same hash-map to store both input and output device's group ids.

To avoid the collision, we should use different hash maps for the input and output devices to store the group id values.