草庐IT

audio_context

全部标签

【初学音频】Android的Audio系统之AudioTrack

目录前言  1.AudioTrack2.用例介绍2.1过程2.2数据加载模式2.3音频流的类型2.4Buffer分配和Frame的概念3.AudioTrack(Java空间)分析3.1AudioTrack的构造3.2AudioTrackJniStorage分析3.2.1 共享内存介绍3.2.2MemoryHeapBase和MemoryBase类介绍3.2.3play和write的分析3.2.4release的分析3.2.5AudioTrack(Java空间)的分析总结4.AudioTrack(Native空间)分析4.1 newAudioTrack和set分析4.1.1 IAudioTrack

c# - 这个 Ambient Context 怎么会变成 null 呢?

谁能帮我解释一下TimeProvider.Current如何在下面的类中变为null?publicabstractclassTimeProvider{privatestaticTimeProvidercurrent=DefaultTimeProvider.Instance;publicstaticTimeProviderCurrent{get{returnTimeProvider.current;}set{if(value==null){thrownewArgumentNullException("value");}TimeProvider.current=value;}}public

c# - 扩展 ASP.NET 身份角色 : IdentityRole is not part of the model for the current context

我正在尝试在我的MVC5应用程序中使用新的ASP.NETIdentity,特别是我正在尝试将ASP.NETIdentity集成到现有数据库中。我已经阅读了有关DBFirst和ASP.NETIdentity的SO问题/答案,并且遵循了所有建议我仍然无法向我的数据库添加角色,尽管我在添加用户时没有问题。这是我的代码:varcontext=newPayrollDBEntities();varroleManager=newRoleManager(newRoleStore(context));boolroleExists=roleManager.RoleExists(roleDto.Name);

C# Audio - 如何时间拉伸(stretch)(不同的节奏,相同的音调)

我正在尝试用C#(VS2008)制作一个winform应用程序,它可以加载mp3(其他格式也不错,但至少是mp3)并且能够在不影响音调的情况下调整播放速度(速度)。我真的不需要任何其他音频效果。我尝试使用DirectShow,但它似乎不提供时间拉伸(stretch)功能。我能够合并irrklang但这似乎也没有时间拉伸(stretch)能力。所以现在我转到了SoundTouch.这当然有能力,但我不清楚如何在C#中实现。几天后,我所完成的就是在SoundTouchDLL上使用DLLImport,并且能够成功检索版本号。在这一点上,我什至不确定我是否可以用SoundTouch做我想做的事

c# - The non-generic method cannot be used with type arguments in this context 是什么意思?

我有以下类和方法:publicclassUserManager:IDisposablewhereTUser:class,global::Microsoft.AspNet.Identity.IUserwhereTKey:global::System.IEquatable{publicvirtualTaskFindByIdAsync(TKeyuserId);和:privateApplicationUserManager_userManager;publicApplicationUserManagerUserManager{get{return_userManager??Request.Ge

c# - "This application can only run in the context of an app container."- Visual Studio 2015 开发新功能

我有点绝望。几个小时以来,我一直在努力解决以下问题。我开发了一个应用程序,我现在尝试使用VisualStudio2015的安装向导扩展来安装它。一切都在构建或(没有错误)但是当我打开应用程序时它突出显示它只能在应用程序容器的上下文中打开。那是什么意思?任何建议将不胜感激!该应用正在使用SQlite数据库。这可能与依赖关系有关吗?如果是这样,我该如何解决这个问题?更新:#Culture="en-US"ConvertFrom-StringData@'###PSLOCPromptYesString=&YesPromptNoString=&NoBundleFound=Foundbundle:{

c# - "Inspecting the state of an object in the debuggee of type System.Reflection.MethodBase is not supported in this context"

我不知道这个错误是什么意思。我使用的是VisualStudioforMac7.5.0社区版。我在带有ASP.NETCore的EntityFramework中使用延迟加载。publicpartialclassAdminUser{publicAdminUser(){RoleAssign=newHashSet();}publicGuidUserId{get;set;}publicstringFirstName{get;set;}publicstringLastName{get;set;}publicstringEmail{get;set;}publicstringUserName{get;s

c# - 如何使用 Principal Context 连接到 Active Directory?

我在这方面已经有一段时间了,而且我总是得到:System.DirectoryServices.AccountManagement.PrincipalServerDownException我认为这意味着我的连接设置(连接字符串)是错误的。当我在ActiveDirectory所在的计算机上的cmd上写入“dsqueryserver”时,我得到:"CN=DCESTAGIO,CN=SERVERS,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=estagioit,DC=local"我已尝试通过以下方式进行以下连接:1:Princi

c# - 重定向 'Response is not available in this context' 时出错

我正在使用以下代码将用户重定向到一个页面。Session["USERDATA"]=user;if(roleName.Equals("Zerker",StringComparison.CurrentCulture))Response.Redirect("~/Account/Dashboard.aspx");但这导致了错误。Responseisnotavailableinthiscontext.我该怎么办? 最佳答案 我认为您正在自己的类(class)中使用响应对象。该对象在那里不可用。尝试使用HttpContext.Current.R

c# - EF5 ObjectContext : How to replace IQueryable<T>. 包含(路径)与 context.T.Attach()

我在相对较大且复杂的数据模型上使用EntityFramework5和ObjectContext。我想解决将多个IQueryable.Include(Path)链接到急切加载相关对象时生成的大查询。例如,我正在做这样的事情:varqueryPe=context.Person.Where(p=>p.Id==110).Include(@"AA");queryPe=queryPe.Include(@"BB.CC.DD");queryPe=queryPe.Include(@"EE.FF");它可以通过使用字符串数组并在运行时在foreach循环中链接每个图来使其通用。相反,我想做这样的事情:Pe