Ejemplo n.º 1
0
        /// <summary>Gets a printable string form of the stream's status</summary>
        /// <description>
        ///
        /// </description>
        /// <code>
        /// // Create a file stream object for reading
        /// %fsObject = new FileStreamObject();
        ///
        /// // Open a file for reading
        /// %fsObject.open("./test.txt", "read");
        ///
        /// // Get the status and print it
        /// %status = %fsObject.getStatus();
        /// echo(%status);
        ///
        /// // Always remember to close a file stream when finished
        /// %fsObject.close();
        /// </code>
        /// <returns>String containing status constant, one of the following:
        ///
        ///     OK - Stream is active and no file errors
        ///
        ///     IOError - Something went wrong during read or writing the stream
        ///
        ///     EOS - End of Stream reached (mostly for reads)
        ///
        ///     IllegalCall - An unsupported operation used.  Always w/ accompanied by AssertWarn
        ///
        ///   Closed - Tried to operate on a closed stream (or detached filter)
        ///
        ///     UnknownError - Catch all for an error of some kind
        ///
        ///     Invalid - Entire stream is invalid</returns>
        public string GetStatus()
        {
            InternalUnsafeMethods.GetStatus__Args _args = new InternalUnsafeMethods.GetStatus__Args()
            {
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetStatus()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Ejemplo n.º 2
0
        /// <description>
        /// Get the current playback status.
        /// </description>
        /// <returns>Te current playback status</returns>
        public SFXStatus GetStatus()
        {
            InternalUnsafeMethods.GetStatus__Args _args = new InternalUnsafeMethods.GetStatus__Args()
            {
            };
            int _engineResult = InternalUnsafeMethods.GetStatus()(ObjectPtr, _args);

            return((SFXStatus)_engineResult);
        }