Intel® Collaboration Suite for WebRTC  version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for Windows*
audioplayerinterface.h
1 // Copyright (C) <2019> Intel Corporation
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #ifndef OWT_BASE_AUDIOPLAYERINTERFACE_H_
6 #define OWT_BASE_AUDIOPLAYERINTERFACE_H_
7 
8 namespace owt {
9 namespace base {
12  public:
14  virtual void OnData(const void* audio_data,
15  int bits_per_sample,
16  int sample_rate,
17  size_t number_of_channels,
18  size_t number_of_frames) {}
19 
20  protected:
21  virtual ~AudioPlayerInterface() {}
22 };
23 } // namespace base
24 } // namespace owt
25 #endif // OWT_BASE_AUDIOPLAYERINTERFACE_H_
virtual void OnData(const void *audio_data, int bits_per_sample, int sample_rate, size_t number_of_channels, size_t number_of_frames)
Passes audio buffer to audio player.
Definition: audioplayerinterface.h:14
Definition: audioplayerinterface.h:8
Interface for rendering PCM data in a stream.
Definition: audioplayerinterface.h:11