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

Instance Methods

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

Detailed Description

Definition at line 287 of file OOJSSound.m.

Method Documentation

◆ oo_jsClassName

- (NSString *) oo_jsClassName
implementation

Extends class OOSound.

Definition at line 257 of file OOJSSound.m.

312{
313 return @"Sound";
314}

References EXPECT_NOT, nil, OOJS_ARGV, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJSReportBadArguments(), OOStringFromJSValue(), OOMusicController::sharedController, and OOMusicController::stop.

+ Here is the call graph for this function:

◆ oo_jsDescription

- (NSString *) oo_jsDescription
implementation

Extends class OOSound.

Definition at line 257 of file OOJSSound.m.

306{
307 return [NSString stringWithFormat:@"[Sound \"%@\"]", [self name]];
308}

◆ oo_jsValueInContext:

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

Extends class OOSound.

Definition at line 257 of file OOJSSound.m.

289 :(JSContext *)context
290{
291 JSObject *jsSelf = NULL;
292 jsval result = JSVAL_NULL;
293
294 jsSelf = JS_NewObject(context, &sSoundClass, sSoundPrototype, NULL);
295 if (jsSelf != NULL)
296 {
297 if (!JS_SetPrivate(context, jsSelf, [self retain])) jsSelf = NULL;
298 }
299 if (jsSelf != NULL) result = OBJECT_TO_JSVAL(jsSelf);
300
301 return result;
302}
static JSObject * sSoundPrototype
Definition OOJSSound.m:33
static JSClass sSoundClass
Definition OOJSSound.m:48

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