QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: PMACKAY on September 02, 2018, 03:40:23 am

Title: volume control on _sndloop and _sndplay sndcopy_
Post by: PMACKAY 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


Title: Re: volume control on _sndloop and _sndplay sndcopy_
Post by: FellippeHeitor on September 02, 2018, 04:57:17 am
_SNDVOL: http://www.qb64.org/wiki/SNDVOL
Title: Re: volume control on _sndloop and _sndplay sndcopy_
Post by: Petr 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.  
Title: Re: volume control on _sndloop and _sndplay sndcopy_
Post by: PMACKAY 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)
Title: Re: volume control on _sndloop and _sndplay sndcopy_
Post by: FellippeHeitor on September 02, 2018, 10:21:20 am
...can the internal speaker also be adjusted (routed through soundcard in os)

No can do, sorry.