VLCEqualizerView.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*****************************************************************************
  2. * VLCEqualizerView.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan dot org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import <UIKit/UIKit.h>
  13. #import "VLCFrostedGlasView.h"
  14. #import "VLCSlider.h"
  15. @protocol VLCEqualizerViewDelegate <NSObject>
  16. @required
  17. @property (readwrite) CGFloat preAmplification;
  18. - (void)setAmplification:(CGFloat)amplification forBand:(unsigned)index;
  19. - (CGFloat)amplificationOfBand:(unsigned)index;
  20. - (NSArray *)equalizerProfiles;
  21. - (void)resetEqualizerFromProfile:(unsigned)profile;
  22. @end
  23. @protocol VLCEqualizerViewUIDelegate <NSObject>
  24. @optional
  25. - (void)equalizerViewReceivedUserInput;
  26. @end
  27. @interface VLCEqualizerView : VLCFrostedGlasView <UITableViewDataSource,UITableViewDelegate>
  28. @property (nonatomic, strong) UITableView *tableView;
  29. @property (weak) id <VLCEqualizerViewDelegate>delegate;
  30. @property (weak) id <VLCEqualizerViewUIDelegate>UIdelegate;
  31. - (void)reloadData;
  32. @end