带保护文件的C#音频播放器 [英] C# audio player with protect file

查看:117
本文介绍了带保护文件的C#音频播放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些mp3收藏,我希望能够在CD / DVD上播放

i使用c#

编写音频播放器,但我不知道如何保护我的音频文件

有没有办法加密音频文件?

最好的办法是保护这个音频文件不被非法使用?



我尝试了什么:


$ B $使用System.Media命名空间中的SoundPlayer类播放声音

但我需要保护文件

i have some mp3 collection and i want to able play it on CD/DVD
i write audio player using c#
but i dont know how to protect my audio file
is there any way to encrypt audio files ??
what is best way to do it to protect this audio file from illegal use?

What I have tried:

i play sound using SoundPlayer class in System.Media namespace
but i need to way to protect files

推荐答案

你没有一个简单的方法来做到这一点。为了使用内置播放器,数据必须是未加密的。



现在,这并不是说这是不可能的。你只需要写一个音频过滤器驱动程序 [ ^ ](在C中)即时解密流。过滤器驱动程序将位于用于播放流的过滤器图形中。



哦,您还必须编写代码来将流加密到文件中。 />


这是一项琐碎任务的FAR,很难得到样本。
You don't have a simple method to do that. In order to use the built in player, the data has to be unencrypted.

Now, that's not to say it's impossible. You just have to write an audio filter driver[^] (in C) that decrypts the stream on-the-fly. The filter driver would sit in the filter graph used to play the stream.

Oh, and you also have to write code to encrypt the stream into a file.

This is FAR from a trivial task and samples are hard to come by.


这篇关于带保护文件的C#音频播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