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

How to send Mic Data? #28

Open
MrFreekstorm opened this issue Apr 19, 2023 · 0 comments
Open

How to send Mic Data? #28

MrFreekstorm opened this issue Apr 19, 2023 · 0 comments

Comments

@MrFreekstorm
Copy link

This is probably a noob question and I've only just started to try to use USB, so please bear with me.

The file usbd_audio_mic_if.c/h has lots of stubs that don't do anything. If I breakpoint them I can see them being called, this is fine, this allows me to hook can do various things.

But how do I send the audio data.?
In usbd_aucio_mic.c there is a function
uint8_t USBD_AUDIO_MIC_Data_Transfer(USBD_HandleTypeDef *pdev, int16_t *audioData, uint16_t PCMSamples)
Which looks like the right one, but how do I find a reference to
USBD_HandleTypeDef *pdev ?

Please can you tell me how to send the data?
Thank you.

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

No branches or pull requests

1 participant