Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

iwffff.c File Reference

InterWave FFFF Format Support. More...


Functions

int snd_instr_iwffff_open (snd_iwffff_handle_t **handle, const char *name_fff, const char *name_dat)
 Open IWFFFF files.

int snd_instr_iwffff_open_rom (snd_iwffff_handle_t **handle, int card, int bank, int file)
 Open IWFFFF ROM.

int snd_instr_iwffff_open_rom_file (snd_iwffff_handle_t **handle, const char *name, int bank, int file)
 Open IWFFFF ROM file.

int snd_instr_iwffff_close (snd_iwffff_handle_t *handle)
 Close and free IWFFFF handle.

int snd_instr_iwffff_free (snd_instr_iwffff_t *__instr)
 Free IWFFFF instrument.

int snd_instr_iwffff_load (snd_iwffff_handle_t *iwf, int bank, int prg, snd_instr_iwffff_t **__iwffff)
 Load IWFFFF instrument.

int snd_instr_iwffff_convert_to_stream (snd_instr_iwffff_t *iwffff, const char *name, snd_instr_header_t **__data, size_t *__size)
 Convert the IWFFFF instrument to byte stream.

int snd_instr_iwffff_convert_from_stream (snd_instr_header_t *data, size_t size, snd_instr_iwffff_t **iwffff)
 Convert the byte stream to IWFFFF instrument.


Detailed Description

InterWave FFFF Format Support.

Author:
Jaroslav Kysela <perex@suse.cz>
Date:
1999-2001

Function Documentation

int snd_instr_iwffff_close snd_iwffff_handle_t   handle
 

Close and free IWFFFF handle.

Parameters:
handle  IWFFFF handle
Returns:
0 on success otherwise a negative error code

int snd_instr_iwffff_convert_from_stream snd_instr_header_t   data,
size_t    size,
snd_instr_iwffff_t **    iwffff
 

Convert the byte stream to IWFFFF instrument.

Parameters:
data  Input - byte stream
size  Input - size of byte stream
iwffff  Result - allocated IWFFFF instrument handle
Returns:
0 on success otherwise a negative error code

int snd_instr_iwffff_convert_to_stream snd_instr_iwffff_t   iwffff,
const char *    name,
snd_instr_header_t **    __data,
size_t *    __size
 

Convert the IWFFFF instrument to byte stream.

Parameters:
iwffff  IWFFFF instrument handle
name  instrument name
__data  Result - allocated byte stream
__size  Result - size of allocated byte stream
Returns:
0 on success otherwise a negative error code

int snd_instr_iwffff_free snd_instr_iwffff_t   __instr
 

Free IWFFFF instrument.

Parameters:
__instr  IWFFFF instrument handle
Returns:
0 on success otherwise a negative error code

int snd_instr_iwffff_load snd_iwffff_handle_t   iwf,
int    bank,
int    prg,
snd_instr_iwffff_t **    __iwffff
 

Load IWFFFF instrument.

Parameters:
iwf  IWFFFF handle
bank  program bank number
prg  program number
__iwffff  allocated IWFFFF instrument
Returns:
0 on success otherwise a negative error code

int snd_instr_iwffff_open snd_iwffff_handle_t **    handle,
const char *    name_fff,
const char *    name_dat
 

Open IWFFFF files.

Parameters:
handle  IWFFFF handle
name_fff  filename of an FFF (header) file
name_dat  filename of an DAT (data) file
Returns:
0 on success otherwise a negative error code

int snd_instr_iwffff_open_rom snd_iwffff_handle_t **    handle,
int    card,
int    bank,
int    file
 

Open IWFFFF ROM.

Parameters:
handle  IWFFFF handle
card  card number
bank  ROM bank number (0-3)
file  ROM file number
Returns:
0 on success otherwise a negative errno code
Opens file in bank in the ROM image of card card, and writes a handle pointer into *handle.

int snd_instr_iwffff_open_rom_file snd_iwffff_handle_t **    handle,
const char *    name,
int    bank,
int    file
 

Open IWFFFF ROM file.

Parameters:
handle  IWFFFF handle
name  IWFFFF ROM filename
bank  ROM bank number (0-3)
file  ROM file number
Returns:
0 on success otherwise a negative error code


Generated on Fri Sep 3 11:05:46 2004 for ALSA project - the C library reference by doxygen1.2.18