You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
38 lines
1.3 KiB
2 months ago
|
//
|
||
|
// ZegoExpressEngine+RangeAudio.h
|
||
|
// ZegoExpressEngine
|
||
|
//
|
||
|
// Copyright © 2019 Zego. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "ZegoExpressDefines.h"
|
||
|
#import "ZegoExpressEngine.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@interface ZegoExpressEngine (RangeAudio)
|
||
|
|
||
|
/// Creates a range audio instance.
|
||
|
///
|
||
|
/// Available since: 2.11.0
|
||
|
/// Description: Creates a range audio instance.
|
||
|
/// Use case: Often used in game voice scenarios, users can use related functions by creating range audio instance objects.
|
||
|
/// When to call: It can be called after the engine by [createEngine] has been initialized.
|
||
|
/// Restrictions: Currently, a maximum of 1 instances can be created, after which it will return nil.
|
||
|
/// Impacts on other APIs: If you use the range audio module, you cannot use the basic push-pull stream [startPublishingStream], [startPlayingStream] interfaces and related callbacks.
|
||
|
///
|
||
|
/// @return range audio instance, nil will be returned when the maximum number is exceeded.
|
||
|
- (nullable ZegoRangeAudio *)createRangeAudio;
|
||
|
|
||
|
/// Destroys a range audio instance.
|
||
|
///
|
||
|
/// Available since: 2.11.0
|
||
|
/// Description: Destroys a range audio instance.
|
||
|
///
|
||
|
/// @param rangeAudio The range audio instance object to be destroyed.
|
||
|
- (void)destroyRangeAudio:(ZegoRangeAudio *)rangeAudio;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|