Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is @"/dev/null" a valid path on the device?

I'm using this class as a microphone detection: https://github.com/picciano/iOS-Audio-Recoginzer and it works fine in the simulator but that doesn't work on the device.

peak power is always 0.000001 when testing on iPhone.

I don't know if NSURL *url = [NSURL fileURLWithPath:@"/dev/null"]; is a valid path on the device, anyone?

Thanx

like image 844
Antonio Junior Avatar asked Sep 25 '26 17:09

Antonio Junior


1 Answers

I had the same issue with a similar use of the library /dev/null is not a valid path in the device you need to use a writable one, like one on temp or documents inside the app.

like image 172
Pablo Carrillo Alvarez Avatar answered Sep 27 '26 09:09

Pablo Carrillo Alvarez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!