Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Update MidiFileContext
Browse files Browse the repository at this point in the history
  • Loading branch information
FangCunWuChang committed Aug 23, 2023
1 parent aecc454 commit 9b2b552
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions MidiFileContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
* \author WuChang
* \email [email protected]
* \date Aug 2023
* \version 1.2.0
* \version 1.2.1
* \license MIT License
*********************************************************************/

#include "MidiFileContext.h"

namespace DMDA {
juce::MidiFile* MidiFileContext::getData() const {
const juce::MidiFile* MidiFileContext::getData() const {
return this->ptrData;
}

void MidiFileContext::setData(juce::MidiFile* data) {
void MidiFileContext::setData(const juce::MidiFile* data) {
this->ptrData = data;
}

Expand Down
8 changes: 4 additions & 4 deletions MidiFileContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* \author WuChang
* \email [email protected]
* \date Aug 2023
* \version 1.2.0
* \version 1.2.1
* \license MIT License
*********************************************************************/

Expand All @@ -25,18 +25,18 @@ namespace DMDA {
/**
* Get the reference of the data.
*/
juce::MidiFile* getData() const;
const juce::MidiFile* getData() const;
/**
* Set data.
*/
void setData(juce::MidiFile* data);
void setData(const juce::MidiFile* data);
/**
* Get the reference of the read write lock.
*/
juce::ReadWriteLock& getLock() const;

private:
juce::MidiFile* ptrData = nullptr;
const juce::MidiFile* ptrData = nullptr;
mutable juce::ReadWriteLock lock;

JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(MidiFileContext)
Expand Down

0 comments on commit 9b2b552

Please sign in to comment.