/// <summary>
        /// Initializes a new instance of LibsndfileCommandApi with the <paramref name="api"/> command implementation.
        /// </summary>
        internal LibsndfileCommandApi(ILibsndfileCommandApi api)
        {
            if (api == null)
                throw new ArgumentNullException("api");

            m_Api = api;
        }
Beispiel #2
0
        /// <summary>
        /// Initialize local ILibsndfileApi and ILibsndfileCommandApi instances. 
        /// </summary>
        /// <param name="api">ILibsndfileApi implementation to use.</param>
        /// <param name="commandApi">ILibsndfileCommandApi implementation to use.</param>
        private void Initialize(ILibsndfileApi api, ILibsndfileCommandApi commandApi)
        {
            if (api == null)
                throw new ArgumentNullException("api");
            if (commandApi == null)
                throw new ArgumentNullException("commandApi");

            m_Api = api;
            Commands = new LibsndfileCommandApi(commandApi);
        }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of <c>LibsndfileApi</c> with the <paramref name="api"/> implementation.
 /// </summary>
 /// <param name="api">ILibsndfileApi implementation to use.</param>
 /// <param name="commandApi">ILibsndfileCommandApi implementation to use.</param>
 /// <remarks>
 /// This constructor should only be used for testing when simulating the actual libsndfile library.
 /// </remarks>
 internal LibsndfileApi(ILibsndfileApi api, ILibsndfileCommandApi commandApi)
 {
     Initialize(api, commandApi);
 }