rtaudio.git
4 years agoAdded pulse audio fix that was just applied to master. noexceptions
Gary Scavone [Thu, 29 Aug 2019 15:15:38 +0000 (11:15 -0400)]
Added pulse audio fix that was just applied to 

4 years agoCoreAudio fix for deprecated behaviour in stopping and starting stream, which allows...
Gary Scavone [Wed, 28 Aug 2019 00:28:49 +0000 (20:28 -0400)]
CoreAudio fix for deprecated behaviour in stopping and starting stream, which allows multiple instances of RtAudio accessing the same device.

4 years agoNo exception updates for Jack API.
Gary Scavone [Tue, 27 Aug 2019 20:13:49 +0000 (16:13 -0400)]
No exception updates for Jack API.

4 years agoModified CoreAudio cleanup in case of error during initialization, fixed duplex strea...
Gary Scavone [Thu, 22 Aug 2019 22:24:11 +0000 (18:24 -0400)]
Modified CoreAudio cleanup in case of error during initialization, fixed duplex streamtime bug for single device in CoreAudio, updated playsaw.cpp with interrupt handler instead of cin.get() function.

4 years agoAdded errorCallback function argument to RtAudio constructor. Updated documentation...
Gary Scavone [Thu, 22 Aug 2019 16:30:50 +0000 (12:30 -0400)]
Added errorCallback function argument to RtAudio constructor. Updated documentation and removed commented-out RtAudioError class. Updated playsaw.cpp to test errorCallback constructor argument.

4 years agoRemoved RtAudioError class and created a new enum for error types. Only implemented...
Gary Scavone [Tue, 30 Jul 2019 21:23:28 +0000 (17:23 -0400)]
Removed RtAudioError class and created a new enum for error types. Only implemented for RtApiCore and RtApiDummy, not rtaudio_c.

4 years agoAdded new setErrorCallback() function and removed errorCallback argument in openStrea...
Gary Scavone [Tue, 30 Jul 2019 16:26:44 +0000 (12:26 -0400)]
Added new setErrorCallback() function and removed errorCallback argument in openStream(). Also added RtAudioError::Type return value to openStream(), startStream(), stopStream() and abortStream() functions, but only implemented in RtApiCore.

5 years agoMinor text formatting issues.
Gary Scavone [Wed, 10 Apr 2019 17:14:47 +0000 (13:14 -0400)]
Minor text formatting issues.

5 years agoMove input user buffer clearing to startStream().
Gary Scavone [Sun, 7 Apr 2019 19:52:06 +0000 (15:52 -0400)]
Move input user buffer clearing to startStream().

5 years agoAdded clearing of input user buffer in stopStream for OS-X, in case stream is restarted.
Gary Scavone [Sun, 7 Apr 2019 19:38:58 +0000 (15:38 -0400)]
Added clearing of input user buffer in stopStream for OS-X, in case stream is restarted.

5 years agoBug fix for previous bug fix for duplex stream time ticking.
Gary Scavone [Sun, 7 Apr 2019 19:27:50 +0000 (15:27 -0400)]
Bug fix for previous bug fix for duplex stream time ticking.

5 years agoBug fix for double stream time ticking in OS-X if duplex stream with two different...
Gary Scavone [Sun, 7 Apr 2019 19:02:40 +0000 (15:02 -0400)]
Bug fix for double stream time ticking in OS-X if duplex stream with two different devices.

5 years agoUpdates to playsaw.cpp and testall.cpp for new behaviour
Gary Scavone [Fri, 5 Apr 2019 19:47:28 +0000 (15:47 -0400)]
Updates to playsaw.cpp and testall.cpp for new behaviour

5 years agoSimplified error() function, removing exception throwing.
Gary Scavone [Fri, 5 Apr 2019 19:20:38 +0000 (15:20 -0400)]
Simplified error() function, removing exception throwing.

5 years agoMore updates for sample rate changes, plus added support to get current system rate...
Gary Scavone [Fri, 5 Apr 2019 19:05:33 +0000 (15:05 -0400)]
More updates for sample rate changes, plus added support to get current system rate (OS-X only).

