mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
30 lines
1010 B
C#
30 lines
1010 B
C#
namespace Flowframes.Data.Streams
|
|
{
|
|
public class AudioStream : Stream
|
|
{
|
|
public int Kbits { get; }
|
|
public int SampleRate { get; }
|
|
public int Channels { get; }
|
|
public string Layout { get; }
|
|
|
|
public AudioStream(string language, string title, string codec, string codecLong, int kbits, int sampleRate, int channels, string layout)
|
|
{
|
|
base.Type = StreamType.Audio;
|
|
Language = language;
|
|
Title = title;
|
|
Codec = codec;
|
|
CodecLong = codecLong;
|
|
Kbits = kbits;
|
|
SampleRate = sampleRate;
|
|
Channels = channels;
|
|
Layout = layout;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
string title = string.IsNullOrWhiteSpace(Title.Trim()) ? "None" : Title;
|
|
return $"{base.ToString()} - Language: {Language} - Title: {title} - Kbps: {Kbits} - SampleRate: {SampleRate} - Channels: {Channels} - Layout: {Layout}";
|
|
}
|
|
}
|
|
}
|