58 lines
1.7 KiB
Java
58 lines
1.7 KiB
Java
package net.knarcraft.ffmpegconverter.streams;
|
|
|
|
/**
|
|
* This class represents an ffmpeg audio stream
|
|
*/
|
|
public class AudioStream extends StreamObject {
|
|
private final String language;
|
|
private final int channels;
|
|
private final String title;
|
|
|
|
/**
|
|
* Instantiates a new audio stream
|
|
*
|
|
* @param codecName <p>The codec of the audio stream.</p>
|
|
* @param absoluteIndex <p>The index of the audio stream.</p>
|
|
* @param relativeIndex <p>The index of the audio stream relative to other audio streams.</p>
|
|
* @param language <p>The language of the audio stream.</p>
|
|
* @param title <p>The title of the audio stream.</p>
|
|
* @param channels <p>The number of channels for the audio stream.</p>
|
|
*/
|
|
public AudioStream(String codecName, int absoluteIndex, int relativeIndex, String language, String title, int channels) {
|
|
this.codecType = "audio";
|
|
this.codecName = codecName;
|
|
this.absoluteIndex = absoluteIndex;
|
|
this.language = language;
|
|
this.title = title;
|
|
this.relativeIndex = relativeIndex;
|
|
this.channels = channels;
|
|
}
|
|
|
|
/**
|
|
* Gets the language of the audio stream
|
|
*
|
|
* @return <p>The language of the audio stream.</p>
|
|
*/
|
|
public String getLanguage() {
|
|
return this.language;
|
|
}
|
|
|
|
/**
|
|
* Gets the number of channels for the audio stream
|
|
*
|
|
* @return <p>The number of channels for the audio stream.</p>
|
|
*/
|
|
public int getChannels() {
|
|
return this.channels;
|
|
}
|
|
|
|
/**
|
|
* Gets the title of the audio stream
|
|
*
|
|
* @return <p>The title of the audio stream.</p>
|
|
*/
|
|
public String getTitle() {
|
|
return this.title;
|
|
}
|
|
}
|