Nguyễn Gia Phong
c216f307ef
Fix incorrect multivalue return type
...
This fixes GH-107 and supersedes and closes GH-108.
2020-06-02 10:42:53 +07:00
Ngô Xuân Minh
8285eb06c5
PEP 257 compliance
...
Rework docstrings following PEP 257
2020-05-12 22:38:18 +07:00
Nguyễn Gia Phong
83315de9c8
Retouch docstrings for multi-value properties
...
This fixes GH-64. Moreover switch back to flake8 since pytest-flake8
is not as configurable.
2020-05-09 21:52:20 +07:00
Ngô Xuân Minh
c59d0ec169
Fix ReverbEffect
...
Resolve GH-88
2020-05-04 22:32:03 +07:00
Ngô Xuân Minh
b39aaa9903
Fix ChorusEffect ( #91 )
...
To make properties properly raise ValueError
2020-05-03 20:53:57 +07:00
Nguyễn Gia Phong
7ff1d8f1d7
Complete tests for context and fix discovered bugs
...
Namely the impliit use without checking of current_context
which can cause segfault if it is None.
2020-04-30 17:01:00 +07:00
Ngô Xuân Minh
e62989fa2b
Intuitively implement properties of ChorusEffect ( #90 )
...
Intuitively implement properties of ChorusEffect and add docstrings.
2020-04-28 23:15:22 +07:00
Ngô Ngọc Đức Huy
b2329a1428
Fixing some small mistakes made in 9de664a
( #86 )
2020-04-26 09:49:30 +07:00
Nguyễn Gia Phong
9de664a750
Make effects properties more intuitive (fix GH-85)
...
Additionally run flake8 within pytest by default for better CI experience.
2020-04-25 21:33:17 +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
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
Nguyễn Gia Phong
a9d743ae87
Nitpick examples and documentation
2020-04-13 21:33:46 +07:00
Nguyễn Gia Phong
6e95bf491c
Uniform enum handling (resolve GH-47)
2020-04-09 15:05:06 +07:00
Nguyễn Gia Phong
09f14bf7f0
Add cache free function and nit strings
2020-04-07 11:52:06 +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
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
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
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
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
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
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
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
Nguyễn Gia Phong
d7ad609ad9
Implement BaseDecoder interface
2020-02-25 14:47:00 +07:00
Nguyễn Gia Phong
e12fdc5ac2
Beautify property's in-source docs
2020-02-22 16:26:24 +07:00
Nguyễn Gia Phong
aac24f99a1
Finish methods involving sample type and channel config
...
Also move cdef helpers to the end of the module
2020-02-15 14:27:06 +07:00
Nguyễn Gia Phong
19ac906048
Implement MessageHandler
...
Since this introduce a new source files, all sources are moved
to a new directory src.
2020-02-15 14:27:06 +07:00