Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DirectSound Volume

Featured Replies

After downloading an excellent tutorial pack from http://jcboliveira.flysplash.org/' target="_blank">Jos

In the Initialization and Buffer Creation functions in the sound source file, you need to make sure the DSBCAPS_CTRLVOLUME flag is set.You need a line that will look something like:dsbd.dwFlags |= DSBCAPS_CTRLVOLUME | DSBCAPS_LOCSOFTWARE;Doug

Thanks Doug, it's working now :)Regards,Andrew

  • 1 year later...

Sorry to drag up an Oooold thread, but I have exactly the same problem.I'll freely admit to being pretty inept at "C" programming, but I can make sounds loop, etc... but I just can't get the "ChangeVolume" command to work. I assume that the solution mentioned above is about adding the line to the Sound.cpp file? And my understanding is that if you're using makefile, nmake etc, to generate a "C" file as opposed to C++, that file isn't involved? Or have I got my wires crossed?Thanks in advance for any replies!

  • Commercial Member

Ed Walters - PD,Within the CreateStaticBuffer function in the Sound.cpp file, add the line in bold: ----------------------- // Set up the direct sound buffer, and only request the flags needed // since each requires some overhead and limits if the buffer can // be hardware accelerated DSBUFFERDESC dsbd; ZeroMemory( &dsbd, sizeof(DSBUFFERDESC) ); dsbd.dwSize = sizeof(DSBUFFERDESC); dsbd.dwFlags = DSBCAPS_STATIC; dsbd.dwBufferBytes = g_pWaveSoundRead[bufferN]->m_ckIn.cksize; dsbd.lpwfxFormat = g_pWaveSoundRead[bufferN]->m_pwfx; dsbd.dwFlags |= DSBCAPS_CTRLVOLUME | DSBCAPS_LOCSOFTWARE;-----------------------Hope this helps.

Andrew Wilson

sig_fslDeveloper.jpg

Thank you _very_ much, MachTwo! That solved the problem entirely - it now does exactly what I wanted.Ed

>After downloading an excellent tutorial pack from>http://jcboliveira.flysplash.org/' target="_blank">Jos

And the link above takes you to a spamware site... not nice... drive by malware anybody?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.