first commit
This commit is contained in:
42
include/engine/core/sound.h
Normal file
42
include/engine/core/sound.h
Normal file
@ -0,0 +1,42 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef __NSOUND__
|
||||
#define __NSOUND__
|
||||
|
||||
|
||||
#include "core/mixer_data.h"
|
||||
#include "nstring/nstring.h"
|
||||
#include "memory/nauto_ptr.h"
|
||||
#include "time/ntime.h"
|
||||
|
||||
|
||||
namespace GS {
|
||||
namespace Audio {
|
||||
struct IMixer;
|
||||
|
||||
/*!
|
||||
@short Mixer sound object.
|
||||
@author Emmanuel Julien (ejulien@gsworks.fr)
|
||||
*/
|
||||
struct Sound : public SharedObject
|
||||
{
|
||||
NPLACEMENT_NEW(Sound)
|
||||
|
||||
IMixer &mixer;
|
||||
|
||||
String name;
|
||||
AutoPtr <FutureData> mixer_data;
|
||||
|
||||
Sound(IMixer &m) : mixer(m) {}
|
||||
~Sound();
|
||||
};
|
||||
|
||||
} // Audio
|
||||
} // GS
|
||||
|
||||
|
||||
#endif // __NSOUND__
|
||||
Reference in New Issue
Block a user