Mac-AVAudioRecorder Select Microphone - objective-c

In an Application I record audio from the microphone using AVAudioRecorder. I would like the user to be able to choose the microphone/recording settings they want to use, not just use the defaults from system preferences. However, I have not found any way to do this using AVAudioRecorder. Is it possible to do this using AVAudioRecorder, and if not, could I use Core Audio or something else to do this? If so, how would I do this?

You may need to go a bit more low level than AVAudioRecorder, which probably gets its settings & inputs from whatever the user has specified as the defaults in the "Sound" system preference pane.
Perhaps you could consider trying some of the AVCapture* classes?
You can specify a different audio input via the "AVCaptureDeviceInput" class, and there's some nice sample code available from Apple including AVRecorder.

Related

Setting system recording level in vb.net

Clicking the speaker icon in the taskbar, then recording devices, then microphone, then level, I can see the recording level and change it manually if necessary.
I would like to change, set or get this number programmically in vs 2010 vb.net
I have tried using Mark Heath's NAudio to get or set this number, but his code is not in vb, and I can't seem to get it converted to make it work.
Can anyone help me just find a simple way to set and get this value?
I have been all over the internet for weeks, so I probably read everything a search engine can provide.
Thank you so much for your help.
Use mixerGetControlDetails / mixerSetControlDetails API calls to get and set any volume level, whether it is input level or output level.
I remember seeing a nice example on how to make this work ( see this article ), the idea being to talk directly to the "Windows Mixer Control" via these API calls.
Hope this helps.

Alarm Clock Settings

I am building an alarm app using local notifications.
I want to add settings inside my app.
So for this I have created the whole view,now I am confused how to store data for multiple alarms?
Whether i should use NSUserDefaults or sqlite.
You have all the choices:
a) Use NSUserDefaults by doing some simple Key amendments like with keys like SettingAttr = Value, e.g. "MyAlarm0Start" = 10:23:12, "MyAlarm1Start" = ... and for instance the number "MyAlarmCount" = 2
or use
b) a complete data model by CoreDate or SqlLite.
I think this strongly depends on how much data you want to store.
Concerning iTunes library am do not understand what you wanted to know.
Edit: Picking things from your media library is handled via the "Media Player Framework", see Apple Doc IPod Library Access.

Using JSON to update app's content in iOS

I'm about to create an application that uses JSON to update its content.
This is how I planned it to work:
When application starts, it checks (with internet connection is available) if the JSON file set on remote server is newer than the one stored localy - if it is then it's downloaded.
Then, the application applies data from that JSON to the content. For example, to the "Contact" information - it applies data like phone numbers etc.
My question is, is it in your opinion, a good technique to update appliactions content?
Does anynone had an experience with building app with this kind of idea?
Best regards,
Zin
Of course you can do this. One thing that may lead to a better user experience would be to ask the user for his permission to download new content (if there is something new).
This is a normal thing to do. I have a phonebook app that does exactly this. On a side note, if you need a network class to handle the web-service interaction, see this SO post. I wrote a custom network class that works with AFNetworking.

AssetsLibrary: Disable Location Service Prompt

I use AssetsLibrary to present pictures from the user's camera roll. However I'm not interested in the location data of those pictures. Is there a way to disable this location service prompt?
there is no way to disable the prompt. Enabling "location services "is a requirement for using the AssetsLibrary. The reason is that any photos/videos in the Photo-Library might contain geodata. This data is not just available through ALAssetPropertyURLs, but also if you read out the raw data from the asset (by using the getBytes:fromOffset:length:error: Method of ALAssetsRepresentation). Cause there is no way to strip the geo metadata from the raw image data (in case location services are disabled), I guess the design decision was made to make "location services" mandatory for using the AssetsLibrary.
This requirement might be confusing to the user. So you need to do 2 things:
1) If the user denies access to location services, then present a clear message while your app needs this access and that the app does not actually determine the current position or any GPS/data.
2) Display clear instructions how to enable location services, once the user has pressed "NO" on the initial dialog.
Cheers,
Hendrik

Rails 3: Support form that auto Find Users OS and Browser info

I'm building a support form for my application. I'd like the user to include their Operating System and Browser they are using, catch is the general users either don't care to look this stuff up or don't know how. I'd like to add a text-input that automatically grabs this information for the user and displays it in the text field. Not sure how to go about doing this as I'm new to rails. I'm assuming I'd have to tie this in with javascript or a model that is attached to the form.
Any ideas would be appreciated.
you can read it on the server side so there is no need to bother the users.
request.env['HTTP_USER_AGENT'] should do the trick. You can also read some more information like the accept language or accept encoding. Just look at the keys like this: request.env.keys and check what could be of use to you.