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

New Post: Mixing Example (2 MP3 inputs)

1. create an AudioFileReader for each MP3 file 2. then add them as inputs to MixingSampleProvider (AddMixerInput) 3. Use SampleToWaveProvider or SampleToWaveProvider16 to convert back to an...

View Article


New Post: WaveOutEvent buffers is null

hi, thanks. It is a bit odd - almost as though you are starting to play at the exact instant you shut down? But I will add your fix and update the readme Mark

View Article


Source code checked in, #4ee23975e206

fixing a shutdown issue with WaveOutEvent reported by Brandon Hansen

View Article

New Post: Echo recorded voice

I guess it could be the garbage collector getting in the way. Also, have you tried with WaveInEvent and WaveOutEvent?

View Article

New Post: WaveOut NumberOfBuffers and DesiredLatency

yes, I agree that the DesiredLatency property isn't ideal for those who want exact control over buffer sizes. I don't want to break existing code, but I will have a think about how I can make it easier...

View Article


Source code checked in, #dd6a2d18abd0

fixing issue 16360 with modification suggested by biermeester

View Article

Commented Issue: AudioEndpointVolumeCallback causes AccessViolation [16360]

I noticed that once I read some values from an AudioEndpointVolume, my application would crash when I changed the volume manually afterwards. After some searching, I traced the problem to...

View Article

New Post: System.Drawing and System.Windows.Forms references

yes, I would like to move the WinForms suff out in the future. But it shouldn't stop you using NAudio in a non WinForms context.

View Article


New Post: WaveOutEvent stops playing sound after some hours of playing

that is strange. Is the Read method of the BufferedWaveprovider still being called when the sound stops playing? Did you get a PlaybackStopped event at any point?

View Article


New Post: how to amplify grabbed recorded voice bytes from microphone?

you need to convert the incoming data into samples (use BitConverter.ToInt16 if it is 16 bit). Then you can multiply the sample value. But you need to beware of clipping when doing integer arithmetic,...

View Article

New Post: how to amplify grabbed recorded voice bytes from microphone?

Just wanted to add that perception of loudness of sound is a logarithmic function, and not proportional to the voltage (floats in this case). I remember seeing some DSP code in the latest branch. Is...

View Article

New Post: System.Drawing and System.Windows.Forms references

It's working fine in my non-WinForms project, thanks for commenting on my request ^^

View Article

New Post: Repeated Start/StopRecording does not work

File: WaveInEvent.cs Method: StopRecording() Line: 188 MmException.Try(WaveInterop.waveInStop(waveInHandle), "waveInStop"); Build: naudio_b3a412ad55a8

View Article


New Post: How to use XNA microphone class with NAudio

Hi, I want to know if we can directly use the PCM data that we get using the microphone class inside XNA. Without making the recording with the function wavein thanks in advancec

View Article

New Post: Converting a Naudio-generated Wav file to PCM

Hi,   What is the best way to convert a WAV file created by NAudio (from a MP3 source file) to a PCM file? I need to have a 16Khz 16bit PCM output file. I tried to use  the following piece of code but...

View Article


New Post: Error with Backgroundworker and MIDI

mark can post some example of how do this "If you really want to use a background thread, create just one background thread and let that send events in a loop / read from a queue" I need find way to...

View Article

New Post: how to amplify grabbed recorded voice bytes from microphone?

Hi, thanks for replying, I have this code sample: Int16 int16 = BitConverter.ToInt16(buffer, 0); int16 *= 2; buffer = BitConverter.GetBytes(int16); but not worked ! any help please?

View Article


New Post: Converting a Naudio-generated Wav file to PCM

are you sure that wav header is always 44 bytes long?take a look at the documentation by the way you don t have to remove anything. If you convert the file it will only convert the audio data.

View Article

New Post: how to amplify grabbed recorded voice bytes from microphone?

I had this code:             Int16 int16 = BitConverter.ToInt16(buffer, 0);            int16 *= 2;            buffer = BitConverter.GetBytes(int16); of course it doesnt work, but I check the buffer...

View Article

New Post: Converting a Naudio-generated Wav file to PCM

I think so (I read different documentations on the net). In my case, it works because when I remove the first 44 bytes of my Naudio Wave file, the result is a PCM file containing only the data. The...

View Article
Browsing all 5831 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>