473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Waveform display

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.
Nov 16 '05 #1
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.

Nov 16 '05 #2
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.


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
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....
0
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: ...
2
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...
0
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...
1
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...
1
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
3
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...
1
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...
1
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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
0
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...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.