mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Added I/O classes
This commit is contained in:
parent
da4d6f5ee8
commit
e283a3f642
32 changed files with 1882 additions and 226 deletions
|
|
@ -278,7 +278,7 @@ int snd_instr_iwffff_open_rom(snd_iwffff_handle_t **handle, int card, int bank,
|
|||
next_ffff = lseek(fd, 0, SEEK_CUR) + ffff.length;
|
||||
if (file == index) {
|
||||
#ifdef IW_ROM_DEBUG
|
||||
fprintf(stderr, "file header at 0x%x size 0x%x\n", rom_pos - sizeof(ffff), ffff.length);
|
||||
ERR("file header at 0x%x size 0x%x\n", rom_pos - sizeof(ffff), ffff.length);
|
||||
#endif
|
||||
iwf = malloc(sizeof(*iwf));
|
||||
if (iwf == NULL) {
|
||||
|
|
@ -505,7 +505,7 @@ static int load_iw_patch(snd_iwffff_handle_t *iwf, iwffff_instrument_t *instr,
|
|||
unsigned char *current;
|
||||
|
||||
#ifdef IW_ROM_DEBUG
|
||||
fprintf(stderr, "load_iw_patch - nlayers = %i\n", snd_LE_to_host_16(*(((unsigned short *)patch) + 8/2));
|
||||
ERR("load_iw_patch - nlayers = %i\n", snd_LE_to_host_16(*(((unsigned short *)patch) + 8/2));
|
||||
#endif
|
||||
instr->layer_type = patch[6];
|
||||
instr->exclusion = patch[7];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue