コード例 #1
0
    /// <summary>
    /// Creates a lip-sync context.
    /// </summary>
    /// <returns>error code</returns>
    /// <param name="context">Context.</param>
    /// <param name="provider">Provider.</param>
    public static Result CreateContext(ref uint context, ContextProviders provider)
    {
        if (IsInitialized() != Result.Success && Initialize() != Result.Success)
        {
            return(Result.CannotCreateContext);
        }

        return((Result)ovrLipSyncDll_CreateContext(ref context, provider));
    }
コード例 #2
0
    /// <summary>
    /// Creates a lip-sync context.
    /// </summary>
    /// <returns>error code</returns>
    /// <param name="context">Context.</param>
    /// <param name="provider">Provider.</param>
    /// <param name="enableAcceleration">Enable DSP Acceleration.</param>
    public static Result CreateContext(
        ref uint context,
        ContextProviders provider,
        int sampleRate          = 0,
        bool enableAcceleration = false)
    {
        if (IsInitialized() != Result.Success && Initialize() != Result.Success)
        {
            return(Result.CannotCreateContext);
        }

        return((Result)ovrLipSyncDll_CreateContextEx(ref context, provider, sampleRate, enableAcceleration));
    }
コード例 #3
0
        protected DevKitAspect(string url, WMLSVersion version, TestContext context)
        {
            ConnectionUrl = url;
            Container     = ContainerFactory.Create();
            Container.BuildUp(this);
            ContextProviders.ForEach(x => x.Configure(this, context));

            Store           = new WitsmlStore();
            Store.Container = Container;
            Container.BuildUp(Store);

            Proxy          = new WITSMLWebServiceConnection(ConnectionUrl, version);
            Proxy.Timeout *= 5;

            Template = new DataObjectTemplate();
        }
コード例 #4
0
 private static extern int ovrLipSyncDll_CreateContextWithModelFile(ref uint context,
                                                                    ContextProviders provider,
                                                                    string modelPath,
                                                                    int sampleRate,
                                                                    bool enableAcceleration);
コード例 #5
0
 private static extern int ovrLipSyncDll_CreateContextEx(ref uint context,
                                                         ContextProviders provider,
                                                         int sampleRate,
                                                         bool enableAcceleration);
コード例 #6
0
 private static extern int ovrLipSyncDll_CreateContext(ref uint context,
                                                       ContextProviders provider);