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

New Post: Playback plays at 50% speed with AAC files

ioctlLR wrote: Not to pick nits, but I think the "PreferMediaFoundation" option would be better suited to a static property... My chi doesn't like it as a constructor parm. :-) Seriously, I can't...

View Article


New Post: Playback plays at 50% speed with AAC files

I'm a bit confused as to all this interface and abstract data transfer/direction. AacFileReader.cs : WaveStream to MfAacFrameDecompressor.cs : MediaFoundationTransform, IAacFrameDecompressor to...

View Article


New Post: naudio seekbar

Hi, I just starting to use naudio. I currently creating a seekbar that can seek to any position of the song I want using C#. It is something like MP3 Player function. I have successfully load the song...

View Article

New Post: naudio seekbar

Try this:TrackPosition.Minimum = 0; TrackPosition.Maximum = (mainOutputStream.TotalTime.TotalSeconds; TrackPosition.Value = (mainOutputStream.CurrentTime.TotalSeconds; mainOutputStream.Position =...

View Article

New Post: naudio seekbar

Hi K24A3, thx for replying. I have tried your method. The song start over again when I click the seekbar and the seekbar still cant run and cant seek the song. If you have other method you can share it...

View Article


New Post: naudio seekbar

Are you using Forms or WPF? If WPF, you can Bind the trackbar to the Position property. If you are using forms, you need to use a Timer and call mainOutputStream.CurrentTime to update the trackbar...

View Article

New Post: naudio seekbar

Hi K24A3, thx for the help!! I required a timer. Thx for telling me. My seekbar run perfectly after I added in a timer. Thx for the help. TQ

View Article

New Post: why divide by 32768f

I found this code online and I have been using it, but I do not know why you have to divide by 32768f. and why do you have to make it a short ? I want my to be a double to that is why I added...

View Article


New Post: Playback plays at 50% speed with AAC files

I submitted a patch to fix the half speed aac playback in MediaFoundationReader.cs, basically I check for SBR in the extra codec data within the AAC WaveFormatEx MFReader provides and double the sample...

View Article


New Post: why divide by 32768f

To get an IEEE float sample from a 16bit PCM sample you need to divide it by 32768. That's just the way it is. Have a look at the NAudio source, Wave16ToFloatProvider.cs show you how it's done.

View Article

New Post: why divide by 32768f

ok I change my code to this : for (int index = 0; index < 32768; index += 2) { buffer1[tempint] = ((buffer[index + 1] << 8) | buffer[index + 0]); tempint++; } because I want a double that...

View Article

New Post: How to get preferred sample rate from the soundcard

Hi! My problem is that I want to know the preferred sample rate for the soundcard (on Windows 8, in a Windows Store app). I'm a NAudio newbie, so please bear with me - I have searched the net and the...

View Article

New Post: mixing audio received through serial port with a local audio file

Dear Sir, I am getting audio file stream (as variable sized chunks per time eg 2000 bytes). I am saving this file to filewriter class Private Mywriter As WaveFileWriter and into the dataReceived event...

View Article


New Post: why divide by 32768f

What is buffer1 used for? I can't see why you would need a double for a sample, it should be either a 16bit int sample or a floating point sample. 16bit int sample ranges from -32768 to 32768 float...

View Article

New Post: multiple USB microphone recordng

Hello, I wrote the code to get the mic recording from 3 USB microphones using 3 instances of WaveInEvent. It would be ideal if I can get all signals from multiple microphones "at the same time" with no...

View Article


New Post: increase volumne of PCM file into byte array

Dear Experts, I have a PCM file Byte array , 16 bits , 8KHz sample rate , signed , Mono. I need to increase the volume of this data eg by 3 times current volume. My approach is : 1- convert this byte...

View Article

New Post: API Documentation...?

Hi I'm struggling with my c# implementation which uses the NAudio library Is there API documentation available? Would be easier to understand the classes... Ta

View Article


New Post: increase volumne of PCM file into byte array

Your multiplier in step 2 is wrong... You'll want to calculate a 4.5 decibel increase to come up with the correct one. You only have to calculate it once. Try looking on $SEARCH_ENGINE for "PCM...

View Article

New Post: NAudio Audio Playback

markheath wrote: set the DeviceNumber property of WaveOut. WaveOut doesn't appear to have DeviceNumber as a property...?

View Article

New Post: NAudio Audio Playback

Well it does.

View Article
Browsing all 5831 articles
Browse latest View live


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