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 
10 
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