Namespaces | Defines | Functions

sound_handler_mkit.cpp File Reference

#include "sound_handler_mkit.h"
#include "SoundInfo.h"
#include "EmbedSound.h"
#include "AuxStream.h"
#include "log.h"
#include "GnashException.h"
#include <vector>
#include <boost/scoped_array.hpp>
#include <SoundPlayer.h>
Include dependency graph for sound_handler_mkit.cpp:

Namespaces

namespace  gnash
 

Anonymous namespace for callbacks, local functions, event handlers etc.


namespace  gnash::sound
 

Gnash sound handling subsystem (libsound).


Defines

#define MIX_MAXVOLUME   128
#define ADJUST_VOLUME(s, v)   (s = (s*v)/MIX_MAXVOLUME)
#define ADJUST_VOLUME_U8(s, v)   (s = (((s-128)*v)/MIX_MAXVOLUME)+128)

Functions

sound_handler * gnash::sound::create_sound_handler_mkit (media::MediaHandler *m)
sound_handler * gnash::sound::create_sound_handler_mkit (media::MediaHandler *m, const std::string &wave_file)

Define Documentation

#define ADJUST_VOLUME (   s,
  v 
)    (s = (s*v)/MIX_MAXVOLUME)
#define ADJUST_VOLUME_U8 (   s,
  v 
)    (s = (((s-128)*v)/MIX_MAXVOLUME)+128)
#define MIX_MAXVOLUME   128