Skip to content

Commit 218d1c7

Browse files
committed
Remove leftover comments
1 parent f680b5b commit 218d1c7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/audio_unit/macos_helpers.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,6 @@ impl AliveListener {
732732
/// Get the pid of the process that currently owns exclusive access to a device.
733733
/// A pid value of -1 means no process owns exclusive access.
734734
pub fn get_hogging_pid(device_id: AudioDeviceID) -> Result<pid_t, Error> {
735-
// Get available formats.
736735
let property_address = AudioObjectPropertyAddress {
737736
mSelector: kAudioDevicePropertyHogMode,
738737
mScope: kAudioObjectPropertyScopeGlobal,
@@ -763,14 +762,12 @@ pub fn get_hogging_pid(device_id: AudioDeviceID) -> Result<pid_t, Error> {
763762
/// Returns the pid of the new owning process.
764763
/// A pid value of -1 means no process owns exclusive access.
765764
pub fn toggle_hog_mode(device_id: AudioDeviceID) -> Result<pid_t, Error> {
766-
// Get available formats.
767765
let property_address = AudioObjectPropertyAddress {
768766
mSelector: kAudioDevicePropertyHogMode,
769767
mScope: kAudioObjectPropertyScopeGlobal,
770768
mElement: kAudioObjectPropertyElementMaster,
771769
};
772770
let pid = unsafe {
773-
//let temp_pid: pid_t = std::process::id() as _;
774771
let temp_pid: pid_t = -1;
775772
let data_size = mem::size_of::<pid_t>();
776773
let status = AudioObjectSetPropertyData(

0 commit comments

Comments
 (0)