Hack Forums
[.NET] Wave Player, Wave Generator [Media] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Wave Player, Wave Generator [Media] (/showthread.php?tid=4665052)



Wave Player, Wave Generator [Media] - KingDeath360 - Feb 1, 2015

Wave Player
[Image: MhzOv48.png]
The Screenshot should explain everything.
comes with a lower level wave class

Form1.VB
https://pastebin.com/ju9VJfMB
Wave.VB
https://pastebin.com/CTqATiiM

Full project:
http://www.filedropper.com/waveclass

Wave Generator
https://pastebin.com/gganJ7pH
https://pastebin.com/Nscfeh6b
Code
Dim a As New WaveGenerator(WaveGenerator.WaveExampleType.ExampleSineWave)
      a.Play()
      ' a.Save(My.Computer.FileSystem.SpecialDirectories.Desktop & "\test2.wav")

NOT MINE


* - Mad Hatter - Feb 1, 2015

Hey this is pretty cool, I downloaded the full project and when I loaded it up I got a few errors though.


* - KingDeath360 - Feb 1, 2015

(Feb 1, 2015 08:09 AM)CodeMagic Wrote:  Hey this is pretty cool, I downloaded the full project and when I loaded it up I got a few errors though.

The project was on my drive for years.
Can you post the errors


* - Only3 - Feb 1, 2015

i made wave file Structure its fun to play with wave
now try to do it with mp3 😁


* - GenericSkid - Feb 1, 2015

(Feb 1, 2015 10:24 AM)Only3 Wrote:  i made wave file Structure its fun to play with wave
now try to do it with mp3 :biggrn:

It's not his project. Read the red text.


* - SIM-1456245 - Feb 1, 2015

Looks pretty cool, even tho I think that there are multiple ways of making the event handling just a bit nicer, and modular. You could have made a custom class that inherits from picturebox and then loop through every one of those and handle the events like that. Or you could simply named the controls in a specific pattern and find them like that. Or even simpler if you have no other pictureboxes loop through all pictureboxes and bob's your uncle.