Commit graph portaudio/examples
Author SHA1 Message Date
Be
242a0241f6 CMake rewrite using modern CMake best practices
Rewrite CMakeLists.txt using CMake targets and modules instead
of building up source files in variables.

Change pkgconfig file generated by CMake to use
Requires.private and Libs.private fields as recommended by the
pkgconfig maintainer:
https://people.freedesktop.org/~dbn/pkg-config-guide.html#faq

Refactor to use standard CMake variables, notably
BUILD_SHARED_LIBS instead of always building both dynamic and
static libraries. Also use CMAKE_FRAMEWORK for building as a
macOS framework.

Remove superfluous PA_ prefixes from option names.

When building with ASIO, automatically download ASIO SDK from
Steinberg if it is not found. The path to the SDK can be
manually specified with ASIO_SDK_ZIP_PATH to facilitate caching
on CI.

Add support for building JACK host API with MSVC and MinGW.

Add support for OSS (off by default).
2021-08-11 17:23:40 -07:00
Be
3e782f2494 CMake: clean up including headers for examples 2021-04-28 17:13:32 -07:00
petris
92e7210603 Whitespace cleanup in examples 2021-01-22 07:34:09 -08:00
Ross Bencina
238d8db31a
Clean up whitespace in examples/ in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF. (#416) 2021-01-21 22:23:23 +11:00
luz paz
e1c3e59ee8 Fix user-facing and non-user-facing typos
Found via `codespell v2.1.dev0`
2020-12-11 20:24:05 -05:00
Phil Burk
f275c76ca9 paex_read_write_wire: fix crossed initialization
MinGW complained.

Fixes ticket #256
2016-09-26 15:42:38 -07:00
Ross Bencina
3765e908c2 Merge branch 'cmake_updates' into 'master'
Update PortAudio CMake Support

+1: Ross Bencina

Merged-on: https://assembla.com/code/portaudio/git/merge_requests/3751483
2016-09-25 05:48:45 +00:00
Nick Appleton
0c10cb6c0c address all problems picked up by cmakelint except for line-length related comments. don't use min() in paex_record_file as it is a macro specific to windows. 2016-09-15 22:52:44 +10:00
Nicholas Appleton
1389dee5f6 get examples compiling with CMake on Windows again 2016-09-15 22:18:12 +10:00
Phil Burk
fc5de750f8 Remove version printing from paex_sine.c 2016-09-09 09:06:27 -07:00
Phil Burk
a553478d71 PA_GIT_REVISION: new scripts to replace SVN revision
update_gitrevision.sh should be run before building on Mac or Linux.
2016-09-05 17:03:27 -07:00
Phil Burk
315309f60e Mac: test adjustable number of channels. 2016-05-21 17:25:18 -07:00
Phil Burk
110043f842 Fix assert when reading or writing with non-power of 2 channels. 2016-05-18 22:29:45 -07:00
Phil Burk
ed463ba658 Normalize all the line endings 2016-05-18 22:13:20 -07:00
philburk
199e88fa66 Add Pa_GetVersionInfo()
Add scripts to update pa_svnrevision.h
2015-04-10 04:00:09 +00:00
philburk
cd6b1868de Add version numbering with major.minor.subminor format.
Bump version to 19.5.0
2015-03-03 17:28:15 +00:00
rbencina
808eaf5786 removed declaration of unused variable 2015-01-21 06:32:29 +00:00
rbencina
98d12b21fa fixed compiler warning: conversion from 'double' to 'float', possible loss of data 2015-01-21 06:30:53 +00:00
robiwan
4aa340a57e CMake: Added PA_WDMKS_NO_KSGUID_LIB to WDMKS and solution folders
WDMKS: Support for default device (see caveat for input devices though in ScanDeviceInfos)
       Added possibility to set channel mask
2014-04-09 14:27:21 +00:00
rbencina
4149c894a0 added code to print error result from Pa_Initialize() in pa_devs.c example 2013-05-05 14:00:02 +00:00
philburk
f1435229e4 Fix fprintf format for long int. 2012-09-01 21:16:25 +00:00
philburk
b9d82e4d34 Report HostAPI errors in paex_write_sine.c to aid debugging. 2012-09-01 19:37:10 +00:00
robiwan
5a9c79405d Cleanup of code 2012-07-10 08:25:18 +00:00
robiwan
a889a60546 Added typedef to remove error with _beginthreadex 2012-07-10 08:16:48 +00:00
robiwan
82556314f6 Cleanup of code 2012-07-10 04:44:58 +00:00
robiwan
4669893212 Small fix to paex_record_file.c 2012-07-09 11:28:57 +00:00
robiwan
94b08c88bf Added a simple example that records to/plays from a file (using callback + ring buffer). Windows only at the moment. 2012-07-09 09:53:23 +00:00
robiwan
3e9e7dd334 Forgot error check after Pa_OpenStream. Naughty. 2012-06-19 20:08:03 +00:00
robiwan
9f48ec4609 Added C++ variant of paex_sine 2012-06-19 20:03:33 +00:00
robiwan
f5bb9cfec0 Added support for displaying UTF-8 encoded device names 2012-02-22 12:44:10 +00:00
robiwan
6803965617 General:
- Change of CMake options to utilize built in header configuration support (PA_USE_*)
- Added CMakeLists.txt for examples
- Added paex_ocean_shore.c as an example how to use PA ring buffer for lock-free communication with the audio callback
WDM-KS:
- Added better default sample rate support
- Made sure that all pins now have a name, even if only "Input" or "Output"
- IsUSBDevice fixed acc. to Alex Lessard's suggestion
- IsNameUSBAudioDevice fixed similarly
2012-02-22 12:20:26 +00:00
philburk
7a78469780 Fix compiler warnings on Mac. 2011-09-08 06:09:29 +00:00
rossb
4fd99433f3 added Doxyfile.developer for generating internal docs. added doxygen brief descriptions to mme example files 2011-09-08 04:17:58 +00:00
philburk
57dd0b608f moved example programs from test folder to examples folder 2011-09-08 03:21:55 +00:00
philburk
4b7c5a1241 Experiment with moving example code into its own folder.
Note that this revision needs to have autoreconf run.
I tried to do that on Mac but it failed. So I will try on Linux.
2011-09-07 23:54:04 +00:00