Pass in unique_ptr to SampleClip::setSampleBuffer
This commit is contained in:
@@ -77,9 +77,9 @@ public:
|
||||
|
||||
bool isPlaying() const;
|
||||
void setIsPlaying(bool isPlaying);
|
||||
void setSampleBuffer(std::unique_ptr<SampleBuffer>&& sb);
|
||||
|
||||
public slots:
|
||||
void setSampleBuffer( lmms::SampleBuffer* sb );
|
||||
void setSampleFile( const QString & sf );
|
||||
void updateLength();
|
||||
void toggleRecord();
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include <QList>
|
||||
#include <QPair>
|
||||
#include <memory>
|
||||
|
||||
#include "PlayHandle.h"
|
||||
#include "TimePos.h"
|
||||
@@ -53,7 +54,7 @@ public:
|
||||
bool isFromTrack( const Track * _track ) const override;
|
||||
|
||||
f_cnt_t framesRecorded() const;
|
||||
void createSampleBuffer(SampleBuffer** _sample_buf);
|
||||
std::unique_ptr<SampleBuffer> createSampleBuffer();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user