Fix potential issue with sound card index changing.