I am currently rewriting an application originally developped in VC++ that
plays a .wav file and displays a representation of the waveform as it is
played (with a marker indicating current position in the audio file); making
use of DirectX9.
So far I am able to load and play, stop and resume play of a sample .wav
file. I am making use of a previously developed user control that is capable
of displaying the waveform (statically), scrolling form right to left,
zooming in and out, etc.
The control currently displays a portion of the waveform (with the marker
and starting postion in the center of the control), and the scrolling
triggers a Refresh() which calls my draw method using Drawline(pen,
X1,Y1,X2,Y2). The control will also need to play and display at variable
speeds, rewind and fast forward. I need to be able to synchronize the play
position in the audio file and the relative marker position on the control.
My question is this: Am I missing the boat completely? Is there an easier
way to do this in C# or am I on the right track and just have a little more
work ahead of me? I would appreciate links, tips, source code samples,
anything at all.
Thanks in advance,
Aaron N. 2 13117
Been a while since I looked at wav and multimedia stuff... Have you googled
on this? I did and found quite a lot of stuff... http://www.google.co.uk/search?sourc...iles+play+c%23
[beware of line breaks]
"Aaron N." <ja*********@SPAMYOURSELFhotmail.com> wrote in message
news:24**********************************@microsof t.com... I am currently rewriting an application originally developped in VC++ that plays a .wav file and displays a representation of the waveform as it is played (with a marker indicating current position in the audio file); making use of DirectX9.
So far I am able to load and play, stop and resume play of a sample .wav file. I am making use of a previously developed user control that is capable of displaying the waveform (statically), scrolling form right to left, zooming in and out, etc.
The control currently displays a portion of the waveform (with the marker and starting postion in the center of the control), and the scrolling triggers a Refresh() which calls my draw method using Drawline(pen, X1,Y1,X2,Y2). The control will also need to play and display at variable speeds, rewind and fast forward. I need to be able to synchronize the play position in the audio file and the relative marker position on the control.
My question is this: Am I missing the boat completely? Is there an easier way to do this in C# or am I on the right track and just have a little more work ahead of me? I would appreciate links, tips, source code samples, anything at all.
Thanks in advance, Aaron N.
Thanks for the reply,
I can play the wav file, control the volume and the balance etc. That's all
provided in the DirectX9 samples.
What I need to do now is build a visual component that displays the waveform
and can (as accurately as possible) indicate where I am in the file. I am
standing on the shoulders of another developer here that wrote a
"WaveControl" user control that statically displays the waveform and can do
things like scroll and zoom. I'm trying to build on it and synchronize it
with the playing of the audio to indicate relative position.
I guess what I'm trying to avoid is re-inventing the wheel... if it's been
done before, I'd really like to save time on this portion of the project.
Thanks for the input.
Aaron N.
"Dan Bass" wrote: Been a while since I looked at wav and multimedia stuff... Have you googled on this? I did and found quite a lot of stuff...
http://www.google.co.uk/search?sourc...iles+play+c%23 [beware of line breaks] "Aaron N." <ja*********@SPAMYOURSELFhotmail.com> wrote in message news:24**********************************@microsof t.com...I am currently rewriting an application originally developped in VC++ that plays a .wav file and displays a representation of the waveform as it is played (with a marker indicating current position in the audio file); making use of DirectX9.
So far I am able to load and play, stop and resume play of a sample .wav file. I am making use of a previously developed user control that is capable of displaying the waveform (statically), scrolling form right to left, zooming in and out, etc.
The control currently displays a portion of the waveform (with the marker and starting postion in the center of the control), and the scrolling triggers a Refresh() which calls my draw method using Drawline(pen, X1,Y1,X2,Y2). The control will also need to play and display at variable speeds, rewind and fast forward. I need to be able to synchronize the play position in the audio file and the relative marker position on the control.
My question is this: Am I missing the boat completely? Is there an easier way to do this in C# or am I on the right track and just have a little more work ahead of me? I would appreciate links, tips, source code samples, anything at all.
Thanks in advance, Aaron N. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Brian |
last post by:
I want to develop an application that has an oscilliscope . I was wondering
if anyone has experience (good or bad) of any commercial charting packages
that will provide this sort of functionality....
|
by: Ada |
last post by:
i'm using C# and have been reading DX doc but cannot find the info i'm looking for.
i want to load WAVE file and display the waveform.
something similar to this:
...
|
by: riscy |
last post by:
Has anyone know good webpage or book covering C# code in transformation
of real time or sampled time data into FFT spectrum display (using
GDI+).
I like to learn FFT processing in abc way...can...
|
by: Ronald Walker |
last post by:
Does anyone have any examples or ideas on Displaying Waveforms without extra
dll or ocx add-ons?
I'm using mmcontrol to access a mp3 file...
Then I play that file from point A to point B..
I...
|
by: d6ve |
last post by:
I need to play a video file, see the waveform of its audio and use the
waveform as a slide bar for seeking in the video.
Thanks and regards, David.
--
d6ve...
|
by: android |
last post by:
hi all
anybody knows a technique, a link, a suggesstion, ...a book, ables to show me how to draw a waveform file wavegraph on picturebox in vb.net?
thanks very much
Andrea
|
by: Julien |
last post by:
Hi,
I would like to pull out the waveform of an audio file and save it
into an image file, for example in GIF format. Is that achievable, and
if so, how?
I heard about the Snack module, but...
|
by: fevos |
last post by:
hi
i look at this article in msdn Recording and Playing Sound with the Waveform Audio Interface and download the P/Invoke Library Sample that record using wave in and wave out .
how do i get...
|
by: catherine0136 |
last post by:
Hello. I am pretty new to VB therefore i need guidance on the following :
Basically, my circuit board is connected to solar cell and also a power supply(those laboratory DC power supply used in...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |