Commit graph

16 commits

Author SHA1 Message Date
Igor Korsukov
45b9887603 changed code style 2020-05-28 09:50:45 +02:00
anatoly-os
1ef7929046 Moved midi, synthesizers, drives, exports to audio module 2020-04-16 12:23:51 +02:00
Igor Korsukov
68b3415c47 fixed some issues from PVS-Studio report (step1) 2020-03-20 12:18:07 +02:00
Joachim Schmitz
ff292d98b2 eliminate debug artifacts 2018-12-18 14:55:54 +01:00
anatoly-os
c5feea62ca lock synth mutex when closing MuseScore to prevent writing samples to deleted data structures
Optimize using raw pointer arrays - replace them with std::vector.
2018-08-30 20:44:07 +02:00
anatoly-os
3598e9581f fix memory leak and crash on deleting measures 2018-08-30 13:11:56 +02:00
Andres Fernandez de Prado
188386ba2e This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the  new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
     x Setting target properties for MSVC
     x Using all.h in source dir
     x Adding pre-compiled headers to target
     x Removing dependency from mops1 and mops2

Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-08-03 09:15:42 +02:00
anatoly-os
3ec575f009 fix #273245: all ogg samples are normalized
Remove normalization if max float sample value is lower than 1.f.
2018-06-11 09:25:32 +02:00
anatoly-os
3c7d545c46 fix #273135: incorrect stereo samples playback
Fix 'for' loop which converts floats to shorts
2018-06-08 14:27:16 +02:00
anatoly-os
209070b0ce fix #271718: clicking noise fix
Implemented correct float sample values (from ogg) conversion to short
2018-06-01 19:49:53 +02:00
anatoly-os
6c54a9653e Fix start/end loop opcodes size int-> long long
According to sfz documentation, offset, loop start/end are [0, 4Gb] in size
2018-06-01 10:30:24 +02:00
Johannes Wegener
393e09b124 fix #114681: add loop support to zerberus 2016-06-22 15:11:03 +02:00
Joachim Schmitz
6f3a7d1957 whitespace cleanup 2014-05-30 13:37:44 +02:00
lasconic
d16f2cb107 fix all.h dependency, hopefully less travis error 2014-04-17 10:15:44 +02:00
yufanyufan
fd0543c88c Fix the include detective.
audiofile.h is not a system header.
2013-12-29 14:29:41 -08:00
ws
9559b2ce58 add c++ wrapper for sndfile, replace ogg routines in fluid with sndfile 2013-06-03 12:54:37 +02:00