Exemplo n.º 1
0
        public bool load(sidplayfp.SidTune tune)
        {
            m_tune = tune;

            if (tune != null)
            {
                // Must re-configure on fly for stereo support!
                if (!config(ref m_cfg, true))
                {
                    // Failed configuration with new tune, reject it
                    m_tune = null;
                    return(false);
                }
            }
            return(true);
        }
Exemplo n.º 2
0
        public Player()
        {
            // Set default settings for system
            m_tune        = null;
            m_errorString = ERR_NA;
            m_isPlaying   = state_t.STOPPED;
            //# ifdef PC64_TESTSUITE
            m_c64.setTestEnv(this);
            //#endif

            m_c64.setRoms(null, null, null);
            config(ref m_cfg);

            // Get component credits
            m_info.m_credits.Add(m_c64.cpuCredits());
            m_info.m_credits.Add(m_c64.ciaCredits());
            m_info.m_credits.Add(m_c64.vicCredits());
        }
Exemplo n.º 3
0
 public bool load(SidTune tune)
 {
     return(sidplayer.load(tune));
 }
Exemplo n.º 4
0
 private SidTune opeEquel(ref SidTune s)
 {
     return(null);
 }
Exemplo n.º 5
0
        // ----------------------------------------------------------------

        /**
         * Load a sidtune from a file.
         *
         * To retrieve data from standard input pass in filename "-".
         * If you want to override the default filename extensions use this
         * contructor. Please note, that if the specified "fileName"
         * does exist and the loader is able to determine its file format,
         * this function does not try to append any file name extension.
         * See "SidTune.cpp" for the default list of file name extensions.
         * You can specify "fileName = 0", if you do not want to
         * load a sidtune. You can later load one with open().
         *
         * @param fileName
         * @param fileNameExt
         * @param separatorIsSlash
         */
        //public SidTune(string fileName, string[] fileNameExt = null, bool separatorIsSlash = false) { }

        /**
         * Load a single-file sidtune from a memory buffer.
         * Currently supported: PSID and MUS formats.
         *
         * @param oneFileFormatSidtune the buffer that contains song data
         * @param sidtuneLength length of the buffer
         */
        //public SidTune(byte[] oneFileFormatSidtune, UInt32 sidtuneLength) { }

        //~SidTune() { }

        /**
         * The SidTune class does not copy the list of file name extensions,
         * so make sure you keep it. If the provided pointer is 0, the
         * default list will be activated. This is a static list which
         * is used by all SidTune objects.
         *
         * @param fileNameExt
         */
        //public void setFileNameExtensions(string[] fileNameExt) { }

        /**
         * Load a sidtune into an existing object from a file.
         *
         * @param fileName
         * @param separatorIsSlash
         */
        //public void load(string fileName, bool separatorIsSlash = false) { }

        /**
         * Load a sidtune into an existing object from a buffer.
         *
         * @param sourceBuffer the buffer that contains song data
         * @param bufferLen length of the buffer
         */
        //public void read(byte[] sourceBuffer, UInt32 bufferLen) { }

        /**
         * Select sub-song.
         *
         * @param songNum the selected song (0 = default starting song)
         * @return active song number, 0 if no tune is loaded.
         */
        //public UInt32 selectSong(UInt32 songNum) { return 0; }

        /**
         * Retrieve current active sub-song specific information.
         *
         * @return a pointer to #SidTuneInfo, 0 if no tune is loaded. The pointer must not be deleted.
         */
        //public SidTuneInfo getInfo() { return null; }

        /**
         * Select sub-song and retrieve information.
         *
         * @param songNum the selected song (0 = default starting song)
         * @return a pointer to #SidTuneInfo, 0 if no tune is loaded. The pointer must not be deleted.
         */
        //public SidTuneInfo getInfo(UInt32 songNum) { return null; }

        /**
         * Determine current state of object.
         * Upon error condition use #statusString to get a descriptive
         * text string.
         *
         * @return current state (true = okay, false = error)
         */
        //public bool getStatus() { return false; }

        /**
         * Error/status message of last operation.
         */
        //public string statusString() { return null; }

        /**
         * Copy sidtune into C64 memory (64 KB).
         */
        //public bool placeSidTuneInC64mem(ref libsidplayfp.sidmemory mem) { return false; }

        /**
         * Calculates the MD5 hash of the tune.
         * Not providing an md5 buffer will cause the internal one to be used.
         * If provided, buffer must be MD5_LENGTH + 1
         *
         * @return a pointer to the buffer containing the md5 string, 0 if no tune is loaded.
         */
        //public string createMD5(byte[] md5 = null) { return null; }

        //public byte[] c64Data() { return null; }

        // prevent copying
        private SidTune(ref SidTune s)
        {
        }