org.rococoa.cocoa.appkit
Class NSSound

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSSound
All Implemented Interfaces:
NSPasteboardWriting, NSCoding, NSCopying, NSObject, ObjCObject

public abstract class NSSound
extends NSObject
implements ObjCObject, NSCopying, NSCoding, NSPasteboardWriting

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)delegate
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 org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
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

NSSound

public NSSound()
Method Detail

as_NSSound_NSDeprecated

public NSDeprecated as_NSSound_NSDeprecated()

soundNamed

public static NSObject soundNamed(NSString name)
If this finds & creates the sound, only name is saved when archived.
Original signature : +(id)soundNamed:(NSString*)
native declaration : NSSound.h:35


initWithContentsOfURL_byReference

public abstract NSSound initWithContentsOfURL_byReference(NSURL url,
                                                          boolean byRef)
When archived, byref ? saves url : saves contents.
Original signature : -(id)initWithContentsOfURL:(NSURL*) byReference:(BOOL)
native declaration : NSSound.h:39


createWithContentsOfURL_byReference

public static NSSound createWithContentsOfURL_byReference(NSURL url,
                                                          boolean byRef)
Factory method

See Also:
initWithContentsOfURL_byReference(org.rococoa.cocoa.foundation.NSURL, boolean)

initWithContentsOfFile_byReference

public abstract NSSound initWithContentsOfFile_byReference(NSString path,
                                                           boolean byRef)
Original signature : -(id)initWithContentsOfFile:(NSString*) byReference:(BOOL)
native declaration : NSSound.h:42


createWithContentsOfFile_byReference

public static NSSound createWithContentsOfFile_byReference(NSString path,
                                                           boolean byRef)
Factory method

See Also:
initWithContentsOfFile_byReference(org.rococoa.cocoa.foundation.NSString, boolean)

initWithData

public 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. Only uncompressed AIFF data is currently supported.
Original signature : -(id)initWithData:(NSData*)
native declaration : NSSound.h:46


createWithData

public static NSSound createWithData(NSData data)
Factory method

See Also:
initWithData(org.rococoa.cocoa.foundation.NSData)

setName

public abstract boolean setName(NSString string)
Original signature : -(BOOL)setName:(NSString*)
native declaration : NSSound.h:48


name

public abstract NSString name()
Original signature : -(NSString*)name
native declaration : NSSound.h:49


canInitWithPasteboard

public static boolean canInitWithPasteboard(NSPasteboard pasteboard)
Pasteboard support
Original signature : +(BOOL)canInitWithPasteboard:(NSPasteboard*)
native declaration : NSSound.h:52


soundUnfilteredTypes

public static NSArray soundUnfilteredTypes()
Original signature : +(NSArray*)soundUnfilteredTypes
native declaration : NSSound.h:54


initWithPasteboard

public abstract NSSound initWithPasteboard(NSPasteboard pasteboard)
Original signature : -(id)initWithPasteboard:(NSPasteboard*)
native declaration : NSSound.h:56


createWithPasteboard

public static NSSound createWithPasteboard(NSPasteboard pasteboard)
Factory method

See Also:
initWithPasteboard(org.rococoa.cocoa.appkit.NSPasteboard)

writeToPasteboard

public abstract void writeToPasteboard(NSPasteboard pasteboard)
Original signature : -(void)writeToPasteboard:(NSPasteboard*)
native declaration : NSSound.h:57


play

public abstract boolean play()
Sound operations
sound is played asynchronously
Original signature : -(BOOL)play
native declaration : NSSound.h:60


pause

public abstract boolean pause()
returns NO if sound not paused
Original signature : -(BOOL)pause
native declaration : NSSound.h:61


resume

public abstract boolean resume()
returns NO if sound not resumed
Original signature : -(BOOL)resume
native declaration : NSSound.h:62


stop

public abstract boolean stop()
Original signature : -(BOOL)stop
native declaration : NSSound.h:63


isPlaying

public abstract boolean isPlaying()
Original signature : -(BOOL)isPlaying
native declaration : NSSound.h:64


delegate

public abstract NSSoundDelegate delegate()
Original signature : -(id)delegate
native declaration : NSSound.h:66


setDelegate

public abstract void setDelegate(NSSoundDelegate aDelegate)
Original signature : -(void)setDelegate:(id)
native declaration : NSSound.h:67


duration

public abstract NSObject duration()
Returns the duration of the sound in seconds.
Original signature : -(id)duration
native declaration : NSSound.h:73


setVolume

public abstract void setVolume(float volume)
Sets and gets the volume for the sound without affecting the system-wide volume. The valid range is between 0. and 1., inclusive.
Original signature : -(void)setVolume:(float)
native declaration : NSSound.h:77


volume

public abstract float volume()
Original signature : -(float)volume
native declaration : NSSound.h:78


currentTime

public abstract NSObject currentTime()
If the sound is playing, currentTime returns the number of seconds into the sound where playing is occurring. If the sound is not playing, currentTime returns the number of seconds into the sound where playing would start.
Original signature : -(id)currentTime
native declaration : NSSound.h:82


setLoops

public abstract void setLoops(boolean val)
Sets whether the sound should automatically restart when it is finished playing. If the sound is currently playing, this takes effect immediately. The default is NO. A looping sound does not send sound:didFinishPlaying: to its delegate unless it is sent a stop message.
Original signature : -(void)setLoops:(BOOL)
native declaration : NSSound.h:90


loops

public abstract boolean loops()
Returns whether the sound will automatically restart when it is finished playing.
Original signature : -(BOOL)loops
native declaration : NSSound.h:93


setPlaybackDeviceIdentifier

public abstract void setPlaybackDeviceIdentifier(NSString deviceUID)
Set the UID of the audio device where playback will occur. Pass nil to play on the default output device.
Original signature : -(void)setPlaybackDeviceIdentifier:(NSString*)
native declaration : NSSound.h:97


playbackDeviceIdentifier

public abstract NSString playbackDeviceIdentifier()
Get the UID of the audio device where playback will occur. Returns nil if playback tracks the default device, which is the default.
Original signature : -(NSString*)playbackDeviceIdentifier
native declaration : NSSound.h:101


setChannelMapping

public abstract void setChannelMapping(NSArray channelMapping)
Set the channel mapping for the sound. Pass an array of NSNumbers, which maps sound channels to device channels. Pass -1 to indicate that a particular sound channel should be ignored. For any channel, instead of an NSNumber, you may also pass an NSArray of NSNumbers to map a single sound channel to multiple device channels.
Original signature : -(void)setChannelMapping:(NSArray*)
native declaration : NSSound.h:105


channelMapping

public abstract NSArray channelMapping()
Get the channel mapping for the sound. By default, a stereo sound maps its first and second channels to the left and right device channels, while a mono sound maps its single channel across every device channel.
Original signature : -(NSArray*)channelMapping
native declaration : NSSound.h:109


alloc

public static NSSound alloc()

new_

public static NSSound new_()

getNSClass

public static NSSound._class_ getNSClass()


Copyright © 2009. All Rights Reserved.