STSAudioConfiguration

@interface STSAudioConfiguration : NSObject

A STSAudioConfiguration object defines the audio configuration of a STSLiveStreamer object.

  • The output audio sample rate. Defaults to STSAudioSampleRate_44100Hz. See STSAudioSampleRate for details.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        STSAudioSampleRate sampleRate;

    Swift

    var sampleRate: STSAudioSampleRate { get set }
  • The number of output channels. Defaults to 1. Set the value to 1 for mono and 2 for stereo.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        NSUInteger numOfChannels;

    Swift

    var numOfChannels: UInt { get set }
  • The input ReplayKit audio channels. Defaults to nil.

    Declaration

    Objective-C

    @property (nonatomic, copy, readwrite)
        NSArray<NSString *> *replayKitAudioChannels;

    Swift

    var replayKitAudioChannels: [String]! { get set }
  • The volume of kSTSReplayKitAudioChannelMic channel. The property will be used only when the elements of replayKitAudioChannels contain both kSTSReplayKitAudioChannelMic and kSTSReplayKitAudioChannelApp. The value must be between 0.0 and 1.0. By default, the value is set to 0.8.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        float replayKitMicChannelVolume;

    Swift

    var replayKitMicChannelVolume: Float { get set }
  • The volume of kSTSReplayKitAudioChannelApp channel. The property will be used only when the elements of replayKitAudioChannels contain both kSTSReplayKitAudioChannelMic and kSTSReplayKitAudioChannelApp. The value must be between 0.0 and 1.0. By default, the value is set to 0.8.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        float replayKitAppChannelVolume;

    Swift

    var replayKitAppChannelVolume: Float { get set }