Commit Graph

1969 Commits

Author SHA1 Message Date
Tobias Doerffel
b4e38e3978 AudioJack: fixed lockup when getting zombified
This commit fixes lockup of the whole audio engine as soon as LMMS'
JACK backend got zombified due to longer delays (e.g. when audio engine
is blocked while loading a project). Restart JACK backend in such cases
and show an according message to the user.

Furthermore this commit includes various cleanups and improvements.
2009-04-07 00:07:19 +02:00
Tobias Doerffel
f42fee37c3 ProjectRenderer: fixed bug introduced by 1b91b599b...
There's been a missing evaluation of _os.depth in the 2nd ternary
operator which caused depth of filetype always be 24 bit even if 16 bit
was selected.
2009-04-06 00:20:12 +02:00
Tobias Doerffel
ff010da5ee SongEditor: fixed horizontal scrollbar with Qt 4.5
Due to optimizations in the graphics subsystem of Qt 4.5
songEditor::paintEvent() didn't get called regularly anymore and thus
the range of the horizontal scrollbar didn't get updated at all.

This commit makes the GUI track all changes related to the length of
the song.
2009-04-05 23:54:28 +02:00
Tobias Doerffel
0ae72462d9 LocalResourcesProvider: fixed filesystem monitoring
The slot LocalResourcesProvider::reloadDirectory() contained various bugs
so it did not record changes in filesystem properly. This also fixes lots
of QFileSystemWatcher messages in console window when saving a new project
inside LMMS.
2009-04-05 23:18:37 +02:00
Tobias Doerffel
1b91b599ba ProjectRenderer: added support for 24 Bit WAVs
Integrated patch by Skiessi which adds support for exporting 24 Bit WAV
files in LMMS.
2009-04-05 16:02:27 +02:00
llama
7cb7bc1dcf GIT SUCKS BALLS. FINALLY A COMMIT FROM WEEKS AGO 2009-03-31 19:56:12 -05:00
Tobias Doerffel
f7fa720d0b ZynAddSubFX: follow recent changes in CVS repository
Follow recent changes in ZynAddSubFX CVS repository - ChangeLog says:

29 Mar 2009 (Mark McCurry)
            - Started to use Doxygen within the Effects
            - Started to use const within Effects
            - Changing tabs->four spaces in hopes of generating a bit more
              consitancy
            - Began to use Initialization Lists
            - Almost all changes contained in Effects until further
              discussion on the style, so consistancy can be reached
2009-03-31 10:18:03 +02:00
Tobias Doerffel
ca5588f747 3rdparty/libsamplerate: updated to version 0.1.7
Updated 3rdparty libsamplerate to version 0.1.7 and bumped requirement
to system's libsamplerate to version 0.1.7.

Besides minor stuff, version 0.1.7 has one important fix:

  * src/src_sinc.c
  Fix a segfault which occurs when memcpy is passed a bad length parameter.
  This bug has zero security implications beyond the ability to cause a
  program hitting this bug to exit immediately with a segfault.
2009-03-26 23:54:08 +01:00
Tobias Doerffel
34bbde53e7 panning.h: fixed compiler warning
Fixed compiler warning about converting float to Sint16.
2009-03-25 17:00:06 +01:00
Tobias Doerffel
5dd68ea7f3 LVSL: track samplerate/tempo changes in VstPlugin base class
Up to now changes of samplerate or tempo only have been tracked by the
VeSTige plugin while e.g. the VstEffect didn't forward such changes to the
RemotePlugin. Moving according code from VeSTige to VstPlugin base class
fixes this issue.
2009-03-22 15:59:09 +01:00
Tobias Doerffel
dce6ae9a7d VstEffect: set displayName property at initialization
In VstEffect constructor set the displayName property in order to make
EffectView display actual plugin name rather than just "VST Effect".
2009-03-22 15:32:06 +01:00
Tobias Doerffel
2547bf8d57 Oscillator: reverted recent fix for PM
As of acaaea8204 a samplerate dependent
ratio has been added into calculation of the local phase. This however is
wrong for PM.
2009-03-22 15:15:47 +01:00
Tobias Doerffel
96fb6f5a38 RemoteVstPlugin: use SplittedThreading model for MDA plugins
Most of the MDA VST plugins require the SplittedThreading model in order
to run properly. All plugins whose unique ID starts with "mda" will be
driven with the SplittedThreading model.
2009-03-22 14:50:57 +01:00
Tobias Doerffel
dc7cc064ce ControllerConnection: export symbols for win32 build
As of ee9e5680b7, LADSPA effect plugins access
ControllerConnection class. We therefore need to export its symbols.
2009-03-22 01:03:27 +01:00
Tobias Doerffel
acaaea8204 Oscillator: fixed samplerate dependence of FM/PM
When doing FM/PM, the value of sub-oscillator is globally/locally added to
phase. However when doing this, a ratio between fixed default samplerate and
actual samplerate needs to be taken into account in the phase calculation.

