/// <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)); }
/// <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)); }
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(); }
private static extern int ovrLipSyncDll_CreateContextWithModelFile(ref uint context, ContextProviders provider, string modelPath, int sampleRate, bool enableAcceleration);
private static extern int ovrLipSyncDll_CreateContextEx(ref uint context, ContextProviders provider, int sampleRate, bool enableAcceleration);
private static extern int ovrLipSyncDll_CreateContext(ref uint context, ContextProviders provider);