Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
8b8937c75This file is pinned to the selected release. Download the original to open it in your design tool.
/*****************************************************************************
AudioOut.cpp
Copyright (c) 2020 Raphael DINGE
*Tab=3***********************************************************************/
/*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
#include "erb/AudioOut.h"
namespace erb
{
/*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*
==============================================================================
Name : operator =
==============================================================================
*/
AudioOut & AudioOut::operator = (const Buffer & buffer)
{
*_buffer_ptr = buffer;
return *this;
}
/*
==============================================================================
Name : size
==============================================================================
*/
size_t AudioOut::size () const
{
return _buffer_ptr->size ();
}
/*
==============================================================================
Name : operator []
==============================================================================
*/
float & AudioOut::operator [] (size_t index)
{
return (*_buffer_ptr) [index];
}
/*
==============================================================================
Name : fill
==============================================================================
*/
void AudioOut::fill (float val)
{
_buffer_ptr->fill (val);
}
/*\\\ INTERNAL \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*
==============================================================================
Name : impl_bind_data
==============================================================================
*/
void AudioOut::impl_bind_data (Buffer & buffer)
{
_buffer_ptr = &buffer;
}
/*\\\ PROTECTED \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*\\\ PRIVATE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
} // namespace erb
/*\\\ EOF \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/