Quantcast
Channel: NAudio
Browsing all 5831 articles
Browse latest View live
↧

New Post: Loud noise at the beginnig and at at the end of a stream with...

nothing obviously wrong there, although WaveBuffer is overkill - you can just call Write on the WaveFileWriter and pass buffer in. You say you are passing sine providers in, so a beep is exactly what...

View Article


New Post: 24 bit to 16 bit on the fly

use BitConverter.GetBytes to turn a float into a byte array

View Article


New Post: NAudio 1.7-alpha MediaFoundationReader

yes

View Article

New Post: Finding Pattern sound inside another stream

this is an extremely hard problem to solve. You could try using Microsoft's speech recognition API.

View Article

New Post: MidiEvent: Get note and channel ID

Hello, I have two questions:How can I retrieve the note of a MidiEvent? How can I get MidiEvents for a specific channel only? Greetings.

View Article


New Post: Record wav from single channel source

Solved. From ButtonRecord, set the WaveWriter format to mono, then change the WaveIn_DataAvailable as follow:Private Sub WaveIn_DataAvailable(ByVal sender As System.Object, ByVal e As...

View Article

New Post: NAudio and GetPosition() = 105840

Hi, Sorry for my english... I've a problem with play any file *.ogg I using this code: long dl; using (var vor = new NVorbis.NAudioSupport.VorbisWaveReader(@"D:\voice.ogg")) using (var wav = new...

View Article

New Post: NAudio and GetPosition() = 105840

aboczko: Looks like your code is running on the same thread as the UI. Try creating a separate thread to run the code above when running under WPF or WinForms. Also, playback should stop automatically...

View Article


New Post: How to read MIDI notes properly

Hello, I'm trying to read the MIDI notes of one track with 6 channels properly, so I can export it to C++ code which can be read by another device (Arduino). The first few notes sound right, but at...

View Article


New Post: IWaveProvider from bytes array

Hi I need to normalize audio (put volume in [1; -1] interval). So I used code from Naudio demo, added few lines, and got the following:using (var reader = new...

View Article

New Post: Custom sample provider FFT sample capture issue

Block align would be 4 if you have stereo 16 bit samples, or mono 32 bit samples. In both cases an "audio frame" is four bytes, and it wouldn't make sense to ask for a number of bytes that was not a...

View Article

New Post: Analyze Music pulses

You should probably start by looking at the NAudio demo code that draws waveforms. This takes short chunks of audio (e.g. 100ms) and finds the highest and lowest sample values during that time.

View Article

New Post: NAudio and GetPosition() = 105840

Thank you for your answer. Also, playback should stop automatically when the end of the stream is reached, so the position check should not be necessary. I know, but at this moment I want call stop or...

View Article


New Post: How to get frequency from a .wav audio file

I want to get frequency and amplitude from wave file using c#. I tried NAudio and FFT, but result is nothing. I am newbie in the programmer, can you help me please. private void...

View Article

New Post: MidiEvent: Get note and channel ID

Nevermind, I found it out by myself.

View Article


New Post: How to read MIDI notes properly

Nevermind, I found it out by myself.

View Article

New Post: EnumerateTransforms without MFTEnumEx

Is there a way to write the function EnumerateTransforms in MediaFoundation /MediaFoundationHelpers without using MFTEnumEx in MediaFoundation/MediaFoundationInterop?

View Article


New Post: EnumerateTransforms without MFTEnumEx

not that I know of, but there is a way to get at transcoders in the Windows RT API (I'm assuming this is why you want to avoid...

View Article

New Post: NAudio and GetPosition() = 105840

OK, try this:Make vor and wav member variables on your UI class in the codebehindIn your "Play" button's click handler instantiate vor and wav, init wav, add a handler for wav.PlaybackStopped, then...

View Article

Commented Issue: WaveFileChunkReader.ReadWaveHeader assumes that the stream...

I am using this class to read a wave stream but the derived stream class that I am using that contains the wave does not support setting the Postion (CanSeek == false). public void...

View Article
Browsing all 5831 articles
Browse latest View live