Android 模拟器可以使用 PC 硬件录制和播放音频吗? [英] Can the Android emulator record and play back audio using pc hardware?

查看:32
本文介绍了Android 模拟器可以使用 PC 硬件录制和播放音频吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有安卓手机,但无论如何我都在努力开发它.目前测试我的应用程序的唯一方法是使用模拟器,我读过它不支持录音.但是,我读到了启动命令-audio",它允许使用winaudio"后端从您的电脑输入/输出音频.但是我一直无法让它工作,是否可以使用我电脑的麦克风录音?如果是这样,我做错了什么?

I don't have an android phone, but i'm trying to develop for it anyway. The only way to test my application at the moment is to use the emulator, which I've read does not support audio recording. However, I read about the startup command "-audio " which allows audio input/output from your pc using the 'winaudio' backend. I haven't been able to get it to work though, is it possible to record using my pc's microphone? If so, what am I doing wrong?

推荐答案

是的,可以.在 Mac OSX 上,您必须在模拟器设置中设置麦克风,打开后.

Yes, it can. On Mac OSX, you must set the microphone on the emulator settings, after it's opened.

当模拟器打开时,在右侧栏(音量按钮所在的位置)上,单击三个点(列表的最后一个按钮)以打开模拟器设置.

While the emulator is opened, on the right side bar (where the volume buttons are localized), click on the three dots (last button of the list) to open the emulator settings.

在设置屏幕(称为扩展控件")上,选择麦克风并打开选项虚拟麦克风使用主机音频输入".

On the settings screen (called "Extended controls"), select Microphone and turn on the option "Virtual microphone uses host audio input".

这篇关于Android 模拟器可以使用 PC 硬件录制和播放音频吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