2 Copyright (C) 2014 Waves Audio Ltd.
\r
4 This program is free software; you can redistribute it and/or modify
\r
5 it under the terms of the GNU General Public License as published by
\r
6 the Free Software Foundation; either version 2 of the License, or
\r
7 (at your option) any later version.
\r
9 This program is distributed in the hope that it will be useful,
\r
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
12 GNU General Public License for more details.
\r
14 You should have received a copy of the GNU General Public License
\r
15 along with this program; if not, write to the Free Software
\r
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
\r
20 #include "waves_dataport.h"
\r
21 #include "waves_audiobackend.h"
\r
23 using namespace ARDOUR;
\r
27 WavesAudioBackend::set_systemic_input_latency (uint32_t systemic_input_latency)
\r
29 // COMMENTED DBG LOGS */ std::cout << "WavesAudioBackend::set_systemic_input_latency (): " << systemic_input_latency << std::endl;
\r
31 _systemic_input_latency = systemic_input_latency;
\r
37 WavesAudioBackend::set_systemic_output_latency (uint32_t systemic_output_latency)
\r
39 // COMMENTED DBG LOGS */ std::cout << "WavesAudioBackend::set_systemic_output_latency (): " << systemic_output_latency << std::endl;
\r
41 _systemic_output_latency = systemic_output_latency;
\r
46 WavesAudioBackend::systemic_input_latency () const
\r
48 // COMMENTED DBG LOGS */ std::cout << "WavesAudioBackend::systemic_input_latency ()" << std::endl;
\r
50 return _systemic_input_latency;
\r
55 WavesAudioBackend::systemic_output_latency () const
\r
57 // COMMENTED DBG LOGS */ std::cout << "WavesAudioBackend::systemic_output_latency ()" << std::endl;
\r
59 return _systemic_output_latency;
\r
64 WavesAudioBackend::update_latencies ()
\r
66 // COMMENTED DBG LOGS */ std::cout << "update_latencies:" << std::endl;
\r
71 WavesAudioBackend::set_latency_range (PortHandle port_handle, bool for_playback, LatencyRange latency_range)
\r
73 if (!_registered (port_handle)) {
\r
74 std::cerr << "WavesAudioBackend::set_latency_range (): Failed to find port [" << std::hex << port_handle << std::dec << "]!" << std::endl;
\r
77 ((WavesDataPort*)port_handle)->set_latency_range (latency_range, for_playback);
\r
82 WavesAudioBackend::get_latency_range (PortHandle port_handle, bool for_playback)
\r
84 if (!_registered (port_handle)) {
\r
85 std::cerr << "WavesAudioBackend::get_latency_range (): Failed to find port [" << std::hex << port_handle << std::dec << "]!" << std::endl;
\r
86 LatencyRange lr = {0,0};
\r
89 return ((WavesDataPort*)port_handle)->latency_range (for_playback);
\r