Fix LFO phase
Merge pull request #1168 from diizy/master

Fix LFO phase
LMMS Memory Manager
Fix 64 bit, increase mm usage
Fixes
More fixes
Add dedicated manager for noteplayhandles
This caches and reuses nph's independently of the generic memory manager.
Changing and fixing some stuff
- QHash is better to use than QMap in MemoryManager: faster lookups, able to reserve memory in advance
- Also: reserve memory in advance for the QVector and QHash, so we don't get needles allocs for them
- No need to do cleanup for the nph manager, as it uses the generic manager for allocs, and that already gets cleaned up
Use ReadWriteLock for the pools container instead of Mutex
Fix arpeggio to work better with the new way to handle note offsets
Ok, not really related to memory management, but was something that needed doing and it's easier to test things when things work properly
remove tr.whitespace
Fix weird issue with remotevstplugin
Use memory management in LADSPA effects
Also optimize non-inplacebroken plugins by using the same buffer for input/output
Make it possible to use sample-exact controls in LADSPA plugins
I don't think we currently have any that would support this functionality, but in case someone has a LADSPA plugin that has audiorate control ports, this allows them to be used with the new sample-exact models
Again... not strictly related to memory management, but since I was in that part of the codebase already...
Implement BufferManager
Also, apply things learned while writing BufferManager to the similar NotePlayHandleManager
Huge structural changes
Well, this commit got a bit out of hand, what with 26 files changed. Oh well.

Basically, we're using the buffermanager to dispense temporary buffers for playhandles and audioports to use.
This allows us to change the way playhandles work. Earlier, playhandles of the same track were waiting in line
to push their output to the audioport. This was of course inefficient, so now they just register themselves to the port,
then the port handles mixing the buffers.

Caveat: this is still a work in progress, the vol/pan knobs on instruments are temporarily non-functional - will be fixed in
the next commit, but I have to get some sleep now.
Finish audioport rehaul, get vol/pan knobs working again, also some bugfixes
We're now doing the vol/pan stuff in audioport, since this way we avoid the pointless repetition of doing it in the playhandles
Fix bugs
Fix windows compiling
Fixes