V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
tamamaxox
V2EX  ›  Linux

如何通过一个耳机线控操作执行程序?

  •  
  •   tamamaxox · 2014-05-13 10:38:02 +08:00 · 3447 次点击
    这是一个创建于 3607 天前的主题,其中的信息可能已经有所发展或是发生改变。
    哪里有相关的资料或者脚本吗?

    系统是arch
    8 条回复    2014-05-14 11:12:57 +08:00
    tonyluj
        1
    tonyluj  
       2014-05-13 12:44:31 +08:00
    arch?
    笔记本或台式机的3.5mm的line-out or audio-out不支持线控吧
    lightening
        2
    lightening  
       2014-05-13 15:58:45 +08:00
    @tonyluj 现代电脑的 3.5mm 接口都是带麦克风/线控的。
    soundbbg
        3
    soundbbg  
       2014-05-13 16:02:29 +08:00
    为硬件写一个简单的驱动程序?
    tamamaxox
        4
    tamamaxox  
    OP
       2014-05-13 17:19:13 +08:00
    我意思是这样的:
    像音乐软件一样,通过线控来控制音乐。

    我像通过线控为自己的PI执行一些简单的操作。
    当然用ssh可以完成这些工作,但是有些简单又高频工作使用ssh不够方便。

    @tonyluj
    @lightening
    @soundbbg
    tonyluj
        5
    tonyluj  
       2014-05-14 00:34:46 +08:00
    @lightening
    @tamamaxox
    麦克风是有的 不过线控貌似也是通过MIC和GND进行控制的吧
    那是否可以监听MIC来实现
    lightening
        6
    lightening  
       2014-05-14 02:01:34 +08:00
    @tonyluj 是的,当然可以监听 MIC。以前 Windows 上还有个监听 MIC 的模拟信号做得示波器软件呢。
    lightening
        7
    lightening  
       2014-05-14 02:02:50 +08:00
    @tonyluj 但是我想,既然可以用这个来控制播放暂停,系统一定已经有处理这个信号的功能了。只要找到这个地方,插入一段代码就行。
    tamamaxox
        8
    tamamaxox  
    OP
       2014-05-14 11:12:57 +08:00
    (⊙o⊙)哦。线控的方案好像有点绕路了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4639 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:03 · PVG 18:03 · LAX 03:03 · JFK 06:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.