Граф коммитов

574 Коммитов

Автор SHA1 Сообщение Дата
Chun-Min Chang 453195f2cb Make {install, uninstall}_system_changed_callback become member functions 2019-04-25 14:26:58 -07:00
Chun-Min Chang 0efe0999e2 Make close_stream become a member function 2019-04-25 14:26:58 -07:00
Chun-Min Chang 128281cc99 Make init_mixer become a member function 2019-04-25 14:26:58 -07:00
Chun-Min Chang 6dfb3dd2e3 Make {start, stop}_internal become member functions 2019-04-25 14:26:58 -07:00
Chun-Min Chang b2a5a78d91 Make minimum_resampling_input_frames become a member function 2019-04-25 14:26:58 -07:00
Chun-Min Chang 5907bc8f90 Make get_volume become a member function 2019-04-25 14:22:32 -07:00
Chun-Min Chang e9623933bc Make has_{input, output} become member functions 2019-04-25 14:22:32 -07:00
Chun-Min Chang 15e41a7547 Make {add, remove}_devices_changed_listener become member functions 2019-04-25 14:22:32 -07:00
Chun-Min Chang e9144b2ecd Make set_global_latency become a member function 2019-04-25 14:22:32 -07:00
Chun-Min Chang 80f52e51a0 Make active_streams related functions become member functions 2019-04-25 14:22:32 -07:00
Chun-Min Chang 3f9a8d5a34 Revise the way the property listeners are added/removed
Make the functions to add/remove property listeners as member functions of AudioUnitStrea to avoid circular references
2019-04-25 14:22:32 -07:00
Chun-Min Chang a2838d8070 Add a note for a potential failure in create_aggregate_device 2019-04-25 14:20:32 -07:00
Chun-Min Chang 7719e56cc6 Fix the iteration for activate_clock_drift_compensation in case there is only one sub device 2019-04-25 14:17:34 -07:00
Chun-Min Chang 00020e9db7 Use a safer type for DISPATCH_QUEUE_SERIAL 2019-04-25 10:41:54 -07:00
Chun-Min Chang b42ea92a36 Fix use-after-free problem 2019-04-25 10:41:54 -07:00
Chun-Min Chang c93c72d122 Dirty fix the test for creating and destroying a blank aggregate device 2019-04-24 11:24:41 -07:00
Chun-Min Chang 07a26204d8 Fix wrong type for device changed tests 2019-04-24 11:24:41 -07:00
Chun-Min Chang 99e42b2425 Fix test_plug_and_unplug_device 2019-04-23 15:49:22 -07:00
Chun-Min Chang 5eb8602217 Remove duplicated test 2019-04-23 14:15:07 -07:00
Chun-Min Chang f7ddf506dc Fix style 2019-04-23 10:36:38 -07:00
Chun-Min Chang 7fce2b4a1c Separate the tests using TestDeviceSwitcher and the tests running with duplex streams 2019-04-22 16:47:56 -07:00
Chun-Min Chang b3c7b0ac2d Revise and create more tests for registering device changed callback 2019-04-22 14:11:47 -07:00
Chun-Min Chang f475bdb683 Replace test_change_default_device by TestDeviceSwitcher 2019-04-22 14:11:47 -07:00
Chun-Min Chang 05d33ae382 LGTM changes for test_switch_output_device 2019-04-22 14:11:47 -07:00
Chun-Min Chang cdad3beeda LGTM changes for test_dial_tone 2019-04-22 14:11:47 -07:00
Chun-Min Chang fd28a48d57 Revise tests for device changed callback 2019-04-19 20:37:25 -07:00
Chun-Min Chang 0a0b8f7ed9 Add tests for register_device_changed_callback
Check if the callback works when
- Changing default input or output devices
- Unplug the using input device
2019-04-19 20:37:25 -07:00
Chun-Min Chang ebf32d3cf2 Use Watcher for test_switch_device_in_scope 2019-04-19 20:37:25 -07:00
Chun-Min Chang 920a66f9a3 LGTM fix for test_switch_device_in_scope 2019-04-19 20:37:25 -07:00
Chun-Min Chang afc55c0350 Add interface tests for register_device_changed_callback 2019-04-19 20:37:25 -07:00
Chun-Min Chang 1d49f890fc Fix wrong command for aggregate device tests 2019-04-19 18:32:03 -07:00
Chun-Min Chang 337580b380 Update register_device_changed_callback 2019-04-19 09:14:00 -07:00
Chun-Min Chang 35408305dd Refactor get_acceptable_latency_range 2019-04-18 14:54:48 -07:00
Chun-Min Chang 4f808a2931 Refactor get_default_datasource and it's friend 2019-04-18 14:32:11 -07:00
Chun-Min Chang 95ba4da316 Remove useless comment 2019-04-18 14:32:11 -07:00
Chun-Min Chang 829e397882 Implement to_string() by implementing Display trait for io_side 2019-04-18 13:32:19 -07:00
Chun-Min Chang 5fdd13167f Test plugging and unplugging a device automatically. 2019-04-17 12:45:31 -07:00
Chun-Min Chang 0d8dc077e0 Revise TestDevicePlugger 2019-04-16 10:59:03 -07:00
Chun-Min Chang 803004d1ec Create a simulator to fake plugging and unplugging device 2019-04-15 16:59:27 -07:00
Chun-Min Chang 7e4edbe4ca Rename AGGREGATE_DEVICE_UID to AGGREGATE_DEVICE_UID_KEY 2019-04-15 15:37:10 -07:00
Chun-Min Chang d1ec9e2255 Apply a better model for thr property changed callback 2019-04-15 13:39:19 -07:00
Chun-Min Chang 37caee2b83 Update status 2019-04-12 21:49:12 -07:00
Chun-Min Chang c1e7ca2810 Test default-device-switch automatically 2019-04-12 21:45:50 -07:00
Chun-Min Chang 275174b03e Implement a test util to change the default device 2019-04-12 21:03:41 -07:00
Chun-Min Chang c2dd013874 Add prompt message for manual tests 2019-04-11 12:47:20 -07:00
Chun-Min Chang c929aa06c4 A safer way to pass AudioUnitContext across threads 2019-04-11 11:39:29 -07:00
Chun-Min Chang 5acd23b412 A safer way to pass AudioUnitStream across threads 2019-04-11 11:23:49 -07:00
Chun-Min Chang f37e8aef6d Use Arc::clone before passing data across threads 2019-04-11 11:11:15 -07:00
Chun-Min Chang 81706db079 Revise the manual test 2019-04-11 10:40:00 -07:00
Chun-Min Chang 547e3bd37d Remove unsafe block in audiounit_{add, remove}_device_listener 2019-04-10 16:56:39 -07:00