D:/WorkAround/prequengine/trunk/src/sound.h File Reference

This file contains music playing routines. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void sample_volume (int channel, int volume)
void play_fla_sample (int index, int frequency, int repeat, int x, int y)
void stop_sample ()


Detailed Description

This file contains music playing routines.

Prequengine: a Little Big Adventure engine

Copyright (C) 2008 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file sound.h.


Function Documentation

void play_fla_sample ( int  index,
int  frequency,
int  repeat,
int  x,
int  y 
)

Play FLA movie samples

Parameters:
index sample index under flasamp.hqr file
frequency frequency used to play the sample
repeat number of times to repeat the sample
x unknown x variable
y unknown y variable

Definition at line 54 of file sound.c.

References cfgfile, ConfigFile::Debug, FLA_DIR, hqr_entry_size(), HQR_FLASAMP_FILE, hqr_get_entry(), ConfigFile::NoSound, sample, sample_volume(), and ConfigFile::WaveVolume.

Referenced by process_frame().

void sample_volume ( int  channel,
int  volume 
)

Sample volume

Parameters:
channel sample channel
volume sample volume number

Definition at line 43 of file sound.c.

Referenced by play_fla_sample(), and process_menu().

void stop_sample (  ) 

Stop samples

Definition at line 88 of file sound.c.

References cfgfile, ConfigFile::Debug, ConfigFile::NoSound, and sample.

Referenced by play_fla_movie(), and process_frame().


Generated on Thu Sep 18 14:14:49 2008 for Prequengine by  doxygen 1.5.5