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 {
11
class
AudioPlayerInterface
{
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_
owt::base::AudioPlayerInterface::OnData
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
owt
Definition:
audioplayerinterface.h:8
owt::base::AudioPlayerInterface
Interface for rendering PCM data in a stream.
Definition:
audioplayerinterface.h:11
sdk
include
cpp
owt
base
audioplayerinterface.h
Generated on Mon Jun 15 2020 13:22:39 for Intel® Collaboration Suite for WebRTC version 4.3.1