diff options
author | David Robillard <d@drobilla.net> | 2008-05-21 18:07:31 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-21 18:07:31 +0000 |
commit | 96384d65a67648fcbf617d2cea1fdd47b907c112 (patch) | |
tree | c9580da1bd5956b1ce37308ee0470eb5f4bbaf05 /libs/ardour/ardour/midi_ring_buffer.h | |
parent | 23c6936f433bfd07437b157eda4f36210819f2cf (diff) |
More petty clean ups of MIDI stuff.
Use more complete header I had laying around for MIDI controller names / depollute Automatable.
git-svn-id: svn://localhost/ardour2/branches/3.0@3378 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/midi_ring_buffer.h')
-rw-r--r-- | libs/ardour/ardour/midi_ring_buffer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/ardour/ardour/midi_ring_buffer.h b/libs/ardour/ardour/midi_ring_buffer.h index 76cefd57a1..2a1d771792 100644 --- a/libs/ardour/ardour/midi_ring_buffer.h +++ b/libs/ardour/ardour/midi_ring_buffer.h @@ -172,7 +172,7 @@ MidiRingBufferBase<T>::read(size_t size, T* dst) : _size - priv_read_ptr; memcpy(dst, &_buf[priv_read_ptr], read_size); - + g_atomic_int_set(&_read_ptr, (priv_read_ptr + read_size) % _size); return read_size; @@ -213,7 +213,6 @@ MidiRingBufferBase<T>::skip(size_t size) } - template<typename T> inline void MidiRingBufferBase<T>::write(size_t size, const T* src) |