RTCAudioTrack.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright 2015 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #import <WebRTC/RTCMacros.h>
  11. #import <WebRTC/RTCMediaStreamTrack.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. @protocol RTC_OBJC_TYPE (RTCAudioRenderer);
  14. @class RTC_OBJC_TYPE(RTCAudioSource);
  15. RTC_OBJC_EXPORT
  16. @interface RTC_OBJC_TYPE (RTCAudioTrack) : RTC_OBJC_TYPE(RTCMediaStreamTrack)
  17. - (instancetype)init NS_UNAVAILABLE;
  18. /** The audio source for this audio track. */
  19. @property(nonatomic, readonly) RTC_OBJC_TYPE(RTCAudioSource) * source;
  20. /** Register a renderer that will receive all audio CMSampleBuffers on this track.
  21. * Does not retain. */
  22. - (void)addRenderer:(id<RTC_OBJC_TYPE(RTCAudioRenderer)>)renderer;
  23. /** Deregister a renderer */
  24. - (void)removeRenderer:(id<RTC_OBJC_TYPE(RTCAudioRenderer)>)renderer;
  25. @end
  26. NS_ASSUME_NONNULL_END