13
0
Commit Graph

442 Commits

Author SHA1 Message Date
c8b207d911 Proper solution to replace 9cabc1b hack.
Initialize uninitialized variable (m_started), remove cruft.
2015-08-04 01:03:57 +02:00
55cd20d862 don’t set paClipOff, have portaudio clip to -1,+1
Fixes issues with some integer drivers where overflow wraps
(values > 1.0 end up at -1, producing a hard click)
2015-08-03 22:57:10 +02:00
c6a02503b4 Windows XP compat 2015-08-03 22:53:53 +02:00
9cabc1bb9a Fix MIDI input on Portaudio Backend with 32bit Windows release/optimized builds
MIDI input doesn't work with -O3 or -O2 optimization levels, no real idea why
at this point. So just append -O0 to CXXFLAGS to override previous optimization
flags for compiling the PortaudioBackend files
2015-08-04 00:15:59 +10:00
5122b7f8e1 Specifically #include <mmsystem.h> to get us TIMECAPS
(not sure why windows.h isn't already #including this for us - but it doesn't seem to be)
2015-07-31 13:48:25 +01:00
3015be533f Add some newly introduced sources to our MSVC project (portaudio_backend) 2015-07-31 13:45:18 +01:00
f3d3082872 Use llabs (rather than std::abs) for compatibility with MSVC
MSVC doesn't offer an override which accepts int64_t (at least, the 32-bit compiler doesn't)
2015-07-31 13:43:22 +01:00
0428f2e4c9 Use BOOL (rather than WINBOOL) for compatibility with MSVC
(WINBOOL is MinGW specific)
2015-07-31 13:41:16 +01:00
f9f01104c6 add missing pthread.h includes 2015-07-31 02:28:12 +02:00
cfbd9dd6d4 Add functionality to show ASIO control panel 2015-07-31 09:59:54 +10:00
acd17a9b53 Use MMCSS to elevate the thread priorities for audio and MIDI threads
use AVRT_PRIORITY_NORMAL for audio threads and AVRT_PRIORITY_HIGH for MIDI
threads
2015-07-31 09:59:54 +10:00
e9d00f5cfb Add MMCSS related code for raising thread priority on Windows 2015-07-31 09:59:54 +10:00
fe50d06876 Implement AudioBackend::driver_name() in PortaudioBackend
This was missing and is necessary for EngineControl dialog to work properly
2015-07-31 09:59:54 +10:00
6a0e46352c Add extra DEBUG_TRACE output to PortaudioBackend 2015-07-31 09:59:54 +10:00
e258c827e2 WinMME based midi input/output for portaudio backend
TODO:

Use MMCSS to elevate thread priorities
Enable/test and fix SYSEX related code
2015-07-31 09:59:54 +10:00
b12f865a4a Fix for PortAudioBackend::available_sample_rates
Was being called without initializing PA. PA should probably be initialized in
ctor but PA backend also needs to support hot-plugging devices at some point so
this will do for now
2015-07-31 09:59:54 +10:00
6b7875de1e Support selecting separate input and output devices in portaudio backend 2015-07-31 09:59:54 +10:00
ff1d4d5c67 Refactor PortAudioIO::discover into three private methods 2015-07-31 09:59:54 +10:00
4e370feeb1 Set default input/output device based on selected host api rather than global default 2015-07-31 09:59:54 +10:00
e2001ac4f3 Fix crash when unable to open portaudio stream
Calling Pa_Terminate after failing to open stream causes an assertion
2015-07-31 09:59:54 +10:00
b6db19a5c6 Add host api/driver selection to PortaudioBackend 2015-07-31 09:59:54 +10:00
64baed2b97 coreaudio aggregate device fix for 10.5 2015-07-24 01:34:57 +02:00
c0aa5a8d6b fix typo in old (pre 10.6) coreaudio API wrapper
fixes aggregate device support for PPC builds.
2015-07-22 20:20:11 +02:00
40c603c7e9 UTF8 encode windows device names - potential fix for #6418 2015-07-08 11:34:57 +02:00
4f81b17e85 another float/double -Wabsolute-value fix 2015-07-05 16:13:08 +02:00
fa7bb93329 fix jack_port_get_aliases return value (if n/a) 2015-07-04 12:54:41 +02:00
a68221e323 fix jack/pthread windows condition 2015-07-04 11:49:44 +02:00
9ccfb921d4 synchronize with https://github.com/x42/weakjack/ 2015-07-04 11:46:09 +02:00
416ef93635 use a trick to compile JACK/win with new and old headers
jack/systemdeps.h is jack2-only and contains many
windows-specific typedefs (native windows threads, ptw32 threads, MSVC
special cases etc etc.) which are not present in jack1/shared headers.
2015-07-04 09:52:04 +02:00
58a7b0e137 fix side-effect of moving to jack1 headers 2015-07-04 05:59:37 +02:00
278cd98799 fix compilation with mingw + pthreads 2015-07-04 05:48:42 +02:00
efb9da770d fix use of += in waf variable 2015-07-04 05:43:34 +02:00
c905be691d only compile, don’t link & run jack checks 2015-07-04 04:24:22 +02:00
d48a5f7068 fix weak jack w/new jack_port_rename() 2015-07-04 00:20:12 +02:00
35ab6e9075 fix error in type definition for weak jack handling of jack_port_rename 2015-07-02 14:24:49 -04:00
aaab192436 add conditional use of jack_port_rename(), a newly added public API for JACK 2015-07-02 14:02:07 -04:00
f814045f80 MSVC doesn't have 'sleep()' (it uses 'Sleep()' with a capital 'S') so let's make sure it'll still compile
(see the note about possibly using 'Glib::usleep()' ??)
2015-07-02 08:23:38 +01:00
2d098c346a add a raw CoreMidi data debug mode 2015-07-01 22:14:30 +02:00
b687ed9339 consolidate & document Coreaudio midi parser 2015-07-01 18:14:48 +02:00
da0ca57539 NOOP, reindent & whitespace 2015-07-01 01:18:52 +02:00
b86cf68e1f add an explicit midi parser/chunker to CoreAudio 2015-07-01 01:12:30 +02:00
5296a364c4 pthread_equal returns non-zero if equal. amend 5ab0288 2015-06-30 09:17:43 +02:00
5ab0288c99 at least make it compile with mingw. 2015-06-30 09:11:05 +02:00
93a64cb4fc new PBD::DEBUG API changes for Waves backend 2015-06-29 14:18:15 -04:00
GZharun
40ddbc6195 Fixed up types mismatch in AudioCallback and AudioCllbackData struct 2015-06-29 14:18:15 -04:00
76f066f40c fix typo in wavesbackend code 2015-06-29 14:18:15 -04:00
GZharun
51d2804535 Waves Backend MERGED from Tracks
[To be reviewed by] Paul Davis
2015-06-29 14:18:14 -04:00
GZharun
5d4f1c3419 Backend MERGE:
Paul Davis' change 3d12a4da82
[To be reviewed by] Paul Davis
2015-06-29 14:18:14 -04:00
GZharun
edbbc8344a Reverted Ben's default buffer size function implementation.
Related to  eeca7f7
2015-06-29 14:18:14 -04:00
GZharun
21b9e180bd Reverted Ben's m_DefaultBufferSize stuff as it looks redundant. Will be put back if we establish the opposite 2015-06-29 14:18:14 -04:00