Click here to Skip to main content
16,015,973 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I have here a simple winform c# app:
It is a simple "hear test" wizard with 10 Pages
wich plays on every page a diffrent wav File.
In Diffrent Frequencys.

For Exmaple:
sin_1000Hz_-50dBFS_3s.wav


The User sets the volumen by a trackbar to the
volume where he can hear the tone first.

On the last page their is a summary of all frequencys and volumens.

This winforms exe was just a testballoon.

Now i need to convert this somehow into a webpage,
i guess with html5 for playing the wav files and setting the volumen.

I am completly new to html5, i just have done a few tests with
asp.net.

Can somebody point me to some examples.
Do I neet asp.net in the background? Or can everything be done
simpely by html5 and some java script?

At the moment I dont know where to start.



Here is the source:
Dropbox - HoertestSource.zip[^]

The executeable is here:
Dropbox - HoertestV1.6.zip[^]

thanks in advance for your help

Regards

Michael

What I have tried:

Did a testapp in winforms, need to convert it somehow on a html5 webpage.
Posted
Updated 22-Jun-17 4:54am

1 solution

 
Share this answer
 
Comments
Michael Brockhoff 22-Jun-17 11:19am    
Hello F-ES Sitecore,

thanks for the answer.
but how do I set the Volumen?

I tested it in a simpel test.html
This actually palys the Testone. Its 3 Seconds long.

And it shows a simple audio control with a play button
and volumen control.

<audio controls>
<source src="sin_1000Hz_-50dBFS_3s.wav" type="audio/wav">
Your browser does not support the audio element.



Can I set this playing to a infinit loop?
How do i read aut the volume the user sets in this control?

At the Moment I dont know how to
start with this website hearing test.

Regards

Michael
F-ES Sitecore 22-Jun-17 11:25am    
I doubt you'll be able to change the volume of the client PC, imagine if a web page could adjust your volume? Doesn't bear thinking about.
Michael Brockhoff 22-Jun-17 11:29am    
I tested it in a simpel test.html
This actually palys the Testone. Its 3 Seconds long.

And it shows a simple audio control with a play button
and volumen control.

<audio controls>
<source src="sin_1000Hz_-50dBFS_3s.wav" type="audio/wav">
Your browser does not support the audio element.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900