AU: remove cruft, fix parameter initialization
authorRobin Gareus <robin@gareus.org>
Sat, 16 Jul 2016 03:01:26 +0000 (05:01 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 16 Jul 2016 03:01:26 +0000 (05:01 +0200)
libs/ardour/ardour/audio_unit.h
libs/ardour/audio_unit.cc

index cabc78842e35abee666cfc3e0b5b82256783df95..7914dce0ab2e19cd4fdb23828591db62eab3d6e9 100644 (file)
@@ -170,10 +170,7 @@ class LIBARDOUR_API AUPlugin : public ARDOUR::Plugin
        int32_t input_channels;
        int32_t output_channels;
        std::vector<std::pair<int,int> > io_configs;
-       pframes_t _current_block_size;
        framecnt_t _last_nframes;
-       framepos_t _transport_frame;
-       framepos_t _transport_speed;
        bool _requires_fixed_size_buffers;
        AudioBufferList* buffers;
        bool _has_midi_input;
index 88cc197d60d5b50023d047dfd56db65f7edf258d..74b7ce656633e75a8ae890969ee3631248bbda50 100644 (file)
@@ -430,7 +430,8 @@ AUPlugin::AUPlugin (AudioEngine& engine, Session& session, boost::shared_ptr<CAC
        , comp (_comp)
        , unit (new CAAudioUnit)
        , initialized (false)
-       , _current_block_size (0)
+       , _last_nframes (0)
+       , _current_latency (-1)
        , _requires_fixed_size_buffers (false)
        , buffers (0)
        , variable_inputs (false)
@@ -448,8 +449,8 @@ AUPlugin::AUPlugin (AudioEngine& engine, Session& session, boost::shared_ptr<CAC
        , audio_input_cnt (0)
        , _parameter_listener (0)
        , _parameter_listener_arg (0)
-       , transport_frame (false)
-       , transport_speed (false)
+       , transport_frame (0)
+       , transport_speed (0)
        , last_transport_speed (0.0)
 {
        if (!preset_search_path_initialized) {
@@ -470,8 +471,8 @@ AUPlugin::AUPlugin (const AUPlugin& other)
        , comp (other.get_comp())
        , unit (new CAAudioUnit)
        , initialized (false)
-       , _current_block_size (0)
        , _last_nframes (0)
+       , _current_latency (-1)
        , _requires_fixed_size_buffers (false)
        , buffers (0)
        , variable_inputs (false)
@@ -482,11 +483,15 @@ AUPlugin::AUPlugin (const AUPlugin& other)
        , bus_outputs (0)
        , input_maxbuf (0)
        , input_offset (0)
+       , cb_offsets (0)
        , input_buffers (0)
        , input_map (0)
        , frames_processed (0)
        , _parameter_listener (0)
        , _parameter_listener_arg (0)
+       , transport_frame (0)
+       , transport_speed (0)
+       , last_transport_speed (0.0)
 
 {
        init ();