StudioSoundAudioProcessor.SeparationResult


public final class StudioSoundAudioProcessor.SeparationResult


A record containing metadata about a separated source.

Summary

Public fields

final int[]

The channel indices of this source within the separated output stream.

final int

The label assigned to this source.

Public constructors

SeparationResult(
    @StudioSoundAudioProcessor.AudioType int label,
    int[] channelIndices
)

Public fields

channelIndices

public final int[] channelIndices

The channel indices of this source within the separated output stream.

These indices are generally contiguous and more than one index represents a source with a higher channel count (e.g. stereo).

label

@StudioSoundAudioProcessor.AudioType
public final int label

The label assigned to this source.

Public constructors

SeparationResult

public SeparationResult(
    @StudioSoundAudioProcessor.AudioType int label,
    int[] channelIndices
)