SoundTouchOperation.h 664 B

123456789101112131415161718192021222324
  1. /*
  2. ReadMe.strings
  3. Created by chuliangliang on 15-1-14.
  4. Copyright (c) 2014年 aikaola. All rights reserved.
  5. */
  6. #import <Foundation/Foundation.h>
  7. typedef struct sountTouchConfig {
  8. int sampleRate; //采样率 <这里使用8000 原因: 录音是采样率:8000>
  9. int tempoChange; //速度 <变速不变调>
  10. int pitch; // 音调
  11. int rate; //声音速率
  12. } MySountTouchConfig;
  13. @interface SoundTouchOperation : NSOperation
  14. {
  15. id target;
  16. SEL action;
  17. MySountTouchConfig MysoundConfig;
  18. }
  19. - (id)initWithTarget:(id)tar action:(SEL)ac SoundTouchConfig:(MySountTouchConfig)soundConfig soundFile:(NSData *)file;
  20. @end