Chun-Min Chang
7da41f97e5
Prevent any padding from being added in the beginning of the AudioUnitStream
2019-05-10 17:53:43 -07:00
Chun-Min Chang
8a56c4a784
fix typo
2019-05-10 17:53:43 -07:00
Chun-Min Chang
0bed987f86
Check the sub devices of an aggregate device before making clock drift compensation
2019-05-03 08:26:05 -07:00
Chun-Min Chang
ddee380301
Fix tests
2019-05-03 08:16:04 -07:00
Chun-Min Chang
7ff946e644
Implement set_notification_runloop
2019-05-03 08:16:04 -07:00
Chun-Min Chang
afac52b8a0
Revise parallel tests
2019-05-02 16:18:03 -07:00
Chun-Min Chang
a86386e2f2
add inline attribute to retake_leaked_vec
2019-05-02 12:37:50 -07:00
Chun-Min Chang
66cbd8a72f
Remove unnecessary comments
2019-05-02 12:37:50 -07:00
Chun-Min Chang
9d9b49475e
Replace libc::nanosleep by thread::sleep
2019-05-02 12:37:50 -07:00
Chun-Min Chang
ae1bcb8a63
Avoid setting buffer-frame-size to zero
2019-05-02 12:37:50 -07:00
Chun-Min Chang
7191318b98
Check size of an aggregate device in audiounit_destroy_aggregate_device
2019-05-02 12:37:50 -07:00
Chun-Min Chang
0bb1e0633a
Check the parameters in audiounit_set_aggregate_sub_device_list
2019-05-02 12:37:49 -07:00
Chun-Min Chang
21ccb5e264
Remove the unnecessary comments
2019-05-02 12:37:49 -07:00
Chun-Min Chang
6cdf9adce7
Check size of the sub devices in an aggregate device
2019-05-02 12:37:49 -07:00
Chun-Min Chang
653ce8d350
Check device id in audiounit_get_sub_devices
2019-05-02 12:37:49 -07:00
Chun-Min Chang
60e463b1fd
Move some parameters checkings out of the critical section
...
Some parameters checkings for initializing a cubeb stream are not
necessary to be done in a critical section. Move them out of the
critical section to avoid unnecessary mutex locking.
2019-05-02 12:37:49 -07:00
Chun-Min Chang
a759dfc898
Remove the unnecessary match
2019-05-01 15:46:10 -07:00
Chun-Min Chang
30d1e90b0f
Remove the unnecessary comments
2019-05-01 15:46:10 -07:00
Chun-Min Chang
cf2142055a
LGTM fix
2019-05-01 15:46:10 -07:00
Chun-Min Chang
8ba97a12a8
Add a struct CAChannelLabel to wrap AudioChannelLabel and convert it from or into ChannelLayout
2019-05-01 15:46:10 -07:00
Chun-Min Chang
7223f64728
Add a struct PropertySelector to wrap AudioObjectPropertySelector
2019-05-01 13:52:37 -07:00
Chun-Min Chang
9992ff7acc
Remove unnecessary comments
2019-05-01 13:24:40 -07:00
Chun-Min Chang
c1a493cdd5
Move common AudioObjectPropertyAddress to another module
2019-05-01 13:24:40 -07:00
Chun-Min Chang
3bc80ed879
Remove parenthesis
2019-05-01 13:24:40 -07:00
Chun-Min Chang
69b5b3d818
Check DeviceType before using them
2019-05-01 13:24:40 -07:00
Chun-Min Chang
c3f669d354
Remove notes about the struct imported from cubeb_backend
2019-05-01 13:24:40 -07:00
Chun-Min Chang
e711240fe8
LGTM renamed
2019-04-29 17:15:35 -07:00
Chun-Min Chang
6b12b33b89
Remove unnecessary dereferencing to get AudioUnitContext reference
2019-04-29 14:14:42 -07:00
Chun-Min Chang
cae3df753b
Status update
2019-04-29 14:10:36 -07:00
Chun-Min Chang
cd50144699
Run Rustfmt
2019-04-29 14:10:36 -07:00
Chun-Min Chang
9d1232d144
LGTM changes
2019-04-29 14:10:36 -07:00
Chun-Min Chang
f214f2f805
Remove unnecessary dereferencing to get AudioUnitStream refernce
2019-04-29 14:09:40 -07:00
Chun-Min Chang
b3e0ddfaaa
Update start_internal: BMO 1541101 and cubeb pull 499
2019-04-25 14:31:44 -07:00
Chun-Min Chang
2ed6d7b70e
Make setup_stream become a member function
2019-04-25 14:31:44 -07:00
Chun-Min Chang
f5340794c5
Make configure_output become a member function
2019-04-25 14:31:44 -07:00
Chun-Min Chang
807007a0e2
Make configure_input become a member function
2019-04-25 14:31:44 -07:00
Chun-Min Chang
f885395f2b
Make render_input become a member function
2019-04-25 14:31:44 -07:00
Chun-Min Chang
1d4bc8dc55
Rename AudioUnitStream::init to AudioUnitStream::init_mutex
...
With introducing reinit and reinit_async to AudioUnitStream, the meaning
of "init" changes. It means re-setup the stream, rather than
initializing its internal members. Using init_mutex is clearer for what
the function works for
2019-04-25 14:31:44 -07:00
Chun-Min Chang
9faccc30ef
Make reinit_stream_async a member function
2019-04-25 14:31:44 -07:00
Chun-Min Chang
388e0e966f
Make reinit_stream become a member function
2019-04-25 14:31:44 -07:00
Chun-Min Chang
602b082841
Make create_aggregate_device a member function
2019-04-25 14:31:12 -07:00
Chun-Min Chang
a4b59eb2a5
Make set_device_info become a member function
2019-04-25 14:26:58 -07:00
Chun-Min Chang
749ee92466
Make mix_output_buffer become a member function
2019-04-25 14:26:58 -07:00
Chun-Min Chang
b5ab6f1dd5
Make workaround_for_airpod become a member functions
2019-04-25 14:26:58 -07:00
Chun-Min Chang
fde2106645
Make destroy_internal become a member function
2019-04-25 14:26:58 -07:00
Chun-Min Chang
a5ccfd9eeb
Make set_buffer_size become a member function
2019-04-25 14:26:58 -07:00
Chun-Min Chang
b6c149edfa
Make clamp_latency become a member function
2019-04-25 14:26:58 -07:00
Chun-Min Chang
977fe3d5df
Make init_input_linear_buffer become a member function
2019-04-25 14:26:58 -07:00
Chun-Min Chang
49b8fcc318
Make layout_init become a member function
2019-04-25 14:26:58 -07:00
Chun-Min Chang
bdfa4ce399
Make {install, uninstall}_device_changed_callback become member functions
2019-04-25 14:26:58 -07:00