You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Rename AudioSampleBuffer to AudioBuffer<float>
For a long time now, juce::AudioSampleBuffer has been nothing but an alias for its true (templated) type, AudioBuffer<float>.
This commit is contained in:
@@ -54,13 +54,23 @@
|
||||
#ifdef USE_IMAGEMAGICK
|
||||
%shared_ptr(Magick::Image)
|
||||
#endif
|
||||
%shared_ptr(juce::AudioSampleBuffer)
|
||||
%shared_ptr(juce::AudioBuffer<float>)
|
||||
%shared_ptr(openshot::Frame)
|
||||
|
||||
/* Instantiate the required template specializations */
|
||||
%template() std::map<std::string, int>;
|
||||
%template() std::pair<int, int>;
|
||||
%template() std::vector<int>;
|
||||
%template() std::pair<double, double>;
|
||||
%template() std::pair<float, float>;
|
||||
%template() std::pair<std::string, std::string>;
|
||||
%template() std::vector<std::pair<std::string, std::string>>;
|
||||
|
||||
%{
|
||||
#include "OpenShotVersion.h"
|
||||
#include "ReaderBase.h"
|
||||
#include "WriterBase.h"
|
||||
#include "AudioDevices.h"
|
||||
#include "CacheBase.h"
|
||||
#include "CacheDisk.h"
|
||||
#include "CacheMemory.h"
|
||||
@@ -95,7 +105,6 @@
|
||||
#include "TimelineBase.h"
|
||||
#include "Timeline.h"
|
||||
#include "ZmqLogger.h"
|
||||
#include "AudioDeviceInfo.h"
|
||||
|
||||
%}
|
||||
|
||||
@@ -136,12 +145,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Instantiate the required template specializations */
|
||||
%template() std::map<std::string, int>;
|
||||
%template() std::pair<int, int>;
|
||||
%template() std::vector<int>;
|
||||
%template() std::pair<double, double>;
|
||||
%template() std::pair<float, float>;
|
||||
|
||||
|
||||
/* Wrap std templates (list, vector, etc...) */
|
||||
%template(ClipList) std::list<openshot::Clip *>;
|
||||
@@ -151,6 +155,8 @@
|
||||
%template(FieldVector) std::vector<openshot::Field>;
|
||||
%template(MappedFrameVector) std::vector<openshot::MappedFrame>;
|
||||
%template(MetadataMap) std::map<std::string, std::string>;
|
||||
|
||||
/* Deprecated */
|
||||
%template(AudioDeviceInfoVector) std::vector<openshot::AudioDeviceInfo>;
|
||||
|
||||
/* Make openshot.Fraction more Pythonic */
|
||||
@@ -251,6 +257,7 @@
|
||||
%include "OpenShotVersion.h"
|
||||
%include "ReaderBase.h"
|
||||
%include "WriterBase.h"
|
||||
%include "AudioDevices.h"
|
||||
%include "CacheBase.h"
|
||||
%include "CacheDisk.h"
|
||||
%include "CacheMemory.h"
|
||||
@@ -289,7 +296,6 @@
|
||||
%include "TimelineBase.h"
|
||||
%include "Timeline.h"
|
||||
%include "ZmqLogger.h"
|
||||
%include "AudioDeviceInfo.h"
|
||||
|
||||
#ifdef USE_OPENCV
|
||||
%include "ClipProcessingJobs.h"
|
||||
|
||||
Reference in New Issue
Block a user