[Tutor] Pytest - Sounddevice callback function
Brian Wheatley
brianjwheatley at gmail.com
Thu Oct 6 21:32:23 EDT 2022
Hey DN,
I'm not too sure.. I'm really new to python.
There is alot of sources on the web saying this can't be done, but I
thought I would reach out to this forum.
Can you give an example of how you might do this?
On Thu., Oct. 6, 2022, 21:09 dn, <PythonList at danceswithmice.info> wrote:
> Hello,
>
> On 07/10/2022 10.37, Brian Wheatley wrote:
> > Hello,
> >
> > Is there any way to pytest a callback function, using the sounddevice
> > library?
> > I basically just want to test if the Inputstream is working.
> > Or even assert that no exception is found.
>
> Am probably misunderstanding the question: why not have the
> callback-function return either/both the data-received (or len()
> thereof) and 'status'?
>
> NB don't know if incoming 'silence' is actually zero/null or if there
> will be values for 'static'/white-noise!
>
> If revealed to be necessary, please explain further...
> --
> Regards,
> =dn
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list