自己动手用VC开发WINAMP的音效插件.docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
自己动手用VC开发WINAMP的音效插件

自己动手,用VC开发WINAMP的音效插件 本人应朋友之需要,动手写了一个基于WINAMP2的音效插件:消歌声处理。 相关的开发文档均来自于WINAMP的官方网站,如果你对些感兴趣,可访:/来了解关于插件开发的详细资料, 下面我简单地介绍一下DSP(音效)插件的编写。并给出部分源代码,完整的代码请从这里下载:()。 WINAMP2的插件是一个WIN32的动态链接库,它位于WINAMP的安装目录下的plugins目录里,每个插件都符合一定的命名规则,并有一个指定的导出函数。WINAMP主程序枚举该目录下的这些DLL,来确定你安装了哪些插件。WINAMP的插件有许多种。你打开WINAMP的插件配置就看到了。音效插件是其中的一种。在WINAMP中简称为DSP。该类插件WINAMP规定其命名方式为dsp_*.dll,其中的“*”为你自已定义的一个任意名字。每个DSP插件都导出一个名为“winampDSPGetHeader2”的函数。它返回一个模块头信息结构的地址。WINAMP网站给开发者们提供了一个DSP模块的头文件。对该结构及函数作了定义,该头文件名为dsp.h,内容如下: #ifndef? _WINAMP_DSP_H_ #define? _WINAMP_DSP_H_ #if _MSC_VER 1000 #pragma once #endif // _MSC_VER 1000 // DSP plugin interface // notes: // any window that remains in foreground should optimally pass unused // keystrokes to the parent (winamps) window, so that the user // can still control it. As for storing configuration, // Configuration data should be stored in dll directory\plugin.ini // (look at the vis plugin for configuration code) typedef struct winampDSPModule { ? char *description;??// description ? HWND hwndParent;???// parent window (filled in by calling app) ? HINSTANCE hDllInstance;?// instance handle to this DLL (filled in by calling app) ? void (*Config)(struct winampDSPModule *this_mod);? // configuration dialog (if needed) ? int (*Init)(struct winampDSPModule *this_mod);???? // 0 on success, creates window, etc (if needed) ? // modify waveform samples: returns number of samples to actually write ? // (typically numsamples, but no more than twice numsamples, and no less than half numsamples) ? // numsamples should always be at least 128. should, but Im not sure ? int (*ModifySamples)(struct winampDSPModule *this_mod, short int *samples, int numsamples, int bps, int nch, int srate); ??? ? void (*Quit)(struct winampDSPModule *this_mod);??? // called when unloading ? void *userData; // user data, optional } winampDSPModule; typedef struct { ? int version;?????? // DSP_HDRVER ? char *description; // description of library ? winampDSPModule* (*getModule)(int);?// mod

文档评论(0)

shenlan118 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档