mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Added snd_*_card() functions.
This commit is contained in:
parent
c268a4bf56
commit
9acdef38c9
31 changed files with 140 additions and 12 deletions
|
|
@ -50,6 +50,12 @@ static int snd_rawmidi_hw_close(snd_rawmidi_t *rmidi)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int snd_rawmidi_hw_card(snd_rawmidi_t *rmidi)
|
||||
{
|
||||
snd_rawmidi_hw_t *hw = rmidi->private;
|
||||
return hw->card;
|
||||
}
|
||||
|
||||
static int snd_rawmidi_hw_nonblock(snd_rawmidi_t *rmidi, int nonblock)
|
||||
{
|
||||
snd_rawmidi_hw_t *hw = rmidi->private;
|
||||
|
|
@ -142,6 +148,7 @@ static ssize_t snd_rawmidi_hw_read(snd_rawmidi_t *rmidi, void *buffer, size_t si
|
|||
|
||||
snd_rawmidi_ops_t snd_rawmidi_hw_ops = {
|
||||
close: snd_rawmidi_hw_close,
|
||||
card: snd_rawmidi_hw_card,
|
||||
nonblock: snd_rawmidi_hw_nonblock,
|
||||
info: snd_rawmidi_hw_info,
|
||||
params: snd_rawmidi_hw_params,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue