IVSMixedAudioDeviceConfiguration

Objective-C


@interface IVSMixedAudioDeviceConfiguration : NSObject

Swift

class IVSMixedAudioDeviceConfiguration : NSObject

Configuration for an IVSMixedAudioDevice.

  • The number of channels for the output audio stream. By default this is 2.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger channels;

    Swift

    var channels: Int { get }
  • Set the number of audio channels for the output stream. Currently this must be 1 or 2, otherwise the provided outError will be set.

    Declaration

    Objective-C

    - (BOOL)setChannels:(NSInteger)channels
                  error:(NSError *_Nullable *_Nullable)outError;

    Swift

    func setChannels(_ channels: Int) throws

    Parameters

    channels

    the number of channels for the audio output stream

    outError

    On input, a pointer to an error object. If an error occurs, the pointer is an NSError object that describes the error. If you don’t want error information, pass in nil.

    Return Value

    if the set operation is successful or not.