mirror of https://github.com/AxioDL/metaforce.git
CMidiManager: std::move sequencer within SetAudioSysHandle()
Provides the same behavior but without a redundant reference count increment and then decrement.
This commit is contained in:
parent
08604d770a
commit
2b4888dcb6
|
@ -30,7 +30,7 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
amuse::ObjToken<amuse::Sequencer> GetAudioSysHandle() const { return x0_sequencer; }
|
amuse::ObjToken<amuse::Sequencer> GetAudioSysHandle() const { return x0_sequencer; }
|
||||||
void SetAudioSysHandle(amuse::ObjToken<amuse::Sequencer> sequencer) { x0_sequencer = sequencer; }
|
void SetAudioSysHandle(amuse::ObjToken<amuse::Sequencer> sequencer) { x0_sequencer = std::move(sequencer); }
|
||||||
// const CSfxHandle& GetManagerHandle() const { return x4_handle; }
|
// const CSfxHandle& GetManagerHandle() const { return x4_handle; }
|
||||||
// void SetMidiHandle(const CSfxHandle& handle) { x4_handle = handle; }
|
// void SetMidiHandle(const CSfxHandle& handle) { x4_handle = handle; }
|
||||||
bool IsAvailable() const { return xa_available; }
|
bool IsAvailable() const { return xa_available; }
|
||||||
|
|
Loading…
Reference in New Issue