NO-OP: internal whitespace and newline cleanup
This commit is contained in:
parent
4267d5b0d7
commit
5da8de05ca
@ -1431,7 +1431,7 @@ MidiModel::edit_lock()
|
|||||||
* if playback resumes at the same point after the edit.
|
* if playback resumes at the same point after the edit.
|
||||||
*/
|
*/
|
||||||
source_lock = new Source::WriterLock (_midi_source.mutex());
|
source_lock = new Source::WriterLock (_midi_source.mutex());
|
||||||
_midi_source.invalidate(*source_lock);
|
_midi_source.invalidate (*source_lock);
|
||||||
return WriteLock (new WriteLockImpl (source_lock, _lock, _control_lock));
|
return WriteLock (new WriteLockImpl (source_lock, _lock, _control_lock));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,34 +94,35 @@ Event<Timestamp>::Event(EventType type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename Timestamp>
|
template<typename Timestamp>
|
||||||
Event<Timestamp>::Event(const Event& copy, bool owns_buf)
|
Event<Timestamp>::Event (const Event& copy, bool owns_buf)
|
||||||
: _type(copy._type)
|
: _type (copy._type)
|
||||||
, _time(copy._time)
|
, _time (copy._time)
|
||||||
, _size(copy._size)
|
, _size (copy._size)
|
||||||
, _buf(copy._buf)
|
, _buf (copy._buf)
|
||||||
, _id (next_event_id ())
|
, _id (next_event_id ())
|
||||||
, _owns_buf(owns_buf)
|
, _owns_buf (owns_buf)
|
||||||
{
|
{
|
||||||
if (owns_buf) {
|
if (owns_buf) {
|
||||||
_buf = (uint8_t*)malloc(_size);
|
_buf = (uint8_t*) malloc (_size);
|
||||||
if (copy._buf) {
|
if (copy._buf) {
|
||||||
memcpy(_buf, copy._buf, _size);
|
memcpy (_buf, copy._buf, _size);
|
||||||
} else {
|
} else {
|
||||||
memset(_buf, 0, _size);
|
memset (_buf, 0, _size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Timestamp>
|
template<typename Timestamp>
|
||||||
Event<Timestamp>::~Event() {
|
Event<Timestamp>::~Event()
|
||||||
|
{
|
||||||
if (_owns_buf) {
|
if (_owns_buf) {
|
||||||
free(_buf);
|
free (_buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Timestamp>
|
template<typename Timestamp>
|
||||||
void
|
void
|
||||||
Event<Timestamp>::assign(const Event& other)
|
Event<Timestamp>::assign (const Event& other)
|
||||||
{
|
{
|
||||||
_id = other._id;
|
_id = other._id;
|
||||||
_type = other._type;
|
_type = other._type;
|
||||||
|
@ -534,9 +534,7 @@ Sequence<Time>::Sequence(const Sequence<Time>& other)
|
|||||||
*/
|
*/
|
||||||
template<typename Time>
|
template<typename Time>
|
||||||
bool
|
bool
|
||||||
Sequence<Time>::control_to_midi_event(
|
Sequence<Time>::control_to_midi_event(std::shared_ptr< Event<Time> >& ev, const ControlIterator& iter) const
|
||||||
std::shared_ptr< Event<Time> >& ev,
|
|
||||||
const ControlIterator& iter) const
|
|
||||||
{
|
{
|
||||||
assert(iter.list.get());
|
assert(iter.list.get());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user