43 lines
758 B
C++
43 lines
758 B
C++
/* -----------------------------------------------------------------------------
|
|
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__
|