5 years agoAlmost complete removal of exceptions for RtApiCore, plus an update for changing...
Gary Scavone [Fri, 5 Apr 2019 18:53:35 +0000 (14:53 -0400)]
Almost complete removal of exceptions for RtApiCore, plus an update for changing the sample rate.

5 years agoAnother temp commit
Gary Scavone [Fri, 5 Apr 2019 00:13:46 +0000 (20:13 -0400)]
Another temp commit

5 years agoSome initial changes
Gary Scavone [Fri, 5 Apr 2019 00:09:41 +0000 (20:09 -0400)]
Some initial changes

5 years agoA few minor documentation updates for release 5.1.0. 5.1.0
Gary Scavone [Thu, 18 Apr 2019 00:24:28 +0000 (20:24 -0400)]
A few minor documentation updates for release 5.1.0.

5 years agoDocumentation and version updates before release 5.1.0
Gary Scavone [Wed, 17 Apr 2019 22:49:08 +0000 (18:49 -0400)]
Documentation and version updates before release 5.1.0

5 years agoAdded github URL to headers.
Gary Scavone [Wed, 17 Apr 2019 18:48:58 +0000 (14:48 -0400)]
Added github URL to headers.

5 years ago[doc] document C interface.
Stephen Sinclair [Wed, 17 Apr 2019 13:13:48 +0000 (15:13 +0200)]
[doc] document C interface.

5 years ago[doc] fix header file paths for out-of-source builds
Stephen Sinclair [Wed, 17 Apr 2019 12:05:27 +0000 (14:05 +0200)]
[doc] fix header file paths for out-of-source builds

5 years ago[doc] callback return value in \return field
Stephen Sinclair [Wed, 17 Apr 2019 11:51:14 +0000 (13:51 +0200)]
[doc] callback return value in \return field

5 years ago[doc] update RtAudioFormat description to match code
Stephen Sinclair [Wed, 17 Apr 2019 11:34:10 +0000 (13:34 +0200)]
[doc] update RtAudioFormat description to match code

5 years ago[automake, cmake] add apinames as automated test
Stephen Sinclair [Wed, 17 Apr 2019 11:02:25 +0000 (13:02 +0200)]
[automake, cmake] add apinames as automated test

5 years ago[automake] add CMakeLists.txt to EXTRA_DIST
Stephen Sinclair [Wed, 17 Apr 2019 11:01:51 +0000 (13:01 +0200)]
[automake] add CMakeLists.txt to EXTRA_DIST

5 years ago[automake] add README.md and cmake to EXTRA_DIST
Stephen Sinclair [Wed, 17 Apr 2019 10:35:49 +0000 (12:35 +0200)]
[automake] add README.md and cmake to EXTRA_DIST

5 years ago[cmake] support previous RTAUDIO_BUILD_* variables
Stephen Sinclair [Tue, 16 Apr 2019 21:52:09 +0000 (23:52 +0200)]
[cmake] support previous RTAUDIO_BUILD_* variables

Compromise for changes in CMake build introduced by previous commit
that would interfere with use with add_subdirectory.

Re-adds:

- RTAUDIO_BUILD_TESTING
- RTAUDIO_BUILD_SHARED_LIBS
- RTAUDIO_BUILD_STATIC_LIBS

These now override BUILD_TESTING, BUILD_SHARED_LIBS, BUILD_STATIC_LIBS,
but only if they are defined and are not "".

5 years agoMerge branch 'pr193'
Stephen Sinclair [Tue, 16 Apr 2019 20:29:12 +0000 (22:29 +0200)]
Merge branch 'pr193'

5 years ago[cmake] expose some standard CMake options
Stephen Sinclair [Tue, 16 Apr 2019 20:24:52 +0000 (22:24 +0200)]
[cmake] expose some standard CMake options

- make build type a drop-down if it's not otherwise set.
- default to 'd' suffix for Windows debug builds only.

