如何使用C ++在Ubuntu中连接到ALSA服务器(在本例中为Timidity)? [英] How to connect to ALSA server (in this case, Timidity) in Ubuntu using C++?

查看:102
本文介绍了如何使用C ++在Ubuntu中连接到ALSA服务器(在本例中为Timidity)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Linux C ++下的Linux Ubuntu下尝试使用MIDI.一天使用了几种工具(例如,JACK)却没有成功(JACK像在我的机器上发疯一样滞后),今天,我现在尝试使用胆小"作为MIDI服务器.但是,我在网上找不到有关如何使用C ++以编程方式连接怯id"的任何参考.反正有这样做吗?

I am trying to use MIDI under Linux Ubuntu with C++. After a day of using several tools (e.g., JACK) with no success (JACK lags like mad on my machine), I am now trying to use Timidity as the MIDI server. However, I am not able to find any references on the web about how to programmatically connect to Timidity using C++. Is there anyway to do this?

谢谢您的建议!

注释:

我尝试用以下方法搜索google:

I've tried search google with the following:

alsa服务器连接

怯id连接程序

但没有答案.

推荐答案

使用ALSA音序器方法创建MIDI消息.

use the ALSA sequencer methods to create MIDI messages.

C库的文档在这里: http://www.alsa-project.org/alsa-doc/alsa-lib/group___sequencer.html

the documentation for the C library is here: http://www.alsa-project.org/alsa-doc/alsa-lib/group___sequencer.html

这篇关于如何使用C ++在Ubuntu中连接到ALSA服务器(在本例中为Timidity)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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