Skip to content

Commit 2bf0d9f

Browse files
committed
fix: make CoreAudio extern block unsafe for Rust 2024 compatibility on macOS
1 parent b315f69 commit 2bf0d9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bitstream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ mod macos_bitstream {
230230
const kAudioDevicePropertyHogMode: AudioObjectPropertySelector = 0x6f686f67; // 'ohog'
231231

232232
#[link(name = "CoreAudio", kind = "framework")]
233-
extern "C" {
233+
unsafe extern "C" {
234234
fn AudioObjectGetPropertyData(
235235
inObjectID: AudioObjectID,
236236
inAddress: *const AudioObjectPropertyAddress,

0 commit comments

Comments
 (0)