CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2008
    Posts
    18

    Multiple sounds at the same time?

    I'm experimenting with the the waveform audio stuff using the waveOut functions.

    How are multiple sounds usually handled, for example like in games? Are sounds always mixed in software, or are multiple hardware channels accessed somehow?

    I want to create my own simple sound engine as a hobby project, and wondered if I should just start trying to mix things realtime, or if there is a better way to play simultaneous sounds.

    Thanks

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: Multiple sounds at the same time?

    You can use the PlaySound API with the SND_NOSTOP flag.
    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  3. #3
    Join Date
    Jul 2008
    Posts
    18

    Re: Multiple sounds at the same time?

    Do you know if playsound does mixing or if it utilizes hardware channels? I don't really want to use playsound, I want to set up my own stuff built from a lower level than playsound. I'm just wondering if software mixing is the way to go, or if I can access a certain number of hardware channels before I must use mixing.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured