Commit Graph

130 Commits

Author SHA1 Message Date
Nguyễn Gia Phong 2218d192cb Test message handling 2020-04-24 17:46:54 +07:00
Nguyễn Gia Phong d575e5e15a Complete unit tests for Source and clean up 2020-04-24 09:15:07 +07:00
Nguyễn Gia Phong e95dad16bf
Allow examples to fail on macOS CI 2020-04-23 13:29:17 +07:00
Nguyễn Gia Phong 944dd067eb Make functional tests run faster
This resolves GH-81.
2020-04-22 22:34:53 +07:00
Ngô Ngọc Đức Huy 6148318585
Add functional tests (#79)
Add functional tests
2020-04-22 01:25:09 +07:00
Nguyễn Gia Phong e674ade7e4 Update CI/CD
This optimizes the execution time of macOS builds and adds initial
(no-op) support for Windows.  Documentation now admits the issues with
macOS wheels.

Because of GH-63, CI/CD for Python 3.8 on macOS is temporarily dropped.

Build reference for upcoming v0.1.3
2020-04-22 00:29:53 +07:00
Ngô Ngọc Đức Huy c9134b31e1
Add resamplers' info for palace-info (#75) 2020-04-18 08:06:36 +07:00
Nguyễn Gia Phong 8a6ce4bd13 Make send paths easier to use (fix GH-66)
Also nit exceptions and one-liners.
2020-04-17 20:40:39 +07:00
Nguyễn Gia Phong 30c11b351d Abstract away AuxiliaryEffectSlot
Address the first part of GH-66.  Also clean up comparison code.
2020-04-17 11:07:39 +07:00
Ngô Xuân Minh 8972112d16
Implement test listener (#76)
Implement test for listener class
2020-04-17 08:53:10 +07:00
Ngô Xuân Minh a25c93bbb1
Nitpick test_source, implement test_context. (#70)
Implement test_context

Tests that have implemented:
* async wake interval
* default resampler index
* doppler factor
* speed of sound
* distance model
2020-04-13 21:53:30 +07:00
Nguyễn Gia Phong a9d743ae87 Nitpick examples and documentation 2020-04-13 21:33:46 +07:00
Ngô Ngọc Đức Huy c992a8a6b0
Add example for tone generating (#69)
Waveforms include:
- sine
- square
- triangle
- sawtooth
- impulse
- white noise
2020-04-13 20:28:32 +07:00
Nguyễn Gia Phong 6e95bf491c Uniform enum handling (resolve GH-47) 2020-04-09 15:05:06 +07:00
Huy Ngo b5ab03eb7e Change from for loop to while loop 2020-04-07 11:56:54 +07:00
Nguyễn Gia Phong 09f14bf7f0 Add cache free function and nit strings 2020-04-07 11:52:06 +07:00
Ngô Ngọc Đức Huy ae913f88de
Writing example for latency (#67) 2020-04-06 17:34:58 +07:00
Nguyễn Gia Phong bdfe30306d Revisit a few design desisions 2020-04-05 12:36:41 +07:00
Nguyễn Gia Phong 80a9d88e90 Revise MessageHandler
As a side effect, Context.precache_buffers_async no longer causes segfault.
2020-04-04 22:58:01 +07:00
Nguyễn Gia Phong 38a3a21f43 Clean up for release 0.1 2020-04-01 15:17:23 +07:00
Ngô Ngọc Đức Huy aeda09d04e
Finishing the Source class (#65)
* Define make_param_filters() for converting params to struct

* Write `direct_filter`, `send_filter`, and `auxiliary_send_filter`.

* Update copyright information
2020-04-01 14:41:48 +07:00
Nguyễn Gia Phong e747159161 Move utilities to native C++ 2020-03-31 11:35:09 +07:00
Nguyễn Gia Phong 47231e9992 Fix forward declaration regression with binding on 2020-03-30 20:53:28 +07:00
Nguyễn Gia Phong d29d8debe8 Compile Cython with binding and allow cleaning C++ output 2020-03-30 18:07:31 +07:00
Nguyễn Gia Phong 8fa8f83346 Add reverb example 2020-03-30 17:32:13 +07:00
Nguyễn Gia Phong b08c711dbc Declare predefined reverb presets (close GH-62)
Declare predefined reverb presets
2020-03-30 17:31:02 +07:00
Ngô Ngọc Đức Huy ac3d826b72 Finishing the functions in Context
* Implement DistanceModel with Enum
* Implement precache_buffers_async
2020-03-28 21:24:05 +07:00
Nguyễn Gia Phong 49072f101e Allow falling back on current context 2020-03-26 22:27:14 +07:00
Nguyễn Gia Phong 2a3bda152f Add context manager for thread-local context preference 2020-03-26 15:26:12 +07:00
Ngô Xuân Minh 47c565f25e
Merging `new-eff` to `master` and finished relevant methods (#58)
Implement Effect and relevant methods
2020-03-23 20:38:21 +07:00
Nguyễn Gia Phong 45a284b17a Revise read-only properties, warning and debug strings 2020-03-22 16:06:19 +07:00
Nguyễn Gia Phong 40f63f738a Revisit some design decisions
Namely buffer creation and device names (fix GH-7)
2020-03-21 22:45:02 +07:00
Ngô Ngọc Đức Huy caf43f7b1d
Merge pull request #53 from McSinyx/ctx-fin
Adding context functionalities
2020-03-20 19:31:16 +07:00
Huy Ngo 12ebb6a7ea Implement ArrayView 2020-03-20 16:41:51 +07:00
Huy Ngo ad756e692a Declaring DistanceModel enum class 2020-03-20 16:41:51 +07:00
Huy Ngo 266cca6c6a Enable threading in use_context and current_context 2020-03-20 16:41:40 +07:00
Nguyễn Gia Phong d05d46cbf4 Nitpick
* Destroy buffer in stdec example after use
* Prefer pass-by-reference in C++
* Prefer Python-style type annotation
* Avoid iterator of C++ object wrappers
* Make Source comparable
* Fix GH-22
2020-03-19 11:59:28 +07:00
Nguyễn Gia Phong 3967e0cf1c Add custom decoder factory example 2020-03-16 20:26:44 +07:00
Nguyễn Gia Phong 3cc53d56df Allow intergration of user-defined decoders
The type system is also revised.
2020-03-16 20:26:44 +07:00
Nguyễn Gia Phong 5df009875b Implement FileIOFactory bridge
While the factory indeed works, Python file I/O called from C++
causes similar GIL deadlock as seen before with BaseDecoder.
2020-03-16 20:26:44 +07:00
Nguyễn Gia Phong f9dce3e6fd Prepare C++ bases for FileIOFactory
C++ code is reformatted according to Octave style guide.
Additionally, C++14 is now required to be future-proof with alure.
2020-03-16 20:26:44 +07:00
Nguyễn Gia Phong fc1bbfafeb Expose enumerants necessary for context creation (resolve #16)
Additionally in-source docs are revised.
2020-03-09 17:54:49 +07:00
Nguyễn Gia Phong 16bdb47c5a Improve tests
Namely avoiding sharing testing object and completing test for #41.
2020-03-05 22:19:23 +07:00
Nguyễn Gia Phong 308671bc40 Fix reference count and reference of message handler
This should close #41.
2020-03-05 15:17:22 +07:00
Nguyễn Gia Phong 7f2d1cdf7e Finish Buffer and document Context missing methods 2020-03-01 22:25:51 +07:00
Nguyễn Gia Phong 428a436f36 [Travis] Build for macOS
Also enable Cython trace explicitly for tests
2020-03-01 16:20:44 +07:00
Ngô Xuân Minh 51a72e94f9 Get rid of __init__(None) (#43) 2020-03-01 16:20:40 +07:00
Huy Ngo cb2e2eac40 Implement 'current_context' to remember previous classes 2020-02-26 17:40:03 +07:00
Huy Ngo 0d095c5974 Write tests for the Context class 2020-02-26 17:02:24 +07:00
Nguyễn Gia Phong 3b3a1d342b Make Decoder compatible with BaseDecoder
This is done by dropping Context reference and updating docstrings.
2020-02-25 14:47:00 +07:00