This commit fixes missounding render output when rendering projects with
FM/PM inside at higher samplerates. (Thanks to Skiessi for his ladspa2.mmpz
which clearly brought up this bug)
2009-03-21 10:30:49 +01:00
Tobias Doerffel
a1299e3829 ZynAddSubFX: add preset directory to bankRootDirList
This commit fixes non-usable instrument bank browser in ZynAddSubFX,
especially in win32 version. Adding the ZynAddSubFX preset directory (inside
LMMS' preset directory) to config.cfg.bankRootDirList allows easy instrument
browsing using ZynAddSubFX' instrument bank browser (closes #2627950).
2009-03-20 11:45:58 +01:00
Tobias Doerffel
f195d907a7 AudioAlsa: fixed crash when no more data is available
Calling alignedMemClear() when getNextBuffer() returns 0 is superfluous and
causes crashes in some situations. Simply get out of the outer loop as soon
as quit==true.
2009-03-18 23:57:16 +01:00
Tobias Doerffel
ee9e5680b7 LadspaEffect: fixed controller connections on samplerate changes
When global samplerate changes, settings of a LADSPA effect are stored in
a temporary object, the effect is reloaded and the settings are restored.
However, controller connections weren't restored properly as the connections
were not finalized. This commit fixes the issue.
2009-03-18 23:35:02 +01:00
Tobias Doerffel
617def002b MidiImport: fixed mistransposed notes
When importing MIDI files notes were always mistransposed by 9 semitones.
This commit fixes correction of notes' keys so imported MIDI files sound
just like they should.
2009-03-18 00:06:32 +01:00
Tobias Doerffel
59d20ec984 Vibed: cleanups in NineButtonSelector
Cleaned up, fixed some coding issues and added a TODO comment.
2009-03-16 18:23:35 +01:00
Tobias Doerffel
d3cc908f43 Vibed: fixed legacy code in NineButtonSelector
In Qt3 we had to take care of drawing background properly if there were
semitransparent child widgets. This code had been ported to the Qt4 version
but is obsolete and causes a crash when for example dragging a Vibed preset
onto an existing instrument track. This commit removes this code.
(closes #2688270)
2009-03-16 18:22:45 +01:00
Tobias Doerffel
ea3989a4c1 ZynAddSubFX: follow recent changes in CVS repository
Follow recent changes in ZynAddSubFX CVS repository - ChangeLog says:

07 Mar 2009 (Mark McCurry)
	- Incorperated QUERTZ layout by Achim Settelmeier
2009-03-16 17:47:06 +01:00
Tobias Doerffel
b1787f2c87 AutomationPatternView: anti-aliased painting of automation data
If pixels/tact ratio <= 32 use anti-aliasing for drawing automation data
resulting in a smoother appearence.
2009-03-16 17:38:39 +01:00
Tobias Doerffel
9ea3c6660d AutomationPatternView: fixed painting of automation data
At low pixels/tact ratio automation was not drawn properly due to miscalculation
of x2 variable. This patch fixes this by adding 1 to x2.
2009-03-16 17:37:25 +01:00
Tobias Doerffel
02b06ae91e TrackContentWidget: cleaned up unused variable 2009-03-16 17:14:40 +01:00
Tobias Doerffel
b1fe2dcbdf Sf2Player: fixed hanging notes with enabled panning support
If SF2_PANNING_SUPPORT is set, overlapping notes of the same key played on
different MIDI channel caused some notes to hang. This commit fixes the issue.
2009-03-16 16:51:35 +01:00
Tobias Doerffel
12fd3206b4 Sf2Player: truncated LOG440 constant
Having LOG440 as double with a mantissa of 51 digits doesn't help anything.
Truncated to float with 9 digits.
2009-03-16 15:37:16 +01:00
Tobias Doerffel
f0cd8631d7 Sf2Player: properly update patch if panning support is enabled
If SF2_PANNING_SUPPORT is set, changed patches were applied to current
channel after calling fluid_synth_noteon(...) - some notes still were played
with the old patch until m_channel made one round trip.
2009-03-15 21:57:17 +01:00
Tobias Doerffel
7449c4f731 Fixed various types to be suffixed with "_t".
This commit ensures that all defined data types in include/lmms_basics.h are
suffxed with "_t" to keep consistency as well as to fix issues on systems
with older STL/libstdc++.
2009-03-15 16:28:13 +01:00
Tobias Doerffel
d981b32480 MidiPort: subscribe writable rather than readable port when settings
When loading MidiPort settings, erroneously readable port was subscribed rather
than writable port. This commit fixes the issue.
2009-03-14 19:09:46 +01:00
Tobias Doerffel
fdc065b8b8 MidiAlsaSeq: fixed typo which made output ports not work at all
As of 94d13e84ca, MidiClients::writablePorts()
was not overloaded properly anymore and thus no output ports appeared anymore.
2009-03-14 19:06:43 +01:00
Tobias Doerffel
bd9be061a0 MidiPortMenu: minor coding style fixes 2009-03-14 19:06:06 +01:00
Tobias Doerffel
c24b923b78 FX-Fader: added accessibleName property for FX faders for not displaying
an empty titlebar in context-menu
2009-03-14 16:02:18 +01:00
Tobias Doerffel
22c877d4f9 InstrumentTrack: in compat code of loadTrackSpecificSettings() also
check for nodeName being "connection" - do not try to load an instrument
called "connection" if one of the basic parameters of the InstrumentTrack
is automated
2009-03-13 09:47:29 +01:00
Tobias Doerffel
46097b72d7 Various fixes for better OpenBSD compatibility (thanks to Jacob Meuser) 2009-03-12 19:34:03 +01:00
Tobias Doerffel
03bf853a4d AutomationPattern: save and restore length of AutomationPattern to avoid
confusions with the previous auto-resize behaviour
2009-03-12 19:03:42 +01:00
Tobias Doerffel
94d13e84ca MIDI subsystem: fixed misspelled "writeable" into "writable", minor
coding style fixes
2009-03-12 01:09:32 +01:00
Tobias Doerffel
782156cf70 MidiPort: properly emit portChanged signals when loading settings - fixes
MidiPortMenu showing devices not checked although actually connected
2009-03-12 01:00:36 +01:00
Tobias Doerffel
3084b361ea PeakControllerEffect: corrected calculation for RMS and moved loops out
of if-branches - results however should be nearly the same but more accurate
and not negative
2009-03-12 00:44:40 +01:00
Tobias Doerffel
e10de81df3 ResourcesItem: completely initialize itself even if name is empty 2009-03-10 23:31:08 +01:00
Tobias Doerffel
d794789210 ResourcesItem: if base()==BaseURL, try to return URL of provider in
getBaseDirectory()
2009-03-10 23:28:36 +01:00
Tobias Doerffel
2385a921eb WebResourcesProvider: added support for directory structure according to
directory information in WebResources/Index file
2009-03-10 23:21:23 +01:00
Tobias Doerffel
075b894b7e ResourcesDB: do not save topLevelNode in XML cache files - saves one
level of indentation and makes format more consistent
2009-03-10 18:53:15 +01:00
Tobias Doerffel
2d7b1f1211 LocalResourcesProvider: do not include own name in path-property of
directory items and fixed usage of ResourcesItem::fullName() - makes
format of XML cache file more consistent and also speeds up string
comparisonswhen filtering
2009-03-10 18:51:51 +01:00
Tobias Doerffel
5976ab5ce2 TrackContainerView: when dragging a preset file into TrackContainerView
load complete track settings rather than just track specific settings -
fixes an issue where the track name was not loaded from the dragged preset
2009-03-09 22:43:33 +01:00
Tobias Doerffel
0dcef8c771 Add one instance of WebResourcesProvider to global resources database 2009-03-09 00:54:41 +01:00
Tobias Doerffel
5238e02fe7 WebResourcesProvider: initial implementation allowing to browse and
download online resources just like if they were local files
2009-03-09 00:52:35 +01:00
Tobias Doerffel
ce6933bb7d ResourcesTreeModel: return proper data for web resources root node 2009-03-09 00:50:13 +01:00
Tobias Doerffel
0a37cfd795 ResourcesItem: evaluate complete suffix when determining file type by
extension - allows to classify legacy extensions such as ".cs.xml"
2009-03-09 00:48:49 +01:00
Tobias Doerffel
0b39b4c376 Build system: require QtNetwork module for web resources support 2009-03-09 00:47:56 +01:00