JuliaAudio / PortAudio.jl

PortAudio wrapper for the Julia programming language, compatible with the JuliaAudio family of packages
Other
115 stars 19 forks source link

HZ not defined #86

Closed tj10ai closed 2 years ago

tj10ai commented 3 years ago

This is my first post of an issue; please let me know protocol:

PortAudioStream(inchans=2, outchans=2; eltype=Float32, samplerate=48000Hz, latency=0.1, synced=false)

returns error 'HZ not defined', as seen in attachment.

image

rob-luke commented 3 years ago

Thanks for posting this issue! I confirm this is a documentation error.

Does either of the following work?

using PortAudio, Unitful

PortAudioStream(your_other_values, samplerate=48000u"Hz")
# or
PortAudioStream(your_other_values, samplerate=48000)
tj10ai commented 3 years ago

Robert thanks for looking into this error; I tried but both suggestions failed:

 

  From: Robert Luke @.> Sent: Monday, August 30, 2021 10:31 PM To: JuliaAudio/PortAudio.jl @.> Cc: TJ @.>; Author @.> Subject: Re: [JuliaAudio/PortAudio.jl] HZ not defined (#86)

  Thanks for posting this issue! I confirm this is a documentation error.

Does either of the following work?

using PortAudio, Unitful

 

PortAudioStream(your_other_values, samplerate=48000u"Hz")

or

PortAudioStream(your_other_values, samplerate=48000)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JuliaAudio/PortAudio.jl/issues/86#issuecomment-908847163 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQTQVVL7JSX66HA35NTPADT7Q5E7ANCNFSM5DDDB7EQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

bramtayl commented 3 years ago

Hz is in Unitful. Try using Unitful: Hz

bramtayl commented 2 years ago

Closed by https://github.com/JuliaAudio/PortAudio.jl/pull/111