1 Star 0 Fork 0

LDMING / cscore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MS-PL

CSCore Logo

CSCore - .NET Audio Library

Github-Release NuGet-Release Donate Chat on gitter https://gitter.im/cscorelib/Lobby

NuGet-Release

CSCore is a free .NET audio library which is completely written in C#. Although it is still a rather young project, it offers tons of features like playing or capturing audio, en- or decoding many different codecs, effects and much more!

CSCore is based on a very extensible architecture which allows you to make it fit to your needs without any major effort. You can build music players, voice chats, audio recorders and so on! Supported platforms: Windows only, linux and mac experimental (see https://github.com/filoe/cscore/tree/netstandard).

For more details, take a look at the source or the online documentation.

Feel free to download or clone the source code:

https://github.com/filoe/cscore.git

You may prefer to install the CSCore nuget package:

Install-Package CSCore

For FFmpeg support, install the CSCore.Ffmpeg nuget package

Install-Package CSCore.Ffmpeg -Pre

Why CSCore?

  • Highly optimized PERFORMANCE through usage of CLI instructions
  • Designed for newbies and professionals
  • Tons of features
  • Fast support on github and stackoverflow
  • High code coverage through unit tests
  • Licensed under the MS-PL (does not include the CSCore.Ffmpeg project which is licensed under the LGPL)

Supported Features

Currently the following features are implemented:

  • Realtime audio processing
    • Process audio data in realtime
    • Apply any processors in any order you want in realtime
    • Create custom processors (e.g. effects, analyzes, decoders,...)
  • Codecs *1
    • MP3
    • WAVE (PCM, IeeeFloat, GSM, ADPCM,...)
    • FLAC
    • AAC
    • AC3
    • WMA
    • Raw data
    • OGG-Vorbis (through NVorbis)
    • FFmpeg (lots of additional formats, see CSCore.Ffmpeg)
  • FFmpeg support
  • Speaker Output
    • WaveOut
    • DirectSoundOut (realtime streaming)
    • WASAPI (loop- and event-callback + exclusive mode available)
    • XAudio2
  • Recording
    • WaveIn
    • WASAPI (loop- and event-callback + exclusive mode available)
    • WASAPI loopback capture (capture output from soundcard)
  • DSP Algorithms
    • Fastfouriertransform (FFT)
    • Effects (Echo, Compressor, Reverb, Chorus, Gargle, Flanger,...)
    • Resampler
    • Channel-mixing using custom channel-matrices
    • Generic Equalizer
    • ...
  • XAudio2 support
    • XAudio2.7 and XAudio2.8 support
    • 3D Audio support (see X3DAudio sample)
    • Streaming source voice implementation allowing the client to stream any codec, custom effect,... to XAudio2
    • Optimized for games
  • Mediafoundation encoding and decoding
  • DirectX Media Objects Wrapper
  • CoreAudioAPI Wrapper
    • WASAPI
    • Windows Multimedia Devices
    • Windows Audio Session
    • Endpoint Volume,...
  • Multi-Channel support
  • Flexible
    • Configure and customize any parts of CSCore
    • Use low latency values for realtime performance, high latency values for stability
    • Adjust the audio quality
    • Configure custom channel matrices
    • Create custom effects
    • ...
    • Or simply: Make CSCore fit your needs!
  • Tags (ID3v1, ID3v2, FLAC)
  • Sample Winforms Visualizations
  • Optimized performance though the usage of CLI instructions provided by a custom post compiler

*1 Some Codecs are only available on certain platforms. For more details, see Codeplex-Page.

Some projects using already using cscore:

  • Dopamine: An music player which tries to keep listening to music clean and simple.
  • Hurricane: Is a powerful music player written in C# based on CSCore sound library.
  • Sharpex2D: A game engine which allows you to create beautiful 2D games under .NET for Windows and Mono compatible systems
  • Turnt-Ninja: A beat-fighting-ninja-like-get-turnt rhythm game inspired by the wonderful Super Hexagon by Terry Cavanagh.
  • HTLED: A audio visualization displayed on a selfmade 32x16 LED matrix.
  • ...

Samples:

"CSCore - Visualization" Sample:

VIS_SAMPLE

"CSCoreWaveform" Sample:

WAVFRM_SAMPLE

For more samples see Samples

As long as this document is in development, see Codeplex for more details.

## NOTE: ## This license does not apply to the [CSCore.Ffmpeg](https://github.com/filoe/cscore/tree/master/CSCore.Ffmpeg) project! ## Microsoft Public License (Ms-PL) ## Microsoft Public License (Ms-PL) This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. #### 1. Definitions #### The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. A "contribution" is the original software, or any additions or changes to the software. A "contributor" is any person that distributes its contribution under this license. "Licensed patents" are a contributor's patent claims that read directly on its contribution. #### 2. Grant of Rights #### (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. #### 3. Conditions and Limitations #### (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.

简介

https://github.com/filoe/cscore.git 展开 收起
C# 等 2 种语言
MS-PL
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/ldming/cscore.git
git@gitee.com:ldming/cscore.git
ldming
cscore
cscore
master

搜索帮助