-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
I am currently trying to re-implement a player based on Javax.soundand thus trying to understand the implementation here,
In the course of that process, I stumbled upon a piece of code that seems like it isn't used:
In the method createLine()
The Assignment In StreamPlayer.java Line 481 makes the two assignments to sourceDataLine in L474 and L478 superfluos.
java-stream-player/src/main/java/goxr3plus/javastreamplayer/stream/StreamPlayer.java
Lines 472 to 481 in 2f7d16d
final Mixer mixer = getMixer(mixerName); | |
if (mixer == null) { | |
sourceDataLine = (SourceDataLine) AudioSystem.getLine(lineInfo); | |
mixerName = null; | |
} else { | |
logger.info("Mixer: " + mixer.getMixerInfo()); | |
sourceDataLine = (SourceDataLine) mixer.getLine(lineInfo); | |
} | |
sourceDataLine = (SourceDataLine) AudioSystem.getLine(lineInfo); |
If this kind of comment isn't helpful, or the code here isn't maintained anymore, please let me know - I might just stumble upon something else.
Metadata
Metadata
Assignees
Labels
No labels