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

This file contains music playing routines. More...

#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>
#include "sound.h"
#include "movies.h"
#include "main.h"
#include "resources.h"
#include "hqrdepack.h"

Include dependency graph for sound.c:

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 ()

Variables

int channel
Mix_Chunk * 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.c.


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().


Variable Documentation

int channel

SDL_Mixer channels

Definition at line 36 of file sound.c.

Mix_Chunk* sample

Samples chunk variable

Definition at line 38 of file sound.c.

Referenced by play_fla_sample(), process_frame(), and stop_sample().


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