5 years agoBug fix for stream ticking in OS-X if using two different devices.
Gary Scavone [Tue, 16 Apr 2019 16:06:18 +0000 (12:06 -0400)]
Bug fix for stream ticking in OS-X if using two different devices.

5 years agoUpdate CMakeLists.txt 193/head
Francesco Bertolaccini [Tue, 26 Mar 2019 11:26:05 +0000 (12:26 +0100)]
Update CMakeLists.txt

5 years agoChanges to CMakeLists to make use with add_subdirectory easier.
Stephen Sinclair [Mon, 25 Feb 2019 15:22:03 +0000 (16:22 +0100)]
Changes to CMakeLists to make use with add_subdirectory easier.

Analog of pr #190 for RtMidi.

5 years agoWASAPI : Ring buffer in/out index fix
Marcus Tomlinson [Sun, 24 Feb 2019 16:15:29 +0000 (16:15 +0000)]
WASAPI : Ring buffer in/out index fix

5 years agoWASAPI : Call tickStreamTime() only once per callback
Marcus Tomlinson [Sun, 24 Feb 2019 15:56:50 +0000 (15:56 +0000)]
WASAPI : Call tickStreamTime() only once per callback

5 years agoCheck for '#if defined( WIN32 )' in test apps 190/head
Marcus Tomlinson [Sun, 24 Feb 2019 17:58:43 +0000 (17:58 +0000)]
Check for '#if defined( WIN32 )' in test apps

5 years agoFix CMake VS build
Marcus Tomlinson [Sun, 24 Feb 2019 15:18:51 +0000 (15:18 +0000)]
Fix CMake VS build

5 years agoMerge pull request #185 from jleben/fix-alsa-get-device-count-error
garyscavone [Wed, 13 Feb 2019 15:34:30 +0000 (10:34 -0500)]
Merge pull request #185 from jleben/fix-alsa-get-device-count-error

Alsa API: Fix use of invalid card handle

5 years agoAlsa API: Fix use of invalid card handle 185/head
Jakob Leben [Tue, 12 Feb 2019 19:36:40 +0000 (11:36 -0800)]
Alsa API: Fix use of invalid card handle

5 years agoMerge pull request #183 from MarcusTomlinson/master
Marcus Tomlinson [Mon, 28 Jan 2019 09:41:16 +0000 (09:41 +0000)]
Merge pull request #183 from MarcusTomlinson/master

WASAPI : Fixed #180 and reduced latency

5 years agoWASAPI : Fixed issue where latency was introduced on stream stop / start 183/head
Marcus Tomlinson [Sun, 27 Jan 2019 23:25:57 +0000 (23:25 +0000)]
WASAPI : Fixed issue where latency was introduced on stream stop / start

5 years agoWASAPI : Removed unnecessary latency in I/O ring buffers
Marcus Tomlinson [Sun, 27 Jan 2019 23:22:31 +0000 (23:22 +0000)]
WASAPI : Removed unnecessary latency in I/O ring buffers

5 years agoWASAPI: calloc stream buffers to ensure unused channels are left silent
Marcus Tomlinson [Sun, 27 Jan 2019 16:25:03 +0000 (16:25 +0000)]
WASAPI: calloc stream buffers to ensure unused channels are left silent

5 years agoEnsure a warning in asiolist.cpp does not become error with -Wall. 179/head
Stephen Sinclair [Thu, 24 Jan 2019 14:16:28 +0000 (15:16 +0100)]
Ensure a warning in asiolist.cpp does not become error with -Wall.

5 years agoFix warning about casting result of GetProcAddress.
Stephen Sinclair [Thu, 24 Jan 2019 14:12:16 +0000 (15:12 +0100)]
Fix warning about casting result of GetProcAddress.

5 years agoFix warning re S24 not trivially copyable by removing copy constructor.
Stephen Sinclair [Thu, 24 Jan 2019 14:05:52 +0000 (15:05 +0100)]
Fix warning re S24 not trivially copyable by removing copy constructor.

5 years agoautomake: fix inconsistency between --with-ds and --with-dsound
Stephen Sinclair [Thu, 24 Jan 2019 11:43:47 +0000 (12:43 +0100)]
automake: fix inconsistency between --with-ds and --with-dsound

Go with --with-dsound.

5 years agoautomake: add configuration for mingw64 and msys/msys2
Stephen Sinclair [Thu, 24 Jan 2019 11:43:25 +0000 (12:43 +0100)]
automake: add configuration for mingw64 and msys/msys2

5 years agoautomake: fix repeated defines and libs for WASAPI and DSound.
Stephen Sinclair [Thu, 24 Jan 2019 11:42:57 +0000 (12:42 +0100)]
automake: fix repeated defines and libs for WASAPI and DSound.

5 years agoUpdate lastTickTimestamp in startStream.
Stephen Sinclair [Sat, 29 Dec 2018 14:38:02 +0000 (15:38 +0100)]
Update lastTickTimestamp in startStream.

Fixes #144.

5 years agoWindows: include stdint.h for ThreadHandle. 178/head
Stephen Sinclair [Sat, 29 Dec 2018 14:03:27 +0000 (15:03 +0100)]
Windows: include stdint.h for ThreadHandle.

Fixes #142.

5 years ago#170 : Insert missing render memcpy when !doConvertBuffer in WASAPI 175/head
Marcus Tomlinson [Thu, 13 Dec 2018 23:16:42 +0000 (23:16 +0000)]
#170 : Insert missing render memcpy when !doConvertBuffer in WASAPI

5 years agoMerge remote-tracking branch 'upstream/pr/174'
Stephen Sinclair [Thu, 13 Dec 2018 22:44:30 +0000 (23:44 +0100)]
Merge remote-tracking branch 'upstream/pr/174'

5 years ago#170 : Enable WASAPI doConvertBuffer when userInterleaved is enabled 174/head
Marcus Tomlinson [Thu, 13 Dec 2018 22:40:29 +0000 (22:40 +0000)]
#170 : Enable WASAPI doConvertBuffer when userInterleaved is enabled

5 years agoMerge remote-tracking branch 'upstream/pr/173'
Stephen Sinclair [Thu, 13 Dec 2018 22:27:27 +0000 (23:27 +0100)]
Merge remote-tracking branch 'upstream/pr/173'

5 years ago#172 : Fix hang in closing logic of wasapiThread() 173/head
Marcus Tomlinson [Thu, 13 Dec 2018 21:25:23 +0000 (21:25 +0000)]
#172 : Fix hang in closing logic of wasapiThread()

5 years agorename in header also 169/head
sonoro1234 [Thu, 13 Dec 2018 16:32:52 +0000 (17:32 +0100)]
rename in header also

5 years agortaudio_num_comiled_api renamed rtaudio_get_num_compiled_apis
sonoro1234 [Thu, 13 Dec 2018 16:27:12 +0000 (17:27 +0100)]
rtaudio_num_comiled_api renamed rtaudio_get_num_compiled_apis

5 years agodrop const from return
sonoro1234 [Wed, 5 Dec 2018 09:58:13 +0000 (10:58 +0100)]
drop const from return

5 years agortaudio_c: add rtaudio_num_compiled_api()
sonoro1234 [Wed, 5 Dec 2018 09:08:10 +0000 (10:08 +0100)]
rtaudio_c: add rtaudio_num_compiled_api()

5 years agoCMakeLists.txt: only change include in WASAPI 167/head
sonoro1234 [Thu, 15 Nov 2018 09:20:36 +0000 (10:20 +0100)]
CMakeLists.txt: only change include in WASAPI

5 years agoCMakeLists: avoid include error: C:\luaGL\gitsources\luaRtAudio\rtaudio\RtAudio.cpp...
sonoro1234 [Thu, 15 Nov 2018 08:47:24 +0000 (09:47 +0100)]
CMakeLists: avoid include error: C:\luaGL\gitsources\luaRtAudio\rtaudio\RtAudio.cpp:3758:43: fatal error: functiondiscoverykeys_devpkey.h: No s
uch file or directory
 #include <functiondiscoverykeys_devpkey.h>

5 years agoMerge pull request #165 from MarcusTomlinson/master
garyscavone [Mon, 12 Nov 2018 13:19:58 +0000 (08:19 -0500)]
Merge pull request #165 from MarcusTomlinson/master

WASAPI : Allow loopback without output parameters

5 years agoFix potential memory leak 165/head
Marcus Tomlinson [Fri, 2 Nov 2018 19:44:31 +0000 (19:44 +0000)]
Fix potential memory leak

5 years agoAllow loopback without having to define output parameters
Marcus Tomlinson [Fri, 2 Nov 2018 16:01:49 +0000 (16:01 +0000)]
Allow loopback without having to define output parameters

5 years agoremoved getStreamLatency() from derived API classes
Taylor Holberton [Sun, 10 Jun 2018 21:24:37 +0000 (17:24 -0400)]
removed getStreamLatency() from derived API classes

5 years agoChange "Direct Sound" to "DirectSound"
Ryan Schmidt [Sun, 26 Aug 2018 02:29:46 +0000 (21:29 -0500)]
Change "Direct Sound" to "DirectSound"

5 years agoAdd loopback support to WASAPI
Marcus Tomlinson [Fri, 26 Oct 2018 19:10:11 +0000 (20:10 +0100)]
Add loopback support to WASAPI

5 years agoFix Go build due to enum casting (#164)
Serge Zaitsev [Tue, 30 Oct 2018 11:17:42 +0000 (12:17 +0100)]
Fix Go build due to enum casting (#164)

* fix go build due to enum casts by casting enum array explicitly

5 years agoMerge remote-tracking branch 'upstream/pr/141'
Stephen Sinclair [Tue, 16 Oct 2018 13:09:53 +0000 (15:09 +0200)]
Merge remote-tracking branch 'upstream/pr/141'

5 years agoMerge remote-tracking branch 'upstream/pr/154'
Stephen Sinclair [Tue, 16 Oct 2018 13:04:54 +0000 (15:04 +0200)]
Merge remote-tracking branch 'upstream/pr/154'

5 years agoMerge remote-tracking branch 'upstream/pr/136'
Stephen Sinclair [Tue, 16 Oct 2018 13:01:30 +0000 (15:01 +0200)]
Merge remote-tracking branch 'upstream/pr/136'

5 years agoMerge remote-tracking branch 'upstream/pr/139'
Stephen Sinclair [Tue, 16 Oct 2018 12:59:30 +0000 (14:59 +0200)]
Merge remote-tracking branch 'upstream/pr/139'

5 years agoMerge remote-tracking branch 'upstream/pr/159'
Stephen Sinclair [Tue, 16 Oct 2018 12:58:45 +0000 (14:58 +0200)]
Merge remote-tracking branch 'upstream/pr/159'

5 years agoMerge branch 'master' of https://github.com/thestk/rtaudio 119/head
Marcus Tomlinson [Fri, 12 Oct 2018 21:27:33 +0000 (22:27 +0100)]
Merge branch 'master' of https://github.com/thestk/rtaudio

5 years agoUse current directory. 159/head
Benjamin Brown [Tue, 2 Oct 2018 06:36:36 +0000 (02:36 -0400)]
Use current directory.

5 years agoFix linker flags
Marcus Tomlinson [Fri, 28 Sep 2018 22:14:14 +0000 (23:14 +0100)]
Fix linker flags

5 years agoMore fixes to MinGW build
Marcus Tomlinson [Fri, 28 Sep 2018 21:56:08 +0000 (22:56 +0100)]
More fixes to MinGW build

5 years agoMore fixes
Marcus Tomlinson [Fri, 28 Sep 2018 21:48:54 +0000 (22:48 +0100)]
More fixes

5 years agoFix mingw32 WASAPI build
Marcus Tomlinson [Fri, 28 Sep 2018 21:00:15 +0000 (22:00 +0100)]
Fix mingw32 WASAPI build

5 years agoMerge pull request #156 from spmp/feature/spmp-changes
garyscavone [Mon, 27 Aug 2018 21:30:42 +0000 (17:30 -0400)]
Merge pull request #156 from spmp/feature/spmp-changes

Add device id to audioprobe output

5 years agoChange "ex." to "e.g." 154/head
Ryan Schmidt [Sun, 26 Aug 2018 02:14:48 +0000 (21:14 -0500)]
Change "ex." to "e.g."

5 years agoAdd missing apostrophe and parentheses
Ryan Schmidt [Sun, 26 Aug 2018 02:13:54 +0000 (21:13 -0500)]
Add missing apostrophe and parentheses

And capitalize and add a period at the end of the next sentence.

5 years agoChange "eg." to "e.g."
Ryan Schmidt [Sun, 26 Aug 2018 02:12:45 +0000 (21:12 -0500)]
Change "eg." to "e.g."

5 years agoChange "eg:" to "e.g."
Ryan Schmidt [Sun, 26 Aug 2018 02:11:17 +0000 (21:11 -0500)]
Change "eg:" to "e.g."

5 years agoDon't error on unused-function.
Stephen Sinclair [Fri, 24 Aug 2018 11:13:23 +0000 (08:13 -0300)]
Don't error on unused-function.

Because of convertCharPointerToStdString for example.

5 years agoMove stream_.state update to the end of wasapiThread()
Marcus Tomlinson [Fri, 20 Apr 2018 16:37:02 +0000 (18:37 +0200)]
Move stream_.state update to the end of wasapiThread()

5 years agoFix conversion between different format types in resampler
Marcus Tomlinson [Sun, 15 Apr 2018 07:40:48 +0000 (09:40 +0200)]
Fix conversion between different format types in resampler

5 years agoOnly autolink on VS
Marcus Tomlinson [Sat, 23 Dec 2017 13:57:51 +0000 (15:57 +0200)]
Only autolink on VS

5 years agoCase sensitive header perhaps?
Marcus Tomlinson [Sat, 23 Dec 2017 12:46:16 +0000 (14:46 +0200)]
Case sensitive header perhaps?

5 years agoFix indentation
Marcus Tomlinson [Sat, 23 Dec 2017 09:37:08 +0000 (11:37 +0200)]
Fix indentation

5 years agoFix setting stream_.doConvertBuffer[mode]
Marcus Tomlinson [Sat, 23 Dec 2017 09:28:25 +0000 (11:28 +0200)]
Fix setting stream_.doConvertBuffer[mode]

5 years agoReplace convertBufferWasapi() calls with renderResampler->Convert()
Marcus Tomlinson [Sat, 23 Dec 2017 09:22:43 +0000 (11:22 +0200)]
Replace convertBufferWasapi() calls with renderResampler->Convert()

5 years agoInit resamplers
Marcus Tomlinson [Sat, 23 Dec 2017 09:10:28 +0000 (11:10 +0200)]
Init resamplers

5 years agoReplace convertBufferWasapi with new WasapiResampler
Marcus Tomlinson [Sat, 23 Dec 2017 08:59:28 +0000 (10:59 +0200)]
Replace convertBufferWasapi with new WasapiResampler

5 years agoRevert strict sample rate selection in WASAPI API
Marcus Tomlinson [Sat, 23 Dec 2017 08:45:10 +0000 (10:45 +0200)]
Revert strict sample rate selection in WASAPI API

5 years agoautomake: Fix rtaudio.pc prefix variable
Stephen Sinclair [Wed, 15 Aug 2018 18:25:06 +0000 (15:25 -0300)]
automake: Fix rtaudio.pc prefix variable

5 years agoallow to obtain api names regardless of being compiled or not 136/head
JP Cimalando [Fri, 10 Aug 2018 13:24:46 +0000 (15:24 +0200)]
allow to obtain api names regardless of being compiled or not

5 years agoMerge branch 'separate-os-api-testing'
Stephen Sinclair [Sat, 11 Aug 2018 01:45:56 +0000 (21:45 -0400)]
Merge branch 'separate-os-api-testing'