DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Need some help with VB5  (Read 7,312 times)

CodeTRUCKER

  • Bush Flying... where I'd rather be.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,086
    • Participated in NANY Challenge Once
    • Military Service Badge - US Navy
Need some help with VB5
« on: December 30, 2006, 09:13 PM »
I need some help with getting simultaneous sounds to play and I can't make it work.
DISCLAIMER - I have made and make many threads for questions and even project posts across the Internet. Unfortunately, many are in limbo because I cannot remember where they are at. If anyone knows of an open thread or an unanswered inquiry, please PM me. Thank you.
   
Notice: Unless stated otherwise, I receive no compensation for anything I post here.
« Last Edit: December 09, 2009, 01:12 AM by CodeTRUCKER »

Veign

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 993
    • Gathering Badge
    • Participated in NANY Challenge Twice
Re: Need some help with VB5
« Reply #1 on: December 30, 2006, 09:54 PM »
VB5 does not support multithreading.  Visual Basic is an apartment threaded environment and to get even something close to multithreaded* would not be for the faint at heart.

* - You could create an ActiveX EXE which would run in its own process space but you would need to use some sort of callbacks if this will run async.  This too may be too complex for ya.

Whether a computer can handle somthing or not is not the question.  The question / answer is whether the development environment or devloper can handle it.

(does a computer play sounds ontop of each other?  If I run Winamp and Media Player only one can play their sound at a time)

CodeTRUCKER

  • Bush Flying... where I'd rather be.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,086
    • Participated in NANY Challenge Once
    • Military Service Badge - US Navy
Re: Need some help with VB5
« Reply #2 on: December 30, 2006, 10:06 PM »
Alright, I have limitations I was not anticipating, but I have to do something.  The user has to depend on hearing the sounds fast, sharp and clear.  What would you suggest? 
DISCLAIMER - I have made and make many threads for questions and even project posts across the Internet. Unfortunately, many are in limbo because I cannot remember where they are at. If anyone knows of an open thread or an unanswered inquiry, please PM me. Thank you.
   
Notice: Unless stated otherwise, I receive no compensation for anything I post here.
« Last Edit: December 09, 2009, 01:14 AM by CodeTRUCKER »

Veign

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 993
    • Gathering Badge
    • Participated in NANY Challenge Twice
Re: Need some help with VB5
« Reply #3 on: December 30, 2006, 10:09 PM »
Keep it short and let it finish.

Visual Basic can do a lot but making it do certain things is just not worth the effort.  True multithreading is one of those things.

In fact all of my applications had been written in VB6 - not too shabby.

CodeTRUCKER

  • Bush Flying... where I'd rather be.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,086
    • Participated in NANY Challenge Once
    • Military Service Badge - US Navy
Re: Need some help with VB5
« Reply #4 on: December 30, 2006, 10:40 PM »
Ok... I'll see what I can do to match these shortcomings.  Thanks for the help, though! :Thmbsup:
DISCLAIMER - I have made and make many threads for questions and even project posts across the Internet. Unfortunately, many are in limbo because I cannot remember where they are at. If anyone knows of an open thread or an unanswered inquiry, please PM me. Thank you.
   
Notice: Unless stated otherwise, I receive no compensation for anything I post here.
« Last Edit: December 09, 2009, 01:15 AM by CodeTRUCKER »

Ruffnekk

  • Uhm yeah...
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 332
    • Programming School - Stage 1 Medal
    • Programming School - Deluxe Bonus Medal
    • Participated in NANY Challenge Once
    • Linux User
Re: Need some help with VB5
« Reply #5 on: January 16, 2007, 08:19 PM »
I think I know the answer to this Farmsteader, but I'm at home now and I have some old code at work that will do the trick if I remember correctly. Do you still want it? I can post it later tomorrow.
Regards,
RuffNekk

Programming is an art form that fights back.

CodeTRUCKER

  • Bush Flying... where I'd rather be.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,086
    • Participated in NANY Challenge Once
    • Military Service Badge - US Navy
Re: Need some help with VB5
« Reply #6 on: January 16, 2007, 08:23 PM »
Sure, anything I can get would be helpful.  Thanks!
DISCLAIMER - I have made and make many threads for questions and even project posts across the Internet. Unfortunately, many are in limbo because I cannot remember where they are at. If anyone knows of an open thread or an unanswered inquiry, please PM me. Thank you.
   
Notice: Unless stated otherwise, I receive no compensation for anything I post here.
« Last Edit: December 09, 2009, 01:10 AM by CodeTRUCKER »

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Need some help with VB5
« Reply #7 on: January 16, 2007, 10:56 PM »
Shouldn't be necessary to do threading to have multiple sounds playing at once, anyway. Not sure if PlaySound (in async mode) will do it, but you should be able to use DirectSound from VB if all else fails...

Veign: which OS do you use? And which sound card? Ever since win2k, multiple apps have been able to do sound at once (and have windows/drivers mix it) for me :)
- carpe noctem

Original address: https://www.donationcoder.com/forum/index.php?topic=6791.0