|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.appkit.NSSound
public abstract class NSSound
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.
Nested Class Summary | |
---|---|
static class |
NSSound._class_
|
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying |
---|
NSCopying._static_ |
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding |
---|
NSCoding._static_ |
Nested classes/interfaces inherited from interface org.rococoa.cocoa.appkit.protocols.NSPasteboardWriting |
---|
NSPasteboardWriting._static_ |
Constructor Summary | |
---|---|
NSSound()
|
Method Summary | |
---|---|
static NSSound |
alloc()
|
NSDeprecated |
as_NSSound_NSDeprecated()
|
static boolean |
canInitWithPasteboard(NSPasteboard pasteboard)
Pasteboard support Original signature : +(BOOL)canInitWithPasteboard:(NSPasteboard*) native declaration : NSSound.h:52 |
abstract NSArray |
channelMapping()
Get the channel mapping for the sound. |
static NSSound |
createWithContentsOfFile_byReference(NSString path,
boolean byRef)
Factory method |
static NSSound |
createWithContentsOfURL_byReference(NSURL url,
boolean byRef)
Factory method |
static NSSound |
createWithData(NSData data)
Factory method |
static NSSound |
createWithPasteboard(NSPasteboard pasteboard)
Factory method |
abstract NSObject |
currentTime()
If the sound is playing, currentTime returns the number of seconds into the sound where playing is occurring. |
abstract NSSoundDelegate |
delegate()
Original signature : -(id native declaration : NSSound.h:66 |
abstract NSObject |
duration()
Returns the duration of the sound in seconds. |
static NSSound._class_ |
getNSClass()
|
abstract NSSound |
initWithContentsOfFile_byReference(NSString path,
boolean byRef)
Original signature : -(id)initWithContentsOfFile:(NSString*) byReference:(BOOL) native declaration : NSSound.h:42 |
abstract NSSound |
initWithContentsOfURL_byReference(NSURL url,
boolean byRef)
When archived, byref ? |
abstract NSSound |
initWithData(NSData data)
Whether the data comes in from disk, or via this method, NSSound expects it to have a proper magic number, sound header, and data. |
abstract NSSound |
initWithPasteboard(NSPasteboard pasteboard)
Original signature : -(id)initWithPasteboard:(NSPasteboard*) native declaration : NSSound.h:56 |
abstract boolean |
isPlaying()
Original signature : -(BOOL)isPlaying native declaration : NSSound.h:64 |
abstract boolean |
loops()
Returns whether the sound will automatically restart when it is finished playing. |
abstract NSString |
name()
Original signature : -(NSString*)name native declaration : NSSound.h:49 |
static NSSound |
new_()
|
abstract boolean |
pause()
returns NO if sound not paused Original signature : -(BOOL)pause native declaration : NSSound.h:61 |
abstract boolean |
play()
Sound operations sound is played asynchronously Original signature : -(BOOL)play native declaration : NSSound.h:60 |
abstract NSString |
playbackDeviceIdentifier()
Get the UID of the audio device where playback will occur. |
abstract boolean |
resume()
returns NO if sound not resumed Original signature : -(BOOL)resume native declaration : NSSound.h:62 |
abstract void |
setChannelMapping(NSArray channelMapping)
Set the channel mapping for the sound. |
abstract void |
setDelegate(NSSoundDelegate aDelegate)
Original signature : -(void)setDelegate:(id native declaration : NSSound.h:67 |
abstract void |
setLoops(boolean val)
Sets whether the sound should automatically restart when it is finished playing. |
abstract boolean |
setName(NSString string)
Original signature : -(BOOL)setName:(NSString*) native declaration : NSSound.h:48 |
abstract void |
setPlaybackDeviceIdentifier(NSString deviceUID)
Set the UID of the audio device where playback will occur. |
abstract void |
setVolume(float volume)
Sets and gets the volume for the sound without affecting the system-wide volume. |
static NSObject |
soundNamed(NSString name)
If this finds & creates the sound, only name is saved when archived. |
static NSArray |
soundUnfilteredTypes()
Original signature : +(NSArray*)soundUnfilteredTypes native declaration : NSSound.h:54 |
abstract boolean |
stop()
Original signature : -(BOOL)stop native declaration : NSSound.h:63 |
abstract float |
volume()
Original signature : -(float)volume native declaration : NSSound.h:78 |
abstract void |
writeToPasteboard(NSPasteboard pasteboard)
Original signature : -(void)writeToPasteboard:(NSPasteboard*) native declaration : NSSound.h:57 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying |
---|
copyWithZone |
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding |
---|
encodeWithCoder, initWithCoder |
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
---|
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone |
Methods inherited from interface org.rococoa.ObjCObject |
---|
id |
Constructor Detail |
---|
public NSSound()
Method Detail |
---|
public NSDeprecated as_NSSound_NSDeprecated()
public static NSObject soundNamed(NSString name)
+(id)soundNamed:(NSString*)
public abstract NSSound initWithContentsOfURL_byReference(NSURL url, boolean byRef)
-(id)initWithContentsOfURL:(NSURL*) byReference:(BOOL)
public static NSSound createWithContentsOfURL_byReference(NSURL url, boolean byRef)
initWithContentsOfURL_byReference(org.rococoa.cocoa.foundation.NSURL, boolean)
public abstract NSSound initWithContentsOfFile_byReference(NSString path, boolean byRef)
-(id)initWithContentsOfFile:(NSString*) byReference:(BOOL)
public static NSSound createWithContentsOfFile_byReference(NSString path, boolean byRef)
initWithContentsOfFile_byReference(org.rococoa.cocoa.foundation.NSString, boolean)
public abstract NSSound initWithData(NSData data)
-(id)initWithData:(NSData*)
public static NSSound createWithData(NSData data)
initWithData(org.rococoa.cocoa.foundation.NSData)
public abstract boolean setName(NSString string)
-(BOOL)setName:(NSString*)
public abstract NSString name()
-(NSString*)name
public static boolean canInitWithPasteboard(NSPasteboard pasteboard)
+(BOOL)canInitWithPasteboard:(NSPasteboard*)
public static NSArray soundUnfilteredTypes()
+(NSArray*)soundUnfilteredTypes
public abstract NSSound initWithPasteboard(NSPasteboard pasteboard)
-(id)initWithPasteboard:(NSPasteboard*)
public static NSSound createWithPasteboard(NSPasteboard pasteboard)
initWithPasteboard(org.rococoa.cocoa.appkit.NSPasteboard)
public abstract void writeToPasteboard(NSPasteboard pasteboard)
-(void)writeToPasteboard:(NSPasteboard*)
public abstract boolean play()
-(BOOL)play
public abstract boolean pause()
-(BOOL)pause
public abstract boolean resume()
-(BOOL)resume
public abstract boolean stop()
-(BOOL)stop
public abstract boolean isPlaying()
-(BOOL)isPlaying
public abstract NSSoundDelegate delegate()
-(id)delegate
public abstract void setDelegate(NSSoundDelegate aDelegate)
-(void)setDelegate:(id)
public abstract NSObject duration()
-(id)duration
public abstract void setVolume(float volume)
-(void)setVolume:(float)
public abstract float volume()
-(float)volume
public abstract NSObject currentTime()
-(id)currentTime
public abstract void setLoops(boolean val)
-(void)setLoops:(BOOL)
public abstract boolean loops()
-(BOOL)loops
public abstract void setPlaybackDeviceIdentifier(NSString deviceUID)
-(void)setPlaybackDeviceIdentifier:(NSString*)
public abstract NSString playbackDeviceIdentifier()
-(NSString*)playbackDeviceIdentifier
public abstract void setChannelMapping(NSArray channelMapping)
-(void)setChannelMapping:(NSArray*)
public abstract NSArray channelMapping()
-(NSArray*)channelMapping
public static NSSound alloc()
public static NSSound new_()
public static NSSound._class_ getNSClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |