Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
soundfont.h File Reference
#include <sound/sfnt_info.h>
#include <sound/util_mem.h>

Go to the source code of this file.

Data Structures

struct  snd_sf_zone
 
struct  snd_sf_sample
 
struct  snd_soundfont
 
struct  snd_sf_callback
 
struct  snd_sf_list
 

Macros

#define SF_MAX_INSTRUMENTS   128 /* maximum instrument number */
 
#define SF_MAX_PRESETS   256 /* drums are mapped from 128 to 256 */
 
#define SF_IS_DRUM_BANK(z)   ((z) == 128)
 
#define snd_sf_calc_parm_delay(msec)   (0x8000 - (msec) * 1000 / 725)
 

Functions

int snd_soundfont_load (struct snd_sf_list *sflist, const void __user *data, long count, int client)
 
int snd_soundfont_load_guspatch (struct snd_sf_list *sflist, const char __user *data, long count, int client)
 
int snd_soundfont_close_check (struct snd_sf_list *sflist, int client)
 
struct snd_sf_listsnd_sf_new (struct snd_sf_callback *callback, struct snd_util_memhdr *hdr)
 
void snd_sf_free (struct snd_sf_list *sflist)
 
int snd_soundfont_remove_samples (struct snd_sf_list *sflist)
 
int snd_soundfont_remove_unlocked (struct snd_sf_list *sflist)
 
int snd_soundfont_search_zone (struct snd_sf_list *sflist, int *notep, int vel, int preset, int bank, int def_preset, int def_bank, struct snd_sf_zone **table, int max_layers)
 
int snd_sf_calc_parm_hold (int msec)
 
int snd_sf_calc_parm_attack (int msec)
 
int snd_sf_calc_parm_decay (int msec)
 
int snd_sf_linear_to_log (unsigned int amount, int offset, int ratio)
 

Variables

int snd_sf_vol_table [128]
 

Macro Definition Documentation

#define SF_IS_DRUM_BANK (   z)    ((z) == 128)

Definition at line 30 of file soundfont.h.

#define SF_MAX_INSTRUMENTS   128 /* maximum instrument number */

Definition at line 28 of file soundfont.h.

#define SF_MAX_PRESETS   256 /* drums are mapped from 128 to 256 */

Definition at line 29 of file soundfont.h.

#define snd_sf_calc_parm_delay (   msec)    (0x8000 - (msec) * 1000 / 725)

Definition at line 124 of file soundfont.h.

Function Documentation

int snd_sf_calc_parm_attack ( int  msec)

Definition at line 920 of file soundfont.c.

int snd_sf_calc_parm_decay ( int  msec)

Definition at line 927 of file soundfont.c.

int snd_sf_calc_parm_hold ( int  msec)

Definition at line 895 of file soundfont.c.

void snd_sf_free ( struct snd_sf_list sflist)

Definition at line 1418 of file soundfont.c.

int snd_sf_linear_to_log ( unsigned int  amount,
int  offset,
int  ratio 
)

Definition at line 798 of file soundfont.c.

struct snd_sf_list* snd_sf_new ( struct snd_sf_callback callback,
struct snd_util_memhdr hdr 
)
read

Definition at line 1395 of file soundfont.c.

int snd_soundfont_close_check ( struct snd_sf_list sflist,
int  client 
)

Definition at line 107 of file soundfont.c.

int snd_soundfont_load ( struct snd_sf_list sflist,
const void __user data,
long  count,
int  client 
)

Definition at line 129 of file soundfont.c.

int snd_soundfont_load_guspatch ( struct snd_sf_list sflist,
const char __user data,
long  count,
int  client 
)

Definition at line 1126 of file soundfont.c.

int snd_soundfont_remove_samples ( struct snd_sf_list sflist)

Definition at line 1437 of file soundfont.c.

int snd_soundfont_remove_unlocked ( struct snd_sf_list sflist)

Definition at line 1453 of file soundfont.c.

int snd_soundfont_search_zone ( struct snd_sf_list sflist,
int notep,
int  vel,
int  preset,
int  bank,
int  def_preset,
int  def_bank,
struct snd_sf_zone **  table,
int  max_layers 
)

Definition at line 1231 of file soundfont.c.

Variable Documentation

int snd_sf_vol_table[128]

Definition at line 932 of file soundfont.c.