polarisae.blogg.se

Default sample rate for mac and sample rate for windows
Default sample rate for mac and sample rate for windows







default sample rate for mac and sample rate for windows default sample rate for mac and sample rate for windows

The reported min and max are a lie.ģ) Setting AudioSettings.outputSampleRate won't necessarily do what you think - The docs note that you can set outputSampleRate to change the output sample rate of Unity's internal audio mixer. I also played back the various sample rates as a triple check and could hear the distortion/noise in the audio recorded at 12k. I double checked the resulting samples and found that it does seem to truly record at those other rates. I was able to successfully record audio at 12k, 24k, and 48k sample rates by simply specifying those values in Microphone.Start(). However, I've found that I can actually record at many other sample rates.

#Default sample rate for mac and sample rate for windows android

On both of my Android devices, Unity shows a minimum sample rate of 44100 and a maximum sample rate of 44100 for the built-in mic. This is true on PC and mobile.Ģ) Microphone.GetDeviceCaps lies - According to the docs, GetDeviceCaps is what you use to determine what sample rates are supported by the attached microphone. Some not so much.ġ) Unity can play inputs of any sample rate - It doesn't matter what the sample rate of an audio file is, Unity can play it and will seamlessly resample the audio to Unity's selected output sample rate (which can be found in AudioSettings.outputSampleRate). There didn't seem to be a lot of info on this topic, so I thought I'd share what I've found. I wanted to investigate optimizing the audio filesize and also make sure there were no conflicts between mic sample rate, audio file sample rate, and speaker (output) sample rate. As part of that I've been experimenting with how Unity handles sample rates. I've been working on a mobile app that involves recording audio via microphone input and then playing back that audio.









Default sample rate for mac and sample rate for windows