Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 08 09:54
    ameyasd007 opened #857
  • Dec 08 02:13
    haohuancheng commented #821
  • Dec 07 03:48
    roxxel opened #856
  • Dec 06 08:13
    geraldwang-spec commented #443
  • Dec 03 12:17
    curia-damiano opened #855
  • Nov 30 08:51
    DennisAkaXIT commented #591
  • Nov 26 08:58
    nowayout opened #854
  • Nov 14 15:33
    DennisAkaXIT commented #591
  • Nov 14 12:22
    strawhat2010 commented #645
  • Nov 14 12:02
    strawhat2010 commented #645
  • Nov 14 08:47
    strawhat2010 commented #645
  • Nov 09 12:58
    greg-richard edited #853
  • Nov 09 12:37
    greg-richard opened #853
  • Nov 03 21:00
    markheath commented #378
  • Nov 03 20:42
    MichaelRW commented #378
  • Nov 03 20:00
    markheath commented #378
  • Nov 03 17:57
    MichaelRW commented #378
  • Nov 03 12:06
    Acegrp closed #852
  • Nov 03 09:22
    Acegrp commented #852
  • Nov 03 03:08
    YJ15 commented #602
Mark Heath
@markheath
I'm afraid I haven't created a beat detection algorithm - I'd recommend looking on the music DSP forums at KVR to see if there is one you could use
And there is no problem using winforms - just that the sample I did for FFT uses WPF for visualization. For winforms you'd need to write your own GDI rendering code
Freefall63
@Freefall63
Hey guys, I´ve enhanced my Stereo Waveform Painter Winforms control and I really like the result. I´ve upped a picture here: http://imgur.com/a/pB2ah
What do you think, should it become part of NAudio?
@georg-jung sountouch provides a beatsperminute calculation class
@The-Little-Cousin a spectrum analyser is definately possible with NAudio
Mark Heath
@markheath
very nice. I'm avoiding putting more UI components into the core NAudio, as not every application is winforms, but it would be good to make a library of UI components to hold things like this.
Freefall63
@Freefall63
Hmm, perhaps I gonna create an UI library for NAudio. Other question, is it possible to read Speex file from a path with NSpeex? I´ve just seen implementations that compress or decompress raw data with NSpeex.
Kelly Elton
@kellyelton
So how does the build/release process work? I'm trying to investigate #176
Kelly Elton
@kellyelton
Nevermind. Looks like I figured it out. Thanks.
Shimmy
@weitzhandler
Hi everyone!
Is NAudio capable of microtonal pitch-shifting? I have an old recording I want to add accompaniments to, and I'd like to fix its pitch before.
Mark Heath
@markheath
@weitzhandler you can do that with the soundtouch library using the technique I discuss here: http://markheath.net/post/varispeed-naudio-soundtouch
Shimmy
@weitzhandler
Thank you Mark!
Ayush Nigam
@ayushnigamsworld
Hi.. I am new to using NAudio. I saw a tutorial on youtube on using it. It is playing mp3 perfectly but giving an Exception when playing .wav file. The exception is [An unhandled exception of type 'System.ApplicationException' occurred in NAudio.dll. Additional information: Only PCM supported]. It is coming on the line where WaveChannel32 object is initialized using WaveFileReader object.
Any help is highly appreciated.
Mark Heath
@markheath
WaveChannel32 expects PCM 16 bit input. So check the WaveFormat property of the WaveFileReader class. Also, sounds like that tutorial is quite old. AudioFileReader may be a better choice replacing both WaveFileReader and WaveChannel32
Ayush Nigam
@ayushnigamsworld
@markheath Can you suggest a better tutorial please.. Thanks for your efforts.
Mark Heath
@markheath
If you have Pluralsight access then I recommend watching my Pluralsight course. I also have about 100 articles on my blog about NAudio
Ayush Nigam
@ayushnigamsworld
Thanks. @markheath
luismp28
@luismp28
Hi I posted this on the Naudio/vorbis gitter but since it seems that only few people still read it I'm also posting it here , I'm having a problem with VorbisWaveReader, I have an ogg file and I confirmed several times that it's in fact an ogg file, but for some reason when i use VorbisWaveReader it throws me "could not determine container type"....anyone knows what could be happening? the project compiles Ok and doesnt give any errors. I'm trying to convert the ogg file to a wav file...
ExclusivAtom
@ExclusivAtom
Hey,
i´ve a problem
I play audio files with this solution:"http://naudio.codeplex.com/wikipage?title=MP3"
I want to have a fadein in the next song as soon as the current song is finished. my first thought was with two "IWavePlayers" and two "AudioFileReaders". But then I came across the problem that I can't react to the end of the song at all during the runtime.
Anybody got any ideas?
Piotr Kosiakowski
@sensecona
Hi, I saw in class WaveFormat that format length value is minimum 18. I understand that this is because of additional extraSize field. However, in case of WaveFormatEncoding.Pcm this value is always 0. What is a reason why extraSize field is always added? Should Wave format always have this extra field even if it's not used?
Julio César Rocha
@JunielKatarn
Hey guys. NAudio semi-related question.
Does anyone know if UWP's AudioGraph can play AICF format?
Mark Heath
@markheath
I very much doubt it. It likely can play only the formats that MediaFoundationReader in NAudio supports
Julio César Rocha
@JunielKatarn
Makes sense.
Do you know if AudioGraph has some extension mechanism, so that it could be achieved via codecs?
Swaroop
@swaroopamir
Hi can anyone say How to get microphone device peak values using naudio I tried several snippets nothing worked perfectly?
Eendhoorn
@EendhoornGames_twitter
I'm trying to load a SoundFont but I'm not quite sure how to use it. I have to admit I know very little about the format though. In my case I'd like to get the audio samples for each note, and which segment of the sample is the loopable part. I was able to load a SoundFont just fine but the SampleData field is a byte array, what should I do with that to get the actual audio samples for each note?
Ps. I do have pitch shifting working, I know that the soundfont doesn't have an actual wav for each note, but if I can get the base notes than I can pitch shift those easily.
Johnny-Go
@Johnny-Go
Is it possible to use Naudio with Vorbis to resample and convert .wav files to .ogg files?
ABD
@autorunman
Hello. Please it is possible to record at position with naudio?
Nick
@vwmberry95
@markheath How to write audio at specific position? For example, I want to create an MP3 using two audio files, one that starts at 5 seconds and the other that starts at 10 seconds.
Nick
@vwmberry95
@markheath Never mind, I found the OffsetSampleProvider class.
Cory Smith
@DualBrain
I see that we can use WaveOut in .NET Core 3.1; but WaveIn isn't an option? In other words, can playback but not record... this seems like an oversite. To clarify, I am specifically wanting to build a WinForms application using .NET Core 3.1 targeting Windows so that I can ultimately have a "single file executable" that has a "faster startup time" where I have a reduced chance of some external force (Microsoft) breaking my "stuff" through an update that is out of my control... this is all in addition to simply being part of a continued ecosystem. So clarifying that this has nothing to do with cross-platform development; with that said, that's not to exclude this as a future possibility. ;-)
alibabaei79
@alibabaei79
@markheath How to write "wma" format file with naudio in c# ?
Cory Smith
@DualBrain
For anyone that may have the same problem I mentioned about a month ago... I resolved the problem by wedging the recording bits into my application (which, in the process - as I couldn't help myself, I also converted these to VB; but still relies on the existing NAudio library for everything that I didn't have to "wedge"). Things seem to be working pretty well thusfar.
Mozaffar Rahman
@sebubd10_twitter
@markheath how to use WaveInEvent (BufferMilliseconds, NumberOfBuffers, DataAvailable) for recording UDP - multicast stream? I am creating a desktop app using .net core, MumbleSharp, and Mumble Server, where I can record data from the sound device using WaveInEvent. but I need to send the stream from multicast to mumble server using WaveInEvent.
satya-dell
@satya-dell
Hello All,
How to get my microphone output volume in decibels using NAudio in c#
Norbert Haberl
@nhaberl
Hi, just like to visualize a wav file as chart in a web UI ... How can I read these data points out from the wav file ?
Julio César Rocha
@JunielKatarn
Can someone please confirm if WaveMixerStream32 is now cross-platform?
I know it's in the Core assembly, but will it work in runtime on, say, Android?
Julio César Rocha
@JunielKatarn

Nevermind. I've seen it works.

By the way, if anyone ever needs an Android implementation of IWavePlayer, some dude in GitHub made one:

https://gist.github.com/neilt6/6d07322070470536ea0ba409c343c2a5

Nick
@vwmberry95
what's the best way to work with byte[] instead of files? i can create temp files and use AudioFileReader, but would prefer not to
Nick
@vwmberry95
basically I just need to convert a byte array of MP3 data to a float array for my ISampleProvider
Álvaro Rodríguez
@z3nth10n
Hi, can somebody help me? I'm trying to read the samples from a WAV/MP3 file using AudioFileReader.Read function, resulting in an array of 0, can somebody help me?