|
libpsynth 0.2.1
|
00001 00011 /* 00012 * Copyright (C) 2011 Juan Pedro BolĂvar Puente 00013 * 00014 * This file is part of Psychosynth. 00015 * 00016 * Psychosynth is free software: you can redistribute it and/or modify 00017 * it under the terms of the GNU General Public License as published by 00018 * the Free Software Foundation, either version 3 of the License, or 00019 * (at your option) any later version. 00020 * 00021 * Psychosynth is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00024 * GNU General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU General Public License 00027 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00028 * 00029 */ 00030 00031 #ifndef PSYNTH_GRAPH_CORE_PASSIVE_OUTPUT_HPP_ 00032 #define PSYNTH_GRAPH_CORE_PASSIVE_OUTPUT_HPP_ 00033 00034 #include <psynth/io/output_fwd.hpp> 00035 00036 #include <psynth/new_graph/control.hpp> 00037 #include <psynth/new_graph/buffer_port.hpp> 00038 #include <psynth/new_graph/sink_node.hpp> 00039 00040 #include <psynth/new_graph/core/passive_output_fwd.hpp> 00041 00042 namespace psynth 00043 { 00044 namespace graph 00045 { 00046 namespace core 00047 { 00048 00057 class passive_output : public sink_node 00058 { 00059 public: 00060 typedef io::output_ptr<audio_range> device_ptr; 00061 00062 passive_output (device_ptr out = device_ptr ()); 00063 void set_output (device_ptr out = device_ptr ()); 00064 void rt_do_process (rt_process_context& ctx); 00065 00066 private: 00067 audio_in_port _in_input; 00068 device_ptr _output; 00069 }; 00070 00071 } /* namespace core */ 00072 } /* namespace graph */ 00073 } /* namespace psynth */ 00074 00075 #endif /* PSYNTH_GRAPH_CORE_PASSIVE_OUTPUT_HPP_ */ 00076
1.7.4