Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioFile in input of AudioStream #294

Open
adrienpl opened this issue Feb 29, 2024 · 2 comments · May be fixed by #317
Open

AudioFile in input of AudioStream #294

adrienpl opened this issue Feb 29, 2024 · 2 comments · May be fixed by #317

Comments

@adrienpl
Copy link

Hello guys,

I want to have the global latency of an audio stream (pedalbaord & VB-Cable). Is it possible to give a wav file in input of AudioStream instead of microphone ? Since i know the duration of the input wav file and i can hear the output Virtual Microphone , i want to calculate the theorical & real end time.

Is it possible to do something like this with pedalbaord ?

Thanks !

@Dohg678
Copy link

Dohg678 commented Mar 1, 2024

@psobot Maybe this could be done with the use of JUCE’s AudioFormatReader?

@psobot
Copy link
Member

psobot commented Mar 4, 2024

Hi @adrienpl and @Dohg678!

Pedalboard doesn’t have a mechanism for this at the moment. I haven’t thought about a good API design for this just yet, but it should be possible to either put audio playback into the AudioStream class or to add a new class or function just to play a single buffer.

However, I’m not sure if this would solve your problem - what do you mean when you say that you want to measure the “global latency” of an audio stream?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants