Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
  • Nov 02 09:31
    Acegrp edited #852
  • Nov 02 09:25
    Acegrp opened #852
  • Oct 29 11:31
    YJ15 edited #602
  • Oct 29 11:29
    YJ15 commented #602
  • Oct 29 11:29
    YJ15 commented #602
  • Oct 29 11:27
    YJ15 commented #602
Mark Heath
@markheath
@lukeoftheaura not really I'm afraid. A very large part of NAudio is interop wrappers for Windows APIs, which wouldn't work on linux. There are some parts of NAudio that could be used, but probably would only be useful for WAV file manipulation.
Freefall63
@Freefall63
Hi Mark, I think we should give the AudioFileReader a Pitch property as many people could need. What do you think? We could easily do that with the SMBPitchShiftingSampleProvider.
Mark Heath
@markheath
maybe an idea for the future, once we are sure it performs well and doesn't result in any dramatic unexpected volume gains. Would be good to write an article about pitch shifting options for the docs though
nihilazo
@nihilazo
ok, do you know a .NET audio library that works on linux?
jepperaskdk
@jepperaskdk
Hi. I'm new to NAudio (and .NET) - but I was wondering if anyone succesfully used it with UWP? - and if so, could share how to set it up? I tried referencing the .dll and using the NuGet-package, but for some reason it doesn't recognize some classes. Thanks in advance.
jepperaskdk
@jepperaskdk
Nevermind my last question (switched to WPF). Are there any built-in functionality for playing in-memory audio - like from a byte[]?
jepperaskdk
@jepperaskdk
I'm playing around with the MixingSampleProvider, and I'm just wondering how efficient it is at computing the 'mix' in realtime as opposed to precomputing it? Could it become a bottleneck?
jepperaskdk
@jepperaskdk
My Zoom R-16 interface is sampling with a bit-depth of 24 bit, but the driver is erroneously setting the AsioSampleType to Int32LSB. It works, but the audio is very low (i guess because it is treating the 24 bit as 32 bit) - how can i amplify it up? I tried both bitshifting the int 8 to the left, and using the code from the AsioSampleType.Int24LSB-case (AsioAudioAvailableEventArgs.cs), but it only creates noise.
Salih Karagoz
@salihkaragoz
Hello everyone, My problem is based on mp3 Stream. I want to make stream from my computer microphone to multicast address with mp3 codec. Is this easy task with NAudio ? I have a software that can stream from microphone namely real time but its codec is ulaw. What is your solution about that issue. ? Maybe I am in wrong way to solve this problem. I can make stream with VLC GUI. But I need the own software. I am working with C#. If I want to use the NAudio for codec. Is it possible ? Thanks in advance. Have a nice day.
Salih Karagoz
@salihkaragoz
@markheath Hello :smile:
Julio César Rocha
@JunielKatarn
Hi! Are there plans to publish a NuGet package variant to target .NET Framework 4.5?
Looks like the latest version to support it was 1.5.
Mark Heath
@markheath
@JunielKatarn you can use NAudio 1.8 with .NET 4.5 - it will work absolutely fine
@salihkaragoz NAudio doesn't include any networking help, so you'd need to write your own code for that part. Have a look at the NAudio demo app though - it has a very simple network chat using ulaw, and also shows an MP3 streaming player as well
Salih Karagoz
@salihkaragoz
@markheath thank you so much. I've solved my problem.
Julio César Rocha
@JunielKatarn
@markheath It seems to be a framework targeting issue with the NuGet package (meaning, not a code issue).
I've posted an issue in GitHub with more details for the particular case I found.
The-Little-Cousin
@The-Little-Cousin
Hello I've found NAudio to be very interesting. Is it possible to build an Audio Spectrum Analyzer using NAudio? (think)
Mark Heath
@markheath
@The-Little-Cousin yes, there's a sample in the NAudio WPF demo application in the NAudio repository
JLuis Estrada
@jluisestrada
Hi, I'd just discovered NAudio and looks really well implemented! But I have a question: It is possible to implement a demo app to mix 2 sources and play around with them like a dj set (scratching and mixing)?
Mark Heath
@markheath
@jluisestrada yes, that is exactly the sort of thing you can use NAudio for. I'd recommend looking at the MixingSampleProvider for the mixing. You'd need to implement your own scratching function. You might find the VarispeedSampleProvider I created also comes in handy for this sort of thing https://github.com/naudio/varispeed-sample
JLuis Estrada
@jluisestrada
@markheath Thank you! I'll take a look at it :)
The-Little-Cousin
@The-Little-Cousin
@markheath I must achieve this in C# Win Form and not WPF is that still possible? I just need to get peak values and display the frequency individually where the user can select which is the highest peek from each frequency.
georg-jung
@georg-jung
Is there a simple way/an example, how to detect beats in music? Basically, I want an event fired, everytime there's a beat on my computers stereo mix channel.
The-Little-Cousin
@The-Little-Cousin
@georg-jung I exactly need that to be done in a win-form C#
It should detect beats from different frequency!
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?