Source code checked in, #53c9c7d1dce3
Source code checked in, #2275312efdff
New Post: play from position set in trackbar
Hi, this might be a newbie question but I am banging my head against the wall trying to figure this out..
I have a trackbar and I am playing a song, now I would like to move the trackbar or click in a certain position and have the track play at exactly that point. I have looked around and apparently I use the Mouse_Down events on the trackbar but how do I use the class to play from that same position?
New Post: play from position set in trackbar
There is a Scroll event which you need to handle, not Mouse_Down. Then you can look at the trackbar value. This is what the NAudioDemo app does, so you can look at its source code.
New Post: Windows 8 WinRT Metro Style Support
Mark,
Thanks for the thoughtful reply. I hadn't seen your blog post before. I'll dig into the WinRT project over the next couple of weeks and see if/where I can help.
Todd
Source code checked in, #c950b384fc7a
New Post: When playback ends
Is there a simple way of adding loop utility to wavechannel32 object?
I must use wavechannel32 because I am using pan and volume utilities of wc32.
I have implemented a LoopStream class from waveStream successfully, but I have to use pan and volume properties of wc32.
Which one should I choose in your opinion?
Adding loop (when it lasts, it return to position=0) property to wc32 or adding pan and volume properties to my LoopStream?
Or is there any other way.
NOTE: I do not want to track the position by timer!
Source code checked in, #32836e28fc37
Source code checked in, #dc3a2cb68ac5
Source code checked in, #a026c041fb85
Source code checked in, #a919860557b7
Source code checked in, #5d450ef14d2a
Source code checked in, #98775580a295
Source code checked in, #e6974858ca3c
New Post: When playback ends
With NAudio you build up a pipeline, so you could pass your LoopStream into WaveChannel32 as the source.
Source code checked in, #f31518717528
New Post: WaveMixerStream32 Lenght after RemoveInputStream wrong.
I add 2 stream into mixer: first has lenght 1000, second has lenght 2000.
After remove second stream WaveMixerStream32.Lenght = 2000, but should be 1000.
In source code WaveMixerStream32.cs->RemoveInputStream has line:
newLength = Math.Max(length, inputStream.Length)
maybe need replace it with:
newLength = Math.Max(newLength, inputStream.Length) ?
Or I am wrong?
New Post: WaveMixerStream32 Lenght after RemoveInputStream wrong.
yes, thanks for reporting. That will go in on the next check-in.
Commented Issue: MediaFoundation Output Format Float [16375]
Here is a modified version of MediaFounfationReader.
Modification for operation with WASAPI, ASIO, WaveOutEvent
I added an option :: The output format (WaveFormat) is PCM or IEEE
Compatible with the version NAudio 569799226a61
This version is still a prototype!
Comments: thanks, these changes will be integrated shortly
New Post: WaveMixerStream32 Lenght after RemoveInputStream wrong.
Thanks for the fast reply.