New Post: AudioFileReader position property always returns zero
Hi, I've just upgraded from 1.3 to the latest 1.4 changeset, and have been reworking my app to use the AudioFileReader (thanks for making this, BTW). NAudio is playing beautifully except the...
View ArticleNew Post: AudioFileReader position property always returns zero
The problem seems to be threading related. I'm running NAudio out of a console app (it will ultimately be a service) and I use a .NET timer to periodically check the value of the AudioFileReader...
View ArticleNew Post: Looping one wave file while the other ends
Meanwhile I figured out how to debug: simply add a WaveFileWriter to save the .wav and inspect the waves in Audacity. The cause is easy to see there: it isn't in the mixer but the samples I fed to it.
View ArticleNew Post: recording while playing (synchronisation problem)
I'm using NAudio 1.4 and I want to record a fix duration of microphon input while some audio is playing in the background. The audio plays some signals (metronom clicks) to which user must react (play...
View ArticleNew Post: Documenation of classes in NAudio
Most of the documentation is here http://naudio.codeplex.com/documentation All the public classes and methods have comments explaining how to use them
View ArticleNew Post: MusicSampleProvider
What is the purpose of MusicSampleProvider in the Drum Machine Demo in the latest source code? It is used by PatternSequencer to delay by number of samples but what is the exact idea?
View ArticleCommented Issue: Strong Signed NAudio [16334]
I need the NAudio.dll to be strong signed, because a project I am working.Error Assembly 'NAudio.dll' must be strong signed in order to be marked as a prerequisite.Comments: For now, I suggest build it...
View ArticleNew Post: Looping WAV and length
instead of (bytesRead == 0) you would test (bytesRead == 0 || sourceStream.Position >= endPoint)
View ArticleCommented Issue: WaveFileReader.TryReadFloat does not consider channel count...
Hi,in WaveFileReader.TryReadFloat data is read by Read(value, 0, x), with x, for example, =2 for 16 bits per sample.However, if the wav file is multichannel, say 6 channels, each sample has 12 bytes....
View ArticleNew Post: Audio Popping
to debug problems like this, it is often worth sending your audio to a WAV file with the WavFileWriter. Then you can use an audio editor program to see if the pops are in the audio you are generating...
View ArticleNew Post: Looping WAV and length
well that was pretty easy! :) I will test it out tonight and see how it goes. Thanks.
View ArticleCreated Issue: AddTrack [16336]
I noticed what looks like odd behavior while using the AddTrack() method... I might be misunderstanding how to use it but here is some brief debug code to illustrate the situation:{{MidiEventCollection...
View ArticleEdited Issue: AddTrack [16336]
I noticed what looks like odd behavior while using the AddTrack() method... I might be misunderstanding how to use it but here is some brief debug code to illustrate the situation:{{...
View ArticleNew Post: tracking stream duration
Hello. I am working on a streaming app and I want to track the duration (in seconds) of the amount of the stream that has been played. My streaming source provides the duration (in seconds) at the...
View ArticleNew Post: recording while playing (synchronisation problem)
simplified: When I' recording (via mic) what my speakers are playing I would expect the first non-zero sound samples in the recorded stream to be approx at position 0 (millisec), but not at 50-100...
View ArticleCommented Issue: WaveIn class - DataAvailable is not raised when class is...
I've created own wav recording class using WaveIn, based on example from WavRecording demo. It was working perfectly when i was testing my class in the GUI application.When I moved my code, without any...
View ArticleNew Post: tracking stream duration
once you have converted to PCM, the AverageBytesPerSecond property of the resulting WaveFormat can be used in conjunction with the total number of bytes Read out of the converted stream to keep track...
View ArticleNew Post: Reading Midi Files
NAudio can read MIDI files, and you can find the tempo event and change it. You could even insert other tempo changes into a file. However, I am not quite sure what you mean by changing the tempo in...
View ArticleNew Post: tracking stream duration
Thanks Mark. I went a little more primitive than your suggestion. I am simply tracking the amount of real time that has passed while the WaveOut device is in the play state.
View ArticleNew Post: playing many sounds independently
Hi. In my app I need to play many sounds independently. From reading discussions and examples I am assuming I should use WaveMixerStream32. I have no idea how to connect all elements so they work...
View Article