YOUPAILZRecordAudioView.h 774 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // YOUPAILZRecordAudioView.h
  3. // VQU
  4. //
  5. // Created by CY on 2021/4/26.
  6. // Copyright © 2021 leo. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class YOUPAILZGameModel;
  10. static NSInteger const kAudioMaxDuration = 15;
  11. /// 录制音频状态
  12. typedef NS_ENUM(NSUInteger,LZCaptrueAudioState) {
  13. LZCaptrueAudioStateNone = 0, /// 未开始
  14. LZCaptrueAudioStateStart, /// 已开始
  15. LZCaptrueAudioStateFinish, /// 已完成
  16. LZCaptrueAudioStatePlay, /// 播放
  17. LZCaptrueAudioStateSubmit, /// 提交
  18. };
  19. NS_ASSUME_NONNULL_BEGIN
  20. @interface YOUPAILZRecordAudioView : UIView
  21. - (instancetype)initWithFrame:(CGRect)frame model:(YOUPAILZGameModel *)model;
  22. @property (nonatomic, assign) LZCaptrueAudioState youpaipstate;
  23. @end
  24. NS_ASSUME_NONNULL_END