YARP
Yet Another Robot Platform
AudioBufferSize.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
7
9
10//this casts are due to the fact the it is not yet possibile to define an unsigned type in thrift
11yarp::dev::AudioBufferSize::AudioBufferSize(size_t samples, size_t channels, size_t depth_in_bytes) :
12 audioBufferSizeData(static_cast<int32_t>(samples),
13 static_cast<int32_t>(channels),
14 static_cast<int32_t>(depth_in_bytes),
15 static_cast<int32_t>(samples * channels))
16{
17}
int16_t * samples