Commit graph

14 commits

Author SHA1 Message Date
Diego E. 'Flameeyes' Pettenò
6232f1c96c Make some static tables and strings constants.
By doing this we move them from the .data section to .rodata setion,
or from .data.rel to .data.rel.ro.

The .rodata section is mapped directly from the on-disk file, which is
always a save, while .data.rel.ro is mapped directly when using
prelink, which is a save in a lot of cases.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
2008-11-21 13:10:02 +01:00
Diego E. 'Flameeyes' Pettenò
ca1ea1e904 Mark static the functions not used outside their unit.
This way the compiler can assume more information about their
interface for optimisation.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
2008-11-21 13:09:56 +01:00
Clemens Ladisch
2d470cf9c1 amidi: open devices non-blockingly
Open the RawMIDI devices in non-blocking mode so that we do not hang
while a device is busy.
2007-04-17 09:25:01 +02:00
Clemens Ladisch
7bae1b0a5b amidi: fix --list-devices
Fix the formatting of devices with several unnamed subdevices,
and show input/outputness for these, too.
2006-06-27 08:19:15 +02:00
Takashi Iwai
6764ddbd53 amidi: Fix device list
From: Matthias Koenig <mk@phasorlab.de>

amidi does not show all devices with the --list-devices option.
It assumes that all output ports equals input ports and does not
show an input only port.
This patch extends the output of amidi -l by one column which shows
the input/output direction of each port.
E.g.

zebra:amidi # ./amidi -l
Dir Device    Name
IO  hw:1,0    MPU-401 MIDI 1-0
IO  hw:2,0,0  Keystation MIDI 1
IO  hw:3,0,0  Miditerminal 1
IO  hw:3,0,1  Miditerminal 2
IO  hw:3,0,2  Miditerminal 3
IO  hw:3,0,3  Miditerminal 4
I   hw:3,0,4  Miditerminal SMPTE
2006-06-23 14:53:38 +02:00
Takashi Iwai
39ff48b437 Output help messages to stdout
Output help messages and lists to stdout instead of stderr.
2005-06-23 10:39:16 +00:00
Clemens Ladisch
556364bbaf detect attempts to play .mid files with amidi
Complain when the user attempts to play .mid files with amidi.
2005-03-14 15:13:48 +00:00
Clemens Ladisch
44cb75c764 fix amidi error handling
Fix error handling when the input file cannot be loaded.
2005-03-14 15:11:45 +00:00
Clemens Ladisch
c44463f841 fix buffer length calculation
The send_hex buffer length has to include the separating space, too.
2005-02-16 10:03:52 +00:00
Clemens Ladisch
5df127e3f3 allow --send-hex data without quotes
Now all non-option arguments are read as data for the -S option,
instead of requiring exactly one argument for -S.

This fixes the bug that when specifying multiple bytes for the -S
option separated with spaces but without quoting, amidi would silently
ignore all but the first byte.
2005-02-16 09:52:25 +00:00
Takashi Iwai
e24a1cb4f9 Clemens Ladisch <clemens@ladisch.de>:
- This adds an option to amidi not to ignore active sensing bytes.
2004-01-19 18:39:12 +00:00
Takashi Iwai
87873452ce Clemens Ladisch <clemens@ladisch.de>:
- set file permission bits for output file
2004-01-13 16:11:56 +00:00
Jaroslav Kysela
80476a0170 - changes against PCM API switch
- 1.0.0 version
- fixed amidi warning
2003-11-05 11:08:25 +00:00
Takashi Iwai
e90417e3fd - added amidi utility by Clemens Ladisch <clemens@ladisch.de>
- fixed .cvsignore and README
2003-10-28 10:53:43 +00:00