New Post: Problem: Saving a Wav-File
Hi, I'm programming an Application which records music from Spotify in C#. There is a timer which checks every few milliseconds if the title of the Spotify window has changed. If it has changed,...
View ArticleNew Post: Problem: Saving a Wav-File
you'll need to dispose your waveFileWriter before you can play it. That's because it needs to set some bytes in the WAV header saying how long the DATA and RIFF chunks are, and it does this when you...
View ArticleNew Post: Problem: Saving a Wav-File
Thats the reason, thank you.For some reason stopRecording() is never called. It won't be difficult to fix that.
View ArticleNew Post: Problem: Saving a Wav-File
There was an recording = true missing in startRecording(), now the files works.But I've got a new Problem: If the file name contains a ":" I get an NotSupportedException. Many titles contain a ":". Is...
View ArticleNew Post: G.727 Support
Hi Mark,I am very thankful for all code and help you provided. Since thursday I am able to play that data flawlessly. So please understand that when we talk about that issue it is not to help me, but...
View ArticleNew Post: asioOut and Serial input
Thank you for that great hint, that solved my problem! And thank you for your fast response!
View ArticleCreated Issue: NullReference exception with CueList [16373]
Second constructor in CueList file is missing the initialization of the cues member."private List<Cue> cues = new List<Cue>();"This produces a null reference exception when trying to use...
View ArticleCreated Issue: Exception on Resampling [16374]
When I using ResamplerDmoStream and selecting Anything except WaveOutput (e.g. WASAPI, DirectSound) I've getting below exception:Unable to cast COM Object 'NAudio.DMO.ResamplerMediaComObject' to...
View ArticleNew Post: How to interpret sound patterns in a Music?
Hi people,I'm new to NAudio, well... more especifically, to Audio programming in general. I already did somethings with NAudio like load a .wav file, read the content of it, plot it like a waveform,...
View ArticleNew Post: Asio Channel offset pairs
Thanks Mark.I finally made some progress on this. I can get the right offset numbers to display in a combobox, but I don't know how to convert that to read what I want it to.Does this look correct?Dim...
View ArticleNew Post: NAudio Audio Playback
Hi, I have to make audio play back in FORM without using User Control, from where you are loading "outputDevicePlugins". You have passed outputDevicePlugins parameter where it calls the user control.
View ArticleNew Post: NAudio Audio Playback
No need to copy that example, as it is intended to show all possible output modes. Just do something like:this.player = new WaveOut();var reader = new...
View ArticleNew Post: How to interpret sound patterns in a Music?
It sounds like you want a beat detection algorithm. NAudio does not come with one, but there are some other libraries that can do this. Unfortunately, you're unlikely to find something for .NET, so...
View ArticleNew Post: Need help with exception thrown by NAudio
Well, I really put all the NAudio-related code in my original post. I admit I simply tried to follow the tutorials listed here (which point to a blog). Not sure what "callback model" I use, but, the...
View ArticleNew Post: Asio Channel offset pairs
sure, if your combo box only needs to display a number. You'd normally use a String.Format to do something like String.Format("Channels {0}-{1}", i, i+1)then use the selected combo box index to work...
View ArticleNew Post: Need help with exception thrown by NAudio
No, your original post is missing where where you create waveInStream. Somewhere in your code there should be a line that starts with waveInStream =what is on the other side of the equals statement?try...
View ArticleNew Post: Need help with exception thrown by NAudio
Ah, of course, you're right. I had that in the declarations: WaveIn waveInStream = new WaveIn(); I can change that, is there anything else I'd need to change? Again, if this is already documented...
View ArticleNew Post: Need help with exception thrown by NAudio
No, just change that and see if it helps. Only thing to note is that now the DataAvailable event will be coming in on a background thread, so don't try to write to the GUI without doing a BeginInvoke...
View ArticleNew Post: Best strategy to avoid gaps in playing MP3s
Great API! I am having 2 small problems, I get gaps when the WPF gui I created does a big visual tree rebuild on changing tabs. Once the tab is built the problem goes away. The second problem may be...
View Article