Package system.media
Class SoundPlayer
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.media.SoundPlayer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,ISerializable
public class SoundPlayer extends Component implements ISerializable
The base .NET class managing System.Media.SoundPlayer, System.Windows.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Media.SoundPlayer
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Windows.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Windows.Extensionsstatic java.lang.String
className
Qualified class name: System.Media.SoundPlayerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SoundPlayer()
SoundPlayer(java.lang.Object instance)
Internal constructor.SoundPlayer(java.lang.String soundLocation)
SoundPlayer(Stream stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLoadCompleted(AsyncCompletedEventHandler handler)
void
addSoundLocationChanged(EventHandler handler)
void
addStreamChanged(EventHandler handler)
static SoundPlayer
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoSoundPlayer
, a cast assert is made to check if types are compatible.boolean
getIsLoadCompleted()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
getLoadTimeout()
java.lang.String
getSoundLocation()
Stream
getStream()
NetObject
getTag()
void
Load()
void
LoadAsync()
void
Play()
void
PlayLooping()
void
PlaySync()
void
removeLoadCompleted(AsyncCompletedEventHandler handler)
void
removeSoundLocationChanged(EventHandler handler)
void
removeStreamChanged(EventHandler handler)
void
setIsLoadCompleted(boolean IsLoadCompleted)
void
setJCOInstance(JCObject instance)
void
setLoadTimeout(int LoadTimeout)
void
setSoundLocation(java.lang.String SoundLocation)
void
setStream(Stream Stream)
void
setTag(NetObject Tag)
void
Stop()
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Windows.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Windows.Extensions- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Media.SoundPlayer- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SoundPlayer
public SoundPlayer(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
SoundPlayer
public SoundPlayer() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, MissingMethodException, TargetInvocationException, WaitHandleCannotBeOpenedException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
MissingMethodException
TargetInvocationException
WaitHandleCannotBeOpenedException
OutOfMemoryException
-
SoundPlayer
public SoundPlayer(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, WaitHandleCannotBeOpenedException
-
SoundPlayer
public SoundPlayer(java.lang.String soundLocation) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, WaitHandleCannotBeOpenedException, ObjectDisposedException, NullReferenceException, ArgumentNullException, AggregateException, IndexOutOfRangeException, FormatException, CultureNotFoundException, UnreachableException, UriFormatException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
MissingMethodException
TargetInvocationException
PlatformNotSupportedException
WaitHandleCannotBeOpenedException
ObjectDisposedException
NullReferenceException
ArgumentNullException
AggregateException
IndexOutOfRangeException
FormatException
CultureNotFoundException
UnreachableException
UriFormatException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceISerializable
- Overrides:
getJCOAssemblyName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOClassName
in interfaceISerializable
- Overrides:
getJCOClassName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOObjectName
in interfaceISerializable
- Overrides:
getJCOObjectName
in classComponent
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Specified by:
getJCOInstance
in interfaceISerializable
- Overrides:
getJCOInstance
in classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceISerializable
- Overrides:
getJCOType
in classComponent
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static SoundPlayer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoSoundPlayer
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SoundPlayer
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Load
public void Load() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, UriFormatException, UnreachableException, ArrayTypeMismatchException, FileNotFoundException, ObjectDisposedException, AbandonedMutexException, AggregateException, TimeoutException, IOException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
CultureNotFoundException
NullReferenceException
OutOfMemoryException
ExternalException
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
UriFormatException
UnreachableException
ArrayTypeMismatchException
FileNotFoundException
ObjectDisposedException
AbandonedMutexException
AggregateException
TimeoutException
IOException
-
LoadAsync
public void LoadAsync() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, UriFormatException, UnreachableException, ArrayTypeMismatchException, FileNotFoundException, IOException, ObjectDisposedException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
CultureNotFoundException
NullReferenceException
OutOfMemoryException
ExternalException
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
UriFormatException
UnreachableException
ArrayTypeMismatchException
FileNotFoundException
IOException
ObjectDisposedException
-
Play
public void Play() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, UriFormatException, ArrayTypeMismatchException, ObjectDisposedException, FileNotFoundException, AbandonedMutexException, AggregateException, TimeoutException, IOException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
NullReferenceException
OutOfMemoryException
ExternalException
ArgumentNullException
InvalidOperationException
CultureNotFoundException
ArgumentOutOfRangeException
UriFormatException
ArrayTypeMismatchException
ObjectDisposedException
FileNotFoundException
AbandonedMutexException
AggregateException
TimeoutException
IOException
-
PlayLooping
public void PlayLooping() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, UriFormatException, ArrayTypeMismatchException, ObjectDisposedException, FileNotFoundException, AbandonedMutexException, AggregateException, TimeoutException, IOException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
NullReferenceException
OutOfMemoryException
ExternalException
ArgumentNullException
InvalidOperationException
CultureNotFoundException
ArgumentOutOfRangeException
UriFormatException
ArrayTypeMismatchException
ObjectDisposedException
FileNotFoundException
AbandonedMutexException
AggregateException
TimeoutException
IOException
-
PlaySync
public void PlaySync() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, UriFormatException, ArrayTypeMismatchException, ObjectDisposedException, FileNotFoundException, AbandonedMutexException, AggregateException, TimeoutException, IOException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
NullReferenceException
OutOfMemoryException
ExternalException
ArgumentNullException
InvalidOperationException
CultureNotFoundException
ArgumentOutOfRangeException
UriFormatException
ArrayTypeMismatchException
ObjectDisposedException
FileNotFoundException
AbandonedMutexException
AggregateException
TimeoutException
IOException
-
Stop
public void Stop() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsLoadCompleted
public boolean getIsLoadCompleted() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setIsLoadCompleted
public void setIsLoadCompleted(boolean IsLoadCompleted) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLoadTimeout
public int getLoadTimeout() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setLoadTimeout
public void setLoadTimeout(int LoadTimeout) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getStream
public Stream getStream() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, UriFormatException, UnreachableException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
CultureNotFoundException
NullReferenceException
OutOfMemoryException
ExternalException
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
UriFormatException
UnreachableException
-
setStream
public void setStream(Stream Stream) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, ArgumentException, AggregateException
-
getTag
public NetObject getTag() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTag
public void setTag(NetObject Tag) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSoundLocation
public java.lang.String getSoundLocation() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSoundLocation
public void setSoundLocation(java.lang.String SoundLocation) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, NullReferenceException, ArgumentNullException, AggregateException, IndexOutOfRangeException, FormatException, CultureNotFoundException, UnreachableException, OutOfMemoryException, UriFormatException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
ObjectDisposedException
NullReferenceException
ArgumentNullException
AggregateException
IndexOutOfRangeException
FormatException
CultureNotFoundException
UnreachableException
OutOfMemoryException
UriFormatException
-
addLoadCompleted
public void addLoadCompleted(AsyncCompletedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeLoadCompleted
public void removeLoadCompleted(AsyncCompletedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addSoundLocationChanged
public void addSoundLocationChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeSoundLocationChanged
public void removeSoundLocationChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addStreamChanged
public void addStreamChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeStreamChanged
public void removeStreamChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-