Gnash  0.8.11dev
Sound_as.h
Go to the documentation of this file.
1 // Sound_as.h: ActionScript 3 "Sound" class, for Gnash.
2 //
3 // Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 //
19 
20 #ifndef GNASH_ASOBJ3_SOUND_H
21 #define GNASH_ASOBJ3_SOUND_H
22 
23 namespace gnash {
24  struct ObjectURI;
25  class as_object;
26 }
27 
28 namespace gnash {
29 
30 void sound_class_init(as_object& where, const ObjectURI& uri);
31 
32 void registerSoundNative(as_object& global);
33 
34 } // gnash namespace
35 
36 #endif
37 
38 // local Variables:
39 // mode: C++
40 // indent-tabs-mode: nil
41 // End:
42 
gnash::NSV::PROP_ON_LOAD
@ PROP_ON_LOAD
Definition: namedStrings.h:160
gnash::LogFile::getDefaultInstance
static LogFile & getDefaultInstance()
Definition: log.cpp:77
sound_handler.h
gnash::movie_root::removeAdvanceCallback
void removeAdvanceCallback(ActiveRelay *obj)
Definition: movie_root.cpp:1464
gnash::toNumber
double toNumber(const as_value &v, const VM &vm)
Convert an as_value to a double.
Definition: VM.cpp:451
movie_root.h
AudioDecoder.h
gnash::as_object::set_member_flags
void set_member_flags(const ObjectURI &uri, int setTrue, int setFalse=0)
Set member flags (probably used by ASSetPropFlags)
Definition: as_object.cpp:753
name
std::string name
Definition: LocalConnection_as.cpp:149
gnash::toBool
bool toBool(const as_value &v, const VM &vm)
Convert an as_value to boolean type.
Definition: VM.cpp:445
gnash::toInt
std::int32_t toInt(const as_value &v, const VM &vm)
AS2-compatible conversion to 32bit integer.
Definition: VM.cpp:463
gnash::log_swferror
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
gnash::as_object
The base class for all ActionScript objects.
Definition: as_object.h:162
ObjectURI.h
gnash::toObject
as_object * toObject(const as_value &v, VM &vm)
Convert an as_value to an object.
Definition: VM.cpp:457
gnash::log_action
void log_action(StringType msg, Args... args)
Definition: log.h:307
dbglogfile
#define dbglogfile
Definition: gtkext.cpp:48
gnash::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
gnash::key::i
@ i
Definition: GnashKey.h:155
gnash::LogFile
Definition: log.h:64
stop
@ stop
Definition: klash_part.cpp:330
LOG_ONCE
#define LOG_ONCE(x)
Definition: log.h:49
rc.h
_
#define _(String)
Definition: log.h:44
gnash::ensure
T::value_type * ensure(const fn_call &fn)
Templated function to check the validity of a function call.
Definition: fn_call.h:299
gnash::as_object::init_member
void init_member(const std::string &name, const as_value &val, int flags=DefaultFlags)
Initialize a member value by string.
Definition: as_object.cpp:669
gnash::VM
The AVM1 virtual machine.
Definition: VM.h:72
MediaHandler.h
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::NSV::PROP_DURATION
@ PROP_DURATION
Definition: namedStrings.h:72
boost
Definition: gui.h:74
PACKAGE
#define PACKAGE
Definition: gnashconfig.h:556
gnash::registerSoundNative
void registerSoundNative(as_object &global)
Definition: Sound_as.cpp:300
gnash::key::s
@ s
Definition: GnashKey.h:165
gnash::NSV::PROP_ON_SOUND_COMPLETE
@ PROP_ON_SOUND_COMPLETE
Definition: namedStrings.h:178
NativeFunction.h
gnash::key::n
@ n
Definition: GnashKey.h:160
start
@ start
Definition: klash_part.cpp:330
Global_as.h
__FUNCTION__
#define __FUNCTION__
Definition: log.h:437
gnash::getGlobal
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
gnash::NSV::PROP_CONSTRUCTOR
@ PROP_CONSTRUCTOR
Definition: namedStrings.h:68
gnash::getVM
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
ts
std::uint32_t ts
Definition: LocalConnection_as.cpp:150
gnash::sound_class_init
void sound_class_init(as_object &where, const ObjectURI &uri)
Definition: Sound_as.cpp:286
UNUSED
#define UNUSED(x)
Definition: utility.h:113
gnash::log_error
void log_error(StringType msg, Args... args)
Definition: log.h:283
Id3Info.h
gnash::createObject
as_object * createObject(const Global_as &gl)
Definition: Global_as.cpp:303
volume
@ volume
Definition: klash_part.cpp:331
IF_VERBOSE_MALFORMED_SWF
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
bindtextdomain
#define bindtextdomain(Domainname, Dirname)
Definition: gettext.h:66
gnash::callMethod
as_value callMethod(fn_call::Args &args, as_object *obj, const ObjectURI &uri)
Call a member function of this object in an AS-compatible way.
Definition: Global_as.h:219
GnashFileUtilities.h
textdomain
#define textdomain(Domainname)
Definition: gettext.h:65
gnash::Global_as::createClass
as_object * createClass(Global_as::ASFunction ctor, as_object *prototype)
Create an ActionScript class.
Definition: Global_as.cpp:180
gnash::getRunResources
const RunResources & getRunResources(const as_object &o)
Get the RunResources from an as_object.
Definition: as_object.cpp:1142
main
int main(int argc, char *argv[])
Definition: soldumper.cpp:81
gnash::NSV::PROP_POSITION
@ PROP_POSITION
Definition: namedStrings.h:86
IF_VERBOSE_ASCODING_ERRORS
#define IF_VERBOSE_ASCODING_ERRORS(x)
Definition: log.h:397
gnash::VM::registerNative
void registerNative(as_c_function_ptr fun, unsigned int x, unsigned int y)
Definition: VM.cpp:268
MediaParser.h
VM.h
optind
int optind
gnash::log_aserror
void log_aserror(StringType msg, Args... args)
Definition: log.h:331
Relay.h
log.h
gnash::getRoot
movie_root & getRoot(const as_environment &env)
Definition: as_environment.cpp:645
IF_VERBOSE_ACTION
#define IF_VERBOSE_ACTION(x)
Definition: log.h:384
fn_call.h
url
std::string url
Definition: gnash.cpp:59
sound_definition.h
gnashconfig.h
gnash::RcInitFile::getDefaultInstance
static RcInitFile & getDefaultInstance()
Return the default instance of RC file.
Definition: rc.cpp:61
namedStrings.h
Sound_as.h
gnash::Global_as
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:50
SOLDUMPER_VERSION
const char * SOLDUMPER_VERSION
Definition: soldumper.cpp:66
RunResources.h
test.uri
uri
Definition: test.py:12
gnash::key::c
@ c
Definition: GnashKey.h:149
VERSION
#define VERSION
Definition: gnashconfig.h:731
gnash::NSV::PROP_uuPROTOuu
@ PROP_uuPROTOuu
Definition: namedStrings.h:118
gnash::getURI
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
movie_definition.h
dirent
#define dirent
Definition: extension.cpp:49
StreamProvider.h
gnash::key::o
@ o
Definition: GnashKey.h:161
optarg
char * optarg
gnash::log_unimpl
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
gnash::ObjectURI
A URI for describing as_objects.
Definition: ObjectURI.h:45
GnashException.h
gnash::key::e
@ e
Definition: GnashKey.h:151
gnash::readOnly
bool readOnly(const Property &prop)
is this a read-only member ?
Definition: Property.h:417
gnash::movie_root::addAdvanceCallback
void addAdvanceCallback(ActiveRelay *obj)
Definition: movie_root.cpp:1458
gnash::RcInitFile
Definition: rc.h:44
getopt
int getopt(int, char *const *, const char *)