Enum rfmod::Result
[−]
[src]
pub enum Result {
Ok,
AlreadyLocked,
BadCommand,
CDDADrivers,
CDDAInit,
CDDAInvalidDevice,
CDDANoAudio,
CDDANoDevices,
CDDANoDisc,
CDDARead,
ChannelAlloc,
ChannelStolen,
COM,
DMA,
DSPConnection,
DSPFormat,
DSPNotFound,
DSPRunning,
DSPTooManyConnections,
FileBad,
FileCouldNotSeek,
FileDiskEjected,
FileEOF,
FileNotFound,
FileUnwanted,
Format,
HTTP,
HTTPAccess,
HTTPProxyAuth,
HTTPServerError,
HTTPTimeout,
Initialization,
Initialized,
Internal,
InvalidAddress,
InvalidFloat,
InvalidHandle,
InvalidParam,
InvalidPosition,
InvalidSpeaker,
InvalidSyncPoint,
InvalidVector,
MaxAudible,
Memory,
MemoryCantPoint,
MemorySRAM,
Needs2D,
Needs3D,
NeedsHardware,
NeedsSoftware,
NetConnect,
NetSocketError,
NetURL,
NetWouldBlock,
NotReady,
OutputAllocated,
OutputCreateBuffer,
OutputDriverCall,
OutputEnumeration,
OutputFormat,
OutputInit,
OutputNoHardware,
OutputNoSoftware,
Pan,
Plugin,
PluginInstances,
PluginMissing,
PluginResource,
Preloaded,
ProgrammerSound,
Record,
ReverbInstance,
SubsoundAllocated,
SubsoundCantMove,
SubsoundMode,
Subsounds,
TagNotFound,
TooManyChannels,
Unimplemented,
Uninitialized,
Unsupported,
Update,
Version,
EventFailed,
EventInfoOnly,
EventInternal,
EventMaxStreams,
EventMismatch,
EventNameConflict,
EventNotFound,
EventNeedsSimple,
EventGuidConflict,
EventAlreadyLoaded,
MusicUninitialized,
MusicNotFound,
MusicNoCallback,
ResultForceInt,
}Error codes. Returned from every function.
Variants
OkNo errors.
AlreadyLockedTried to call lock a second time before unlock was called.
BadCommandTried to call a function on a data type that does not allow this type of functionality (ie calling Sound::lock on a streaming sound).
CDDADriversNeither NTSCSI nor ASPI could be initialised.
CDDAInitAn error occurred while initialising the CDDA subsystem.
CDDAInvalidDeviceCouldn't find the specified device.
CDDANoAudioNo audio tracks on the specified disc.
CDDANoDevicesNo CD/DVD devices were found.
CDDANoDiscNo disc present in the specified drive.
CDDAReadA CDDA read error occurred.
ChannelAllocError trying to allocate a channel.
ChannelStolenThe specified channel has been reused to play another sound.
COMA Win32 COM related error occured. COM failed to initialize or a QueryInterface failed meaning a Windows codec or driver was not installed properly.
DMADMA Failure. See debug output for more information.
DSPConnectionDSP connection error. Connection possibly caused a cyclic dependancy. Or tried to connect a tree too many units deep (more than 128).
DSPFormatDSP Format error. A DSP unit may have attempted to connect to this network with the wrong format.
DSPNotFoundDSP connection error. Couldn't find the DSP unit specified.
DSPRunningDSP error. Cannot perform this operation while the network is in the middle of running. This will most likely happen if a connection or disconnection is attempted in a DSP callback.
DSPTooManyConnectionsDSP connection error. The unit being connected to or disconnected should only have 1 input or output.
FileBadError loading file.
FileCouldNotSeekCouldn't perform seek operation. This is a limitation of the medium (ie netstreams) or the file format.
FileDiskEjectedMedia was ejected while reading.
FileEOFEnd of file unexpectedly reached while trying to read essential data (truncated data ?).
FileNotFoundFile not found.
FileUnwantedUnwanted file access occured.
FormatUnsupported file or audio format.
HTTPA HTTP error occurred. This is a catch-all for HTTP errors not listed elsewhere.
HTTPAccessThe specified resource requires authentication or is forbidden.
HTTPProxyAuthProxy authentication is required to access the specified resource.
HTTPServerErrorA HTTP server error occurred.
HTTPTimeoutThe HTTP request timed out.
InitializationFMOD was not initialized correctly to support this function.
InitializedCannot call this command after System::init.
InternalAn error occured that wasn't supposed to. Contact support.
InvalidAddressOn Xbox 360, this memory address passed to FMOD must be physical, (ie allocated with XPhysicalAlloc.)
InvalidFloatValue passed in was a NaN, Inf or denormalized float.
InvalidHandleAn invalid object handle was used.
InvalidParamAn invalid parameter was passed to this function.
InvalidPositionAn invalid seek position was passed to this function.
InvalidSpeakerAn invalid speaker was passed to this function based on the current speaker mode.
InvalidSyncPointThe syncpoint did not come from this sound handle.
InvalidVectorThe vectors passed in are not unit length, or perpendicular.
MaxAudibleReached maximum audible playback count for this sound's soundgroup.
MemoryNot enough memory or resources.
MemoryCantPointCan't use FMOD_OPENMEMORY_POINT on non PCM source data, or non mp3/xma/adpcm data if FMOD_CREATECOMPRESSEDSAMPLE was used.
MemorySRAMNot enough memory or resources on console sound ram.
Needs2DTried to call a command on a 3d sound when the command was meant for 2d sound.
Needs3DTried to call a command on a 2d sound when the command was meant for 3d sound.
NeedsHardwareTried to use a feature that requires hardware support. (ie trying to play a GCADPCM compressed sound in software on Wii).
NeedsSoftwareTried to use a feature that requires the software engine. Software engine has either been turned off, or command was executed on a hardware channel which does not support this feature.
NetConnectCouldn't connect to the specified host.
NetSocketErrorA socket error occurred. This is a catch-all for socket-related errors not listed elsewhere.
NetURLThe specified URL couldn't be resolved.
NetWouldBlockOperation on a non-blocking socket could not complete immediately.
NotReadyOperation could not be performed because specified sound/DSP connection is not ready.
OutputAllocatedError initializing output device, but more specifically, the output device is already in use and cannot be reused.
OutputCreateBufferError creating hardware sound buffer.
OutputDriverCallA call to a standard soundcard driver failed, which could possibly mean a bug in the driver or resources were missing or exhausted.
OutputEnumerationError enumerating the available driver list. List may be inconsistent due to a recent device addition or removal.
OutputFormatSoundcard does not support the minimum features needed for this soundsystem (16bit stereo output).
OutputInitError initializing output device.
OutputNoHardwareFMOD_HARDWARE was specified but the sound card does not have the resources necessary to play it.
OutputNoSoftwareAttempted to create a software sound but no software channels were specified in System::init.
PanPanning only works with mono or stereo sound sources.
PluginAn unspecified error has been returned from a 3rd party plugin.
PluginInstancesThe number of allowed instances of a plugin has been exceeded.
PluginMissingA requested output, dsp unit type or codec was not available.
PluginResourceA resource that the plugin requires cannot be found. (ie the DLS file for MIDI playback or other DLLs that it needs to load)
PreloadedThe specified sound is still in use by the event system, call EventSystem::unloadFSB before trying to release it.
ProgrammerSoundThe specified sound is still in use by the event system, wait for the event which is using it finish with it.
RecordAn error occured trying to initialize the recording device.
ReverbInstanceSpecified instance in FMOD_REVERB_PROPERTIES couldn't be set. Most likely because it is an invalid instance number or the reverb doesnt exist.
SubsoundAllocatedThis subsound is already being used by another sound, you cannot have more than one parent to a sound. Null out the other parent's entry first.
SubsoundCantMoveShared subsounds cannot be replaced or moved from their parent stream, such as when the parent stream is an FSB file.
SubsoundModeThe subsound's mode bits do not match with the parent sound's mode bits. See documentation for function that it was called with.
SubsoundsThe error occured because the sound referenced contains subsounds when it shouldn't have, or it doesn't contain subsounds when it should have. The operation may also not be able to be performed on a parent sound, or a parent sound was played without setting up a sentence first.
TagNotFoundThe specified tag could not be found or there are no tags.
TooManyChannelsThe sound created exceeds the allowable input channel count. This can be increased using the maxinputchannels parameter in System::setSoftwareFormat.
UnimplementedSomething in FMOD hasn't been implemented when it should be ! contact support !
UninitializedThis command failed because System::init or System::setDriver was not called.
UnsupportedA command issued was not supported by this object. Possibly a plugin without certain callbacks specified.
UpdateAn error caused by System::update occured.
VersionThe version number of this file format is not supported.
EventFailedAn Event failed to be retrieved, most likely due to 'just fail' being specified as the max playbacks behavior.
EventInfoOnlyCan't execute this command on an EVENT_INFOONLY event.
EventInternalAn error occured that wasn't supposed to. See debug log for reason.
EventMaxStreamsEvent failed because 'Max streams' was hit when FMOD_EVENT_INIT_FAIL_ON_MAXSTREAMS was specified.
EventMismatchFSB mismatches the FEV it was compiled with, the stream/sample mode it was meant to be created with was different, or the FEV was built for a different platform.
EventNameConflictA category with the same name already exists.
EventNotFoundThe requested event, event group, event category or event property could not be found.
EventNeedsSimpleTried to call a function on a complex event that's only supported by simple events.
EventGuidConflictAn event with the same GUID already exists.
EventAlreadyLoadedThe specified project or bank has already been loaded. Having multiple copies of the same project loaded simultaneously is forbidden.
MusicUninitializedMusic system is not initialized probably because no music data is loaded.
MusicNotFoundThe requested music entity could not be found.
MusicNoCallbackThe music callback is required, but it has not been set.
ResultForceIntMakes sure this enum is signed 32bit.
Trait Implementations
impl Copy for Result[src]
impl Debug for Result[src]
impl PartialOrd for Result[src]
fn partial_cmp(&self, __arg_0: &Result) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialEq for Result[src]
fn eq(&self, __arg_0: &Result) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Clone for Result[src]
fn clone(&self) -> Result
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more