Skip to content

Unused code #2

@IARI

Description

@IARI

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.

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions