Author Topic: volume control on _sndloop and _sndplay sndcopy_  (Read 2687 times)

0 Members and 1 Guest are viewing this topic.

Offline PMACKAY

  • Forum Regular
  • Posts: 188
  • LIFE is Temporary
    • View Profile
volume control on _sndloop and _sndplay sndcopy_
« on: September 02, 2018, 03:40:23 am »
anyone know how to adjust the audio.... I have a loop music track whic needs to be lower than the sound effects and some sound fx are so quiet you cannot here them unless the musicloop is off


MackyWhite

FellippeHeitor

  • Guest
Re: volume control on _sndloop and _sndplay sndcopy_
« Reply #1 on: September 02, 2018, 04:57:17 am »

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: volume control on _sndloop and _sndplay sndcopy_
« Reply #2 on: September 02, 2018, 04:58:30 am »
Code: QB64: [Select]
  1.  
  2. music& = _SNDOPEN("song.mp3")
  3. background& = _SNDOPEN("dio.mp3")
  4.  
  5. _SNDVOL background&, .3 'volume 30%
  6. _SNDVOL music&, 1 '      volume 100%
  7.  
  8. _SNDLOOP background&
  9. _SNDPLAY music&
  10.  
  11.  

Offline PMACKAY

  • Forum Regular
  • Posts: 188
  • LIFE is Temporary
    • View Profile
Re: volume control on _sndloop and _sndplay sndcopy_
« Reply #3 on: September 02, 2018, 09:41:55 am »
Audio Volume working now. for some unknown reason it was not adjusting before. if possible can the internal speaker also be adjusted (routed through soundcard in os)
MackyWhite

FellippeHeitor

  • Guest
Re: volume control on _sndloop and _sndplay sndcopy_
« Reply #4 on: September 02, 2018, 10:21:20 am »
...can the internal speaker also be adjusted (routed through soundcard in os)

No can do, sorry.