LCOV - code coverage report
Current view: top level - muse/framework/vst - ivstinstancesregister.h Coverage Total Hit
Test: filtered_coverage.info Lines: 0.0 % 2 0
Test Date: 2026-11-05 04:07:02

            Line data    Source code
       1              : /*
       2              :  * SPDX-License-Identifier: GPL-3.0-only
       3              :  * MuseScore-CLA-applies
       4              :  *
       5              :  * MuseScore Studio
       6              :  * Music Composition & Notation
       7              :  *
       8              :  * Copyright (C) 2021 MuseScore Limited and others
       9              :  *
      10              :  * This program is free software: you can redistribute it and/or modify
      11              :  * it under the terms of the GNU General Public License version 3 as
      12              :  * published by the Free Software Foundation.
      13              :  *
      14              :  * This program is distributed in the hope that it will be useful,
      15              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      16              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      17              :  * GNU General Public License for more details.
      18              :  *
      19              :  * You should have received a copy of the GNU General Public License
      20              :  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
      21              :  */
      22              : #pragma once
      23              : 
      24              : #include "modularity/imoduleinterface.h"
      25              : #include "audio/common/audiotypes.h"
      26              : 
      27              : #include "vsttypes.h"
      28              : 
      29              : namespace muse::vst {
      30              : class IVstInstancesRegister : MODULE_GLOBAL_INTERFACE
      31              : {
      32            0 :     INTERFACE_ID(IVstInstancesRegister)
      33              : public:
      34            0 :     virtual ~IVstInstancesRegister() = default;
      35              : 
      36              :     // make
      37              :     virtual IVstPluginInstancePtr makeAndRegisterInstrPlugin(const muse::audio::AudioResourceId& resourceId,
      38              :                                                              const muse::audio::TrackId trackId) = 0;
      39              : 
      40              :     virtual IVstPluginInstancePtr makeAndRegisterFxPlugin(const muse::audio::AudioResourceId& resourceId,
      41              :                                                           const muse::audio::TrackId trackId,
      42              :                                                           const muse::audio::AudioFxChainOrder chainOrder) = 0;
      43              : 
      44              :     virtual IVstPluginInstancePtr makeAndRegisterMasterFxPlugin(const muse::audio::AudioResourceId& resourceId,
      45              :                                                                 const muse::audio::AudioFxChainOrder chainOrder) = 0;
      46              :     // register
      47              :     virtual void registerInstrPlugin(const muse::audio::TrackId trackId, IVstPluginInstancePtr instance) = 0;
      48              : 
      49              :     virtual void registerFxPlugin(const muse::audio::TrackId trackId, const muse::audio::AudioFxChainOrder chainOrder,
      50              :                                   IVstPluginInstancePtr instance) = 0;
      51              : 
      52              :     virtual void registerMasterFxPlugin(const muse::audio::AudioFxChainOrder chainOrder, IVstPluginInstancePtr instance) = 0;
      53              : 
      54              :     // get
      55              :     virtual IVstPluginInstancePtr instanceById(const VstPluginInstanceId id) const = 0;
      56              : 
      57              :     virtual IVstPluginInstancePtr instrumentPlugin(const muse::audio::AudioResourceId& resourceId,
      58              :                                                    const muse::audio::TrackId trackId) const = 0;
      59              : 
      60              :     virtual IVstPluginInstancePtr fxPlugin(const muse::audio::AudioResourceId& resourceId, const muse::audio::TrackId trackId,
      61              :                                            const muse::audio::AudioFxChainOrder chainOrder) const = 0;
      62              : 
      63              :     virtual IVstPluginInstancePtr masterFxPlugin(const muse::audio::AudioResourceId& resourceId,
      64              :                                                  const muse::audio::AudioFxChainOrder chainOrder) const = 0;
      65              : 
      66              :     // unregister
      67              :     virtual void unregisterById(const VstPluginInstanceId id) = 0;
      68              : 
      69              :     virtual void unregisterInstrPlugin(const muse::audio::AudioResourceId& resourceId, const muse::audio::TrackId trackId) = 0;
      70              : 
      71              :     virtual void unregisterFxPlugin(const muse::audio::AudioResourceId& resourceId, const muse::audio::TrackId trackId,
      72              :                                     const muse::audio::AudioFxChainOrder chainOrder) = 0;
      73              : 
      74              :     virtual void unregisterMasterFxPlugin(const muse::audio::AudioResourceId& resourceId,
      75              :                                           const muse::audio::AudioFxChainOrder chainOrder) = 0;
      76              : 
      77              :     virtual void unregisterAllInstrPlugin() = 0;
      78              :     virtual void unregisterAllFx() = 0;
      79              : };
      80              : }
        

Generated by: LCOV version 2.0-1