Thanks Mark, setting that to False and setting the Latency to 2 stops it from using excessive CPU :)
↧
New Post: WasapiOut High CPU Usage on Windows 10
↧
New Post: WasapiOut High CPU Usage on Windows 10
Great. I've checked in a fix at GitHub that hopefully will resolve the high CPU issue in event mode
↧
↧
New Post: Null error on Stop()
are you calling Stop after disposing WaveOut?
↧
New Post: WinRT playback recorded microphone audio
sounds like a format issue. Can you recognize your voice at all? What happens if you just record at the default WasapiCapture wave format (i.e. don't set it explicitly)?
↧
New Post: Changing frequency/pitchshifting
NAudio does not include a pitch shifting algorithm directly, but it does give you direct access to the samples so you can implement a pitch shifting algorithm yourself. One I use quite often is SuperPitch. You can see an example of using that here
↧
↧
New Post: Changing frequency/pitchshifting
Thanks for the response Mark, appreciate it.
Am I ok to use that code, or a derivative of it, in a commercial application?
Am I ok to use that code, or a derivative of it, in a commercial application?
↧
New Post: Changing frequency/pitchshifting
well it originally came from an open source effect in REAPER. I think you are OK, but I can't say for sure since I just ported it. Another alternative I've used in the past is to wrap the soundtouch library, but I've yet to get round to open sourcing my work on that front.
↧
New Post: C# 8 BIT WAV (non RIFF) to MP3 conversion makes 0 bit MP3 - HELP!
↧
New Post: Trouble With Speed Optimization. Any Advice?
WasapiOut
already resamples for you (as does WaveOutEvent
), so there is no need for all this code.↧
↧
New Post: Mute Left Or Right Channel While Playing Audio
I'd usually do this by creating an
ISampleProvider
implementation similar to VolumeSampleProvider
but with separate left/right multipliers. Hopefully I can add something like this to NAudio soon.↧
New Post: C# 8 BIT WAV (non RIFF) to MP3 conversion makes 0 bit MP3 - HELP!
Additional information: Unable to load DLL 'libmp3lame.32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I have the lasted release of the LIB installed and checked it again with NuGet>
Still creates a mp3 file that is zero size and corrupt.
Thomas
I have the lasted release of the LIB installed and checked it again with NuGet>
Still creates a mp3 file that is zero size and corrupt.
Thomas
↧
New Post: C# 8 BIT WAV (non RIFF) to MP3 conversion makes 0 bit MP3 - HELP!
I'm afraid I cannot help you with this problem as it relates to a separate library. The Dll not found exception should be a clue though. If you don't have that DLL in your path, you won;t be able to use LameMp3FileWriter.
↧
New Post: Null error on Stop()
Hi!.
Probably that was the case... i figured out some hours later, sorry.
Probably that was the case... i figured out some hours later, sorry.
↧
↧
New Post: Glitch (click noise) on Stop() or Dispose().
Hi.
I found that every time i call Stop() or Dispose() i can hear a noticeable click. As the glitch happens right there, i can't do a FadeIn or FadeOut to solve the little artifacts of the stop or play. I've tried with WaveOut, Wasapi, and DirectSound.
A very simple player:
I thought it was only my system, but the app on other computers does the same.
Thank you.
I found that every time i call Stop() or Dispose() i can hear a noticeable click. As the glitch happens right there, i can't do a FadeIn or FadeOut to solve the little artifacts of the stop or play. I've tried with WaveOut, Wasapi, and DirectSound.
A very simple player:
reader = new AudioFileReader("test.mp3);
waveOut = new WaveOut();
waveOut.DeviceNumber = 0;
waveOut.NumberOfBuffers = 2;
waveOut.DesiredLatency = 150;
waveOut.Init(reader)
waveOut.Play()
Later, right when i call waveOut.Stop(), the click happens.I thought it was only my system, but the app on other computers does the same.
Thank you.
↧
New Post: Glitch (click noise) on Stop() or Dispose().
Yes, abruptly stopping audio will often cause a click. To get rid of this, begin a fade-out instead of stopping. Then, once the fadeout has completed, call stop.
↧
New Post: Decoding *.spx files for playback
Come on, no suggestions? Any advice would be better than nothing. Anyway I want to do it the managed way.
↧
New Post: Decoding *.spx files for playback
I'm afraid I have no knowledge at all of the .spx file format. I'd recommend asking over at the NSpeex project for help.
↧
↧
New Post: Decoding *.spx files for playback
Ok thanks. About our discussion of the *.flac format and the rumors for windows 10 flac support I found this interesting site:
URL
So the rumors are correct. Just for your information ;)
URL
So the rumors are correct. Just for your information ;)
↧
New Post: AudioMeterInformation PeakValues problem
Hi all,
I'm having a strange problem where the PeakValues are only being populated when the windows sound properties are open and the recording tab is selected. If either of these conditions aren't met, the values just don't update.
I'm using a timer (1ms) to poll AudioMeterInformation.PeakValues as such:
Thanks, Dave
I'm having a strange problem where the PeakValues are only being populated when the windows sound properties are open and the recording tab is selected. If either of these conditions aren't met, the values just don't update.
I'm using a timer (1ms) to poll AudioMeterInformation.PeakValues as such:
MMDeviceEnumerator devEnum = new MMDeviceEnumerator();
MMDevice DefaultDevice = devEnum.GetDevice(Config.GetString("VUDevice"));
In timer_tick:volLeft = DefaultDevice.AudioMeterInformation.PeakValues[0] * 100;
volRight = DefaultDevice.AudioMeterInformation.PeakValues[1] * 100;
Any ideas? Is there something basic I'm missing?Thanks, Dave
↧
New Post: MIDI File Read Note Length?
1:1:0 0 NoteOn Ch: 1 C6 Vel:87 Len: 167
1:1:240 240 NoteOn Ch: 1 C6 Vel:69 Len: 199
I was able to read the above raw MIDI using nAudio in my C# program. I don't understand what "Len" means however. If that is the NoteLength property, does that mean the first note is played for 167 microseconds? Does that mean it is some tempo value divided by 167? Does it mean that it is played for 240 microseconds since the next note has a "240" as its marker?
I am trying to understand how to calculate NoteLength so I can feed data to another program that works in quarter notes, with other note lengths being a multiple or divisor of a quarter.
Thanks.
1:1:240 240 NoteOn Ch: 1 C6 Vel:69 Len: 199
I was able to read the above raw MIDI using nAudio in my C# program. I don't understand what "Len" means however. If that is the NoteLength property, does that mean the first note is played for 167 microseconds? Does that mean it is some tempo value divided by 167? Does it mean that it is played for 240 microseconds since the next note has a "240" as its marker?
I am trying to understand how to calculate NoteLength so I can feed data to another program that works in quarter notes, with other note lengths being a multiple or divisor of a quarter.
Thanks.
↧