https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177951
Mixer.Info[] mixerInfo = AudioSystem.getMixerInfo() ;
for (int i = 0; i < mixerInfo.length; i++){
byte b[] = mixerInfo[i].getName().getBytes( java.nio.charset.StandardCharsets.ISO_8859_1 );
if( b[b.length -1 ] == -125 ){ b[b.length -1 ] = 0x20 ; }
String l = new String( b );
system.out.println( l );
}
For the time being, just eliminate the garbled characters! !!
?v???C?}?? ? ?X?s?[?J?[ (Realtek High Definition A ?v???C?}?? ?T?E? ?X?e???I ?~?L?T?[ (Realtek Hig Port ?X?s?[?J?[ (Realtek High D Port ?X?e???I ?~?L?T?[ (Rea
primary ? Speaker (Realtek High Definition A Primary Sau? Stereo mixer (Realtek Hig Port Speaker (Realtek High D Port Stereo Mixer (Rea
primary Speaker (Realtek High Definition A Primary Sau Stereo mixer (Realtek Hig Port Speaker (Realtek High D Port Stereo Mixer (Rea
Recommended Posts