Search Results for

    Show / Hide Table of Contents

    Interface ISegment<TSource>

    Represents a range of audio from a source object. SEGMENTS ARE NOT HIERARCHICAL CONSTRUCTS.

    Inherited Members
    IEquatable<ISegment<TSource>>.Equals(ISegment<TSource>)
    Namespace: AnalysisBase.Segment
    Assembly: AnalysisBase.dll
    Syntax
    public interface ISegment<TSource> : IEquatable<ISegment<TSource>>
    Type Parameters
    Name Description
    TSource

    The type of source file used.

    Properties

    | Improve this Doc View Source

    EndOffsetSeconds

    Gets the end of the segment, represented by seconds from the start of the audio object.

    Declaration
    double EndOffsetSeconds { get; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    Source

    Gets the source audio object. It is expected that TSource will be a path or FileInfo for local sources. For remote sources, TSource could be an arbitrary object. The ISourcePreparer for each format handles these differences.

    Declaration
    TSource Source { get; }
    Property Value
    Type Description
    TSource
    | Improve this Doc View Source

    SourceMetadata

    Gets information about the source.

    Declaration
    SourceMetadata SourceMetadata { get; }
    Property Value
    Type Description
    SourceMetadata
    | Improve this Doc View Source

    StartOffsetSeconds

    Gets the start of the segment, represented by seconds from the start of the audio object.

    Declaration
    double StartOffsetSeconds { get; }
    Property Value
    Type Description
    Double

    Methods

    | Improve this Doc View Source

    SplitSegment(Double, Double)

    Allows for the creation of a new segment, keeping the original source but changing the offsets.

    Declaration
    ISegment<TSource> SplitSegment(double newStart, double newEnd)
    Parameters
    Type Name Description
    Double newStart

    The new start offset to use for this segment.

    Double newEnd

    The new end offset to use for this segment.

    Returns
    Type Description
    ISegment<TSource>

    A segment from the same source, with new offsets.

    Extension Methods

    ObjectExtensions.NotNull(Object)
    ObjectExtensions.AsArray<T>(T)
    ObjectExtensions.AsList<T>(T)
    ObjectExtensions.Wrap<T>(T)
    SystemExtensions.BinarySerialize(Object)
    ConfigFileExtensions.NotNull(Object, FileInfo, String, String)
    ConfigFileExtensions.ValidateNotNull(Object, String, String)
    ConfigFileExtensions.ValidateLessThan<T>(Object, Nullable<T>, String, Nullable<T>, String, String)
    ExtensionsXml.SerializeObject<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top