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

First second mute with mic (great-refactor) #226

Open
Rinnegatamante opened this issue Dec 5, 2015 · 3 comments
Open

First second mute with mic (great-refactor) #226

Rinnegatamante opened this issue Dec 5, 2015 · 3 comments

Comments

@Rinnegatamante
Copy link
Contributor

Seems first mute second is still here with microphone. This is the code i'm using that gives that problem: http://pastebin.com/58biXMur

@Rinnegatamante
Copy link
Contributor Author

Yeah i know i shouldn't free it, infact the free you see was related to an old version of the same piece of code (i forgot to comment it).

@Rinnegatamante
Copy link
Contributor Author

Added this before StartSampling and nothing changed:

do { MICU_GetPower(&power); }while(!power);

@Rinnegatamante
Copy link
Contributor Author

Using svcSleepThread(1000000000); seems to work but now i (obviously) have a sleep for a second. What could be an optimal value?

EDIT: Not related to the issue: Is it possible to change how mic works to use memory allocated with linearMemAlign? Using memalign seems to produce a buffer which can't be directly reproduced with csnd:SND so i have to waste clock cycles to do a memcpy to a buffer allocated with linearAlloc after recording.

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