diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-04 21:16:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-07 22:48:29 +0100 |
| commit | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (patch) | |
| tree | e56a3f82fb9e1c8602f265bea0d0688d8a018644 /src/lib/audio_buffers.cc | |
| parent | 0d35820cf50d2789752b8776683b26d04642518d (diff) | |
std::shared_ptr
Diffstat (limited to 'src/lib/audio_buffers.cc')
| -rw-r--r-- | src/lib/audio_buffers.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/audio_buffers.cc b/src/lib/audio_buffers.cc index cfe762659..1de2af2ec 100644 --- a/src/lib/audio_buffers.cc +++ b/src/lib/audio_buffers.cc @@ -27,7 +27,7 @@ #include <stdexcept> using std::bad_alloc; -using boost::shared_ptr; +using std::shared_ptr; /** Construct an AudioBuffers. Audio data is undefined after this constructor. * @param channels Number of channels. @@ -47,13 +47,13 @@ AudioBuffers::AudioBuffers (AudioBuffers const & other) copy_from (&other, other._frames, 0, 0); } -AudioBuffers::AudioBuffers (boost::shared_ptr<const AudioBuffers> other) +AudioBuffers::AudioBuffers (std::shared_ptr<const AudioBuffers> other) { allocate (other->_channels, other->_frames); copy_from (other.get(), other->_frames, 0, 0); } -AudioBuffers::AudioBuffers (boost::shared_ptr<const AudioBuffers> other, int32_t frames_to_copy, int32_t read_offset) +AudioBuffers::AudioBuffers (std::shared_ptr<const AudioBuffers> other, int32_t frames_to_copy, int32_t read_offset) { allocate (other->_channels, frames_to_copy); copy_from (other.get(), frames_to_copy, read_offset, 0); |
