YARP
Yet Another Robot Platform
AudioBufferSize.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* All rights reserved.
4
*
5
* This software may be modified and distributed under the terms of the
6
* BSD-3-Clause license. See the accompanying LICENSE file for details.
7
*/
8
9
#include <
yarp/dev/AudioBufferSize.h
>
10
11
yarp::dev::AudioBufferSize::AudioBufferSize
() =
default
;
12
13
//this casts are due to the fact the it is not yet possibile to define an unsigned type in thrift
14
yarp::dev::AudioBufferSize::AudioBufferSize
(
size_t
samples
,
size_t
channels,
size_t
depth_in_bytes) :
15
audioBufferSizeData
(static_cast<int32_t>(
samples
),
16
static_cast<int32_t>(channels),
17
static_cast<int32_t>(depth_in_bytes),
18
static_cast<int32_t>(
samples
* channels))
19
{
20
}
yarp::dev::AudioBufferSize::AudioBufferSize
AudioBufferSize()
samples
int16_t * samples
Definition:
FfmpegWriter.cpp:76
yarp::dev::audioBufferSizeData
Definition:
audioBufferSizeData.h:27
AudioBufferSize.h
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_dev
src
yarp
dev
AudioBufferSize.cpp
Generated on Sun Jan 3 2021 02:46:23 for YARP by
1.8.20