Download Now

    Reference TAudioSource

    Declared in Codebot.Hardware.pas on line 130

    TAudioSource is audio held in memory in its original format. Sources are created by TAudio.Add, which raises an EAudioFormatException unless the audio is
    in a supported format
    2 channel stereo
    signed 16 bit samples
    a sample rate of 44100 Hz
    The source owns the memory it is created with.
      TAudioSource = class
      public
        constructor Create(const Name: string; Source: PByte; Size: LongWord);
        destructor Destroy; override;
        { Name is unique among the sources of TAudio }
        property Name: string read FName;
        { Id is unique and is generated when the source is created }
        property Id: Integer read FId;
        { Duration is the length of the audio in seconds }
        property Duration: Single read FDuration;
        { The format of the source }
        property Format: TAudioFormat read FFormat;
      end;

    See also