Oolite 1.91.0.7644-241112-7f5034b
|
import "OOJSSound.h"
import "OOJSVector.h"
import "OOJavaScriptEngine.h"
import "OOSound.h"
import "ResourceManager.h"
Go to the source code of this file.
Enumerations | |
enum | { kSoundSource_sound , kSoundSource_isPlaying , kSoundSource_loop , kSoundSource_position , kSoundSource_positional , kSoundSource_repeatCount , kSoundSource_volume } |
Functions | |
static JSBool | SoundSourceGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | SoundSourceSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static JSBool | SoundSourceConstruct (JSContext *context, uintN argc, jsval *vp) |
static JSBool | SoundSourcePlay (JSContext *context, uintN argc, jsval *vp) |
static JSBool | SoundSourceStop (JSContext *context, uintN argc, jsval *vp) |
static JSBool | SoundSourcePlayOrRepeat (JSContext *context, uintN argc, jsval *vp) |
void | InitOOJSSoundSource (JSContext *context, JSObject *global) |
Variables | |
static JSObject * | sSoundSourcePrototype |
static JSClass | sSoundSourceClass |
static JSPropertySpec | sSoundSourceProperties [] |
static JSFunctionSpec | sSoundSourceMethods [] |
anonymous enum |
Enumerator | |
---|---|
kSoundSource_sound | |
kSoundSource_isPlaying | |
kSoundSource_loop | |
kSoundSource_position | |
kSoundSource_positional | |
kSoundSource_repeatCount | |
kSoundSource_volume |
Definition at line 62 of file OOJSSoundSource.m.
void InitOOJSSoundSource | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 106 of file OOJSSoundSource.m.
References OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), SoundSourceConstruct(), sSoundSourceClass, sSoundSourceMethods, sSoundSourceProperties, and sSoundSourcePrototype.
|
static |
Definition at line 113 of file OOJSSoundSource.m.
References EXPECT_NOT, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, and OOJSReportError().
Referenced by InitOOJSSoundSource().
|
static |
Definition at line 131 of file OOJSSoundSource.m.
References kSoundSource_isPlaying, kSoundSource_loop, kSoundSource_position, kSoundSource_positional, kSoundSource_repeatCount, kSoundSource_sound, kSoundSource_volume, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromBOOL(), OOJSValueFromNativeObject(), sSoundSourceProperties, and VectorToJSValue().
|
static |
Definition at line 259 of file OOJSSoundSource.m.
References count, EXPECT_NOT, nil, OOJS_ARGV, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJS_THIS, OOJSReportBadArguments(), OOSoundSource::play, and OOSoundSource::setRepeatCount:.
|
static |
Definition at line 309 of file OOJSSoundSource.m.
|
static |
Definition at line 179 of file OOJSSoundSource.m.
References JSValueToVector(), kSoundSource_loop, kSoundSource_position, kSoundSource_positional, kSoundSource_repeatCount, kSoundSource_sound, kSoundSource_volume, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOSoundSource::setGain:, OOSoundSource::setLoop:, OOSoundSource::setPosition:, OOSoundSource::setPositional:, OOSoundSource::setRepeatCount:, OOSoundSource::setSound:, and sSoundSourceProperties.
|
static |
Definition at line 290 of file OOJSSoundSource.m.
References EXPECT_NOT, nil, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJS_THIS, and OOSoundSource::stop.
|
static |
Definition at line 45 of file OOJSSoundSource.m.
Referenced by InitOOJSSoundSource().
|
static |
Definition at line 89 of file OOJSSoundSource.m.
Referenced by InitOOJSSoundSource().
|
static |
Definition at line 75 of file OOJSSoundSource.m.
Referenced by InitOOJSSoundSource(), SoundSourceGetProperty(), and SoundSourceSetProperty().
|
static |
Definition at line 32 of file OOJSSoundSource.m.
Referenced by InitOOJSSoundSource().