Commit graph portaudio/src/hostapi/wasapi/pa_win_wasapi.c
Author SHA1 Message Date
dmitrykos
083b34a10f wasapi:
- fixed occasional crash-bug which may be caused by a lightweight application that starts stream, checks if stream is running and if not terminates the stream: WASAPI implementation wasn't taking such behavior into account and stream termination (with structure deallocation) could happen during a thread start causing a crash on bad pointer usage
 - fixed Pa_IsStreamActive and similar not correctly reporting stopped stream if that was stopped from within a callback function (playback/capture) by returning paComplete
2010-05-12 18:08:45 +00:00
dmitrykos
50986ea63b wasapi:
- new method PaWasapi_GetFramesPerHostBuffer which allows to get number of input/output frames per host (WASAPI) buffer, this method helps to find out maximal values for PaWasapiHostProcessorCallback
 - documentation fixes
2010-04-16 08:31:19 +00:00
dmitrykos
43146e690e wasapi:
- added calling thread id checks to match Pa_Initialize/Pa_Uninitialize in the same calling thread, if not the case then console warning will be thrown and CoUninitialize will not be called (preferring leak over uninitializing user-side COM)
2010-04-15 17:44:13 +00:00
dmitrykos
8186129234 wasapi:
- fixed Windows 7/Server 2008 R2 and Future detection, this fixes minimal/maximal device periods correction
 - added CO_E_NOTINITIALIZED to text errors with action to take for user in case it happens
2010-04-15 17:15:14 +00:00
dmitrykos
14d09847a3 wasapi:
- improved device buffer alignment calculation allowing to set as precise device latency as possible
2010-04-12 21:15:50 +00:00
dmitrykos
7d037383bc wasapi:
- fixed crash in Pa_OpenStream call if WASAPI device did not open or something failed (happened on stream handle cleanup due to double attempt to free same pointer)
 - improved the way WASAPI device is opening, such error as AUDCLNT_E_BUFFER_SIZE_ERROR which comes due to incorrectly small device period is fixed for Vista (and all other, including future) systems as well, latency will be corrected to device minimum (usually 3ms).
 - if suggestedLatency is set to 0 in Pa_OpenStream call then WASAPI device will select device default latency (in Exclusive mode it is 10ms, in Shared 20ms)
 - improved on-screen logging of WASAPI devices available during WASAPI initialization phase
2010-04-12 20:55:34 +00:00
dmitrykos
94c7f9a355 wasapi:
- fixed AUDCLNT_E_INVALID_DEVICE_PERIOD under Windows 7 if latency is set to lower than minimal device period
 - fixed AUDCLNT_E_INVALID_DEVICE_PERIOD under Windows 7 if latency for Exclusive mode is higher than 500ms, for Shared mode higher than 2000ms
2010-04-11 16:04:21 +00:00
dmitrykos
d714962621 wasapi:
- fixed int24 Mono to Stereo mixer (affects Mono streams starting in Exclusive mode)
pa_converters: 
 - avoid using 64-bit integer math for Int24_To_Float32 and Int24_To_Int32 under x64 Posix platforms (long is 64-bit there), now using explicit PaInt32 type
2010-03-25 23:27:27 +00:00
dmitrykos
14a79e0e89 wasapi:
- fixed bug when Exclusive mode was wrongly opening Stereo stream if Mono stream was requested (note: WASAPI device usually does not support Mono in Exclusive mode), resulted in distorted sound
 - implemented workaround for WASAPI limitation - in Exclusive mode Mono stream is not supported: now PA creates internal audio device in Stereo mode, and after callback call Mono data is mixed into Stereo output, this workaround is not supported for Blocking mode. all this is done transparent for user, automatically.
2010-03-24 19:08:38 +00:00
dmitrykos
4ba123be9a wasapi: small corrections to improve CoInitialize/CoUninitialize sequence (taken from DS implementation) 2010-03-17 10:37:29 +00:00
dmitrykos
bf5addedfe wasapi: removed excessive argument checks in stream management functions 2010-03-14 17:25:48 +00:00
dmitrykos
f65b1391e5 wasapi: improved parameter checks for blocking API 2010-03-13 19:13:06 +00:00
dmitrykos
1657fc17d6 wasapi: fixed extension functions: PaWasapi_GetDeviceDefaultFormat / PaWasapi_GetDeviceRole - device index was misinterpreted and as a result returning value was mismatched 2010-03-13 18:53:40 +00:00
dmitrykos
f7a1faa129 wasapi: finished changes of include names for case-sensitive build env. 2010-03-09 15:33:20 +00:00
dmitrykos
50c880c015 wasapi:
- fixed configure.in to compile WASAPI module under MSYS
- fixed include name cases for case-sensitive build environments
- defined LPCGUID for some MinGW compilers which are missing it
- fixed strict-aliasing rules break on line of getting device EndpointFormFactor in case '-Wstrict-aliasing' is specified or corresponding GCC optimization flag is used
2010-03-09 12:29:36 +00:00
dmitrykos
b5e74653c1 wasapi:
- improved debug log output: function name which returned error will be displayed as well
- fixed non-critical compiler warnings
2010-03-08 10:33:58 +00:00
dmitrykos
779ef401ac wasapi: fixed initialization stage of PaWasapi_Initialize() which was returning error if WASAPI wasn't found (for example under Windows XP), this was causing PA's whole initialization to fail completely 2010-03-04 11:02:06 +00:00
dmitrykos
dcf2adaab7 +++ wasapi:
- converted PA WASAPI module to pure C
 - implemented compilation support for GCC [MinGW(32-bit)/MinGW64(64-bit)] compiler, special notes regarding MinGW compilation are included in 'readme.txt' file
2010-03-03 22:57:16 +00:00
Renamed from src/hostapi/wasapi/pa_win_wasapi.cpp (Browse further)