Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OOSoundSource(OOJavaScriptExtentions) Category Reference

Instance Methods

(jsval) - oo_jsValueInContext: [implementation]
 
(NSString *) - oo_jsClassName [implementation]
 

Detailed Description

Definition at line 327 of file OOJSSoundSource.m.

Method Documentation

◆ oo_jsClassName

- (NSString *) oo_jsClassName
implementation

Extends class OOSoundSource.

Definition at line 309 of file OOJSSoundSource.m.

346{
347 return @"SoundSource";
348}

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::playOrRepeat.

+ Here is the call graph for this function:

◆ oo_jsValueInContext:

- (jsval) oo_jsValueInContext: (JSContext *) context
implementation

Extends class OOSoundSource.

Definition at line 309 of file OOJSSoundSource.m.

329 :(JSContext *)context
330{
331 JSObject *jsSelf = NULL;
332 jsval result = JSVAL_NULL;
333
334 jsSelf = JS_NewObject(context, &sSoundSourceClass, sSoundSourcePrototype, NULL);
335 if (jsSelf != NULL)
336 {
337 if (!JS_SetPrivate(context, jsSelf, [self retain])) jsSelf = NULL;
338 }
339 if (jsSelf != NULL) result = OBJECT_TO_JSVAL(jsSelf);
340
341 return result;
342}
static JSClass sSoundSourceClass
static JSObject * sSoundSourcePrototype

The documentation for this category was generated from the following file: