KSAccompanyDraftViewController.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // KSAccompanyDraftViewController.h
  3. // KulexiuForStudent
  4. //
  5. // Created by 王智 on 2024/7/18.
  6. //
  7. #import "KSBaseViewController.h"
  8. #import "KSMediaMergeView.h"
  9. typedef void(^AccompanyMergeCallback)(MERGEBACK backType);
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface KSAccompanyDraftViewController : KSBaseViewController
  12. @property (nonatomic, strong) NSString *musicSheetId; // 曲子ID
  13. @property (nonatomic, strong) NSString *musicRenderType; // 谱面类型
  14. @property (nonatomic, strong) NSString *recordId;
  15. @property (nonatomic, strong) NSString *songName;
  16. @property (nonatomic, strong) NSString *coverImage;
  17. @property (nonatomic, strong) NSString *desc;
  18. @property (nonatomic, assign) float musicSpeed;
  19. @property (nonatomic, assign) NSInteger partIndex;
  20. // 偏移时间 (录制声音和伴奏声音的偏移)offsetTime 收音延迟+ 播放延迟 ms
  21. - (void)configWithVideoUrl:(NSURL *)videoUrl bgAudioUrl:(NSURL *)bgAudioUrl remoteBgUrl:(NSString *)remoteBgUrl recordUrl:(NSURL *)recordUrl offsetTime:(NSInteger)offsetTime mergeCallback:(AccompanyMergeCallback)callback;
  22. @end
  23. NS_ASSUME_NONNULL_END