PCMAudio.h
Go to the documentation of this file.
1 // Copyright (c) 2016 Digital Barriers
4 
20 #pragma once
21 
22 #include "EdgeVisSDK.h"
23 #include "Pimpl.h"
24 
25 namespace EdgeVisEncoderSDK
26 {
27  class PCMAudioImpl;
28  class PCMAudio : public EdgeVisSDKPimpl<PCMAudioImpl>
29  {
30  public:
31 
32 
42  DB_EDGEVIS_SDK PCMAudio(byte_array data, int32_t sample_rate, int64_t timestamp, int8_t channels, int8_t input);
43 
44  public:
45 
49  DB_EDGEVIS_SDK void Assign(byte_array data, int32_t sample_rate, int64_t timestamp, int8_t channels, int8_t input);
50 
56  DB_EDGEVIS_SDK int32_t GetSampleRate() const;
57 
63  DB_EDGEVIS_SDK int64_t GetTimestamp() const;
64 
70  DB_EDGEVIS_SDK int8_t GetChannels() const;
71 
77  DB_EDGEVIS_SDK int8_t GetInput() const;
78 
84  DB_EDGEVIS_SDK byte_array GetData() const;
85  };
86 }
DB_EDGEVIS_SDK int8_t GetInput() const
Get the video index input number for the audio data.
DB_EDGEVIS_SDK byte_array GetData() const
Get the audio data.
An object containing the audio data to be encoded.
Definition: PCMAudio.h:28
DB_EDGEVIS_SDK PCMAudio(byte_array data, int32_t sample_rate, int64_t timestamp, int8_t channels, int8_t input)
Creates a new PCMAudio object.
DB_EDGEVIS_SDK int32_t GetSampleRate() const
Get the sample rate of the audio data.
DB_EDGEVIS_SDK void Assign(byte_array data, int32_t sample_rate, int64_t timestamp, int8_t channels, int8_t input)
Assign new audio data to this PCMAudio object.
DB_EDGEVIS_SDK int64_t GetTimestamp() const
Get the timestamp of the audio data.
The EdgeVis Encoder SDK namespace.
DB_EDGEVIS_SDK int8_t GetChannels() const
Get the number of audio channels.