/home/alsa/tmp/cvs/alsa-lib/src/instr/fm.c File Reference

FM (OPL2/3) Instrument Format Support. More...


Functions

int snd_instr_fm_free (snd_instr_fm_t *fm)
 Free the FM instrument handle.
int snd_instr_fm_convert_to_stream (snd_instr_fm_t *fm, const char *name, snd_instr_header_t **__data, size_t *__size)
 Convert the FM instrument to byte stream.
int snd_instr_fm_convert_from_stream (snd_instr_header_t *__data, size_t size, snd_instr_fm_t **simple)
 Convert the byte stream to FM instrument.


Detailed Description

FM (OPL2/3) Instrument Format Support.

Author:
Uros Bizjak <uros@kss-loka.si>
Date:
2000-2001

Function Documentation

int snd_instr_fm_convert_from_stream ( snd_instr_header_t *  __data,
size_t  size,
snd_instr_fm_t **  simple 
)

Convert the byte stream to FM instrument.

Parameters:
__data Input - byte stream containing FM instrument definition
size Input - size of byte stream
simple Result - allocated FM instrument handle
Returns:
0 on success otherwise a negative error code

int snd_instr_fm_convert_to_stream ( snd_instr_fm_t *  fm,
const char *  name,
snd_instr_header_t **  __data,
size_t *  __size 
)

Convert the FM instrument to byte stream.

Parameters:
fm FM instrument handle
name FM 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_fm_free ( snd_instr_fm_t *  fm  ) 

Free the FM instrument handle.

Parameters:
fm FM instrument handle
Returns:
0 on success otherwise a negative error code


Generated on Mon Jan 21 11:00:36 2008 for ALSA project - the C library reference by  doxygen 1.5.0