PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: question about playing a sound?  (Read 159 times)

veltesian

  • Little Newbie
  • *
  • Posts: 31
question about playing a sound?
« on: July 30, 2020, 11:15:41 PM »

hello everyone...

i would like to know how can this 1 included *.bas could be fixed if possible? i had
ideas on building a simple SND player device if its ever possible. i might need to look
further perhaps as the code within the form of the included *.bas may not be right.
when i try to compile it for runtime,... the compiler seems to not like the declare function
& the "playsound" seems like an undefined variable. i'm not sure where to go from here.

(.... sigh) i guess i have a lot to learn about windows API or how to arrange such things.
« Last Edit: July 30, 2020, 11:21:16 PM by veltesian »
Logged

jermy

  • Junior Member
  • **
  • Posts: 55
Re: question about playing a sound?
« Reply #1 on: July 31, 2020, 07:32:53 AM »

I think you used visual basic 6 in the past?
if so then you have some specific explanation in the project about the differences
Logged

veltesian

  • Little Newbie
  • *
  • Posts: 31
Re: question about playing a sound?
« Reply #2 on: July 31, 2020, 07:50:04 AM »

hello jermy...

i just downloaded your playsound.zip and tried it. thanks it works great & yes i had
worked in vb6 (before .NET framework)... though i guess my zip upload was probably no good
to begin with. thats ok.... so i am sorry if it greatly disappoints anyone who might download it.
Logged

jermy

  • Junior Member
  • **
  • Posts: 55
Re: question about playing a sound?
« Reply #3 on: August 01, 2020, 12:41:30 PM »

before I started freebasic I programmed a lot in vb6.
I have often used old vb6 code as it often works with minor changes.
On the way you learn the differences faster
Logged