January 16, 2021, 10:09:01 PM

Author Topic: Audio latency win10 64bit  (Read 302 times)

Offline wadmixfm

  • Jr. Member
  • **
  • Posts: 69
Audio latency win10 64bit
« on: December 13, 2020, 05:38:18 PM »
is there a way to get the latency down in windows 10 64 bit with blitzmax ng when samples are played they are slightly out of sync

the current audio driver i am using is freeaudio

directsound is ok but a little jerky

any ideas please

Lee

Offline Derron

  • Hero Member
  • *****
  • Posts: 3331
Re: Audio latency win10 64bit
« Reply #1 on: December 13, 2020, 09:09:34 PM »
Can't you try "audio.mod/soloud***.mod" ?

You have two audio backends to choose there - and they then use the driver suiting best (so direct sound or similar).


bye
Ron

Offline wadmixfm

  • Jr. Member
  • **
  • Posts: 69
Re: Audio latency win10 64bit
« Reply #2 on: December 15, 2020, 01:30:26 PM »
I will give it a try

Thanks

Free audio is great on the Mac as it uses core audio and it's bang on time

Will try soloud  :D

Online GfK

  • Full Member
  • ***
  • Posts: 204
  • Scrotty furtler
Re: Audio latency win10 64bit
« Reply #3 on: December 15, 2020, 02:59:07 PM »
I always used FreeAudio for MacOS, OpenAL for Windows.

Way too many issues with DirectSound/FreeAudio under Windows.
Intel I9-9900K 3.6-5.0GHz | GeForce RTX2070 8GB | 32GB RAM | 500GB NVMe M.2 SSD | 1TB HDD | Windows 10 x64.
MSI Apache Pro | I7-7700HQ | GeForce GTX1060 3GB | 8GB RAM | 128GB SSD | 1TB HDD | Windows 10 x64.

Offline Derron

  • Hero Member
  • *****
  • Posts: 3331
Re: Audio latency win10 64bit
« Reply #4 on: December 16, 2020, 08:55:07 AM »
Code: BlitzMax
  1. Import audio.soloud
  2. Import audio.soloudaudio
  3. 'or sdl
  4. 'Import audio.soloudaudiosdl
  5. 'miniaudio
  6. Import audio.soloudaudiominiaudio
  7.  
  8. SetAudioDriver("Soloud")
  9.  

Should be enough.
With SoLoud you also gain the ability to stream your music files instead of loading+decoding them completely at once.


So a looped streamed sound:
local sound:TSound = LoadSound(url, SOUND_STREAM | SOUND_LOOP)


bye
Ron

Offline wadmixfm

  • Jr. Member
  • **
  • Posts: 69
Re: Audio latency win10 64bit
« Reply #5 on: December 18, 2020, 04:35:16 PM »
Cheers Ron

Will give it a go


Offline wadmixfm

  • Jr. Member
  • **
  • Posts: 69
Re: Audio latency win10 64bit
« Reply #6 on: December 22, 2020, 10:35:36 AM »
I always used FreeAudio for MacOS, OpenAL for Windows.

Way too many issues with DirectSound/FreeAudio under Windows.

what will i need to get openAL going code wise in blitzmax NG

import ??

for loading oggs

etcccc....

cheers

lee

Online GfK

  • Full Member
  • ***
  • Posts: 204
  • Scrotty furtler
Re: Audio latency win10 64bit
« Reply #7 on: December 22, 2020, 12:33:59 PM »
I've never set it up with BlitzmaxNG, but in the original Blitzmax up to 1.50, from what I remember, just install OpenAL and it's available with "SetAudioDriver("OpenAL")" or something along those lines.  All the other audio commands remain the same.

For distribution you can just put the OpenAL DLLs in your game folder, and it still works.  The licence used to permit that and it was common practice in casual games - it negates the need for the end user to install OpenAL themselves.
Intel I9-9900K 3.6-5.0GHz | GeForce RTX2070 8GB | 32GB RAM | 500GB NVMe M.2 SSD | 1TB HDD | Windows 10 x64.
MSI Apache Pro | I7-7700HQ | GeForce GTX1060 3GB | 8GB RAM | 128GB SSD | 1TB HDD | Windows 10 x64.

Offline wadmixfm

  • Jr. Member
  • **
  • Posts: 69
Re: Audio latency win10 64bit
« Reply #8 on: December 22, 2020, 12:55:25 PM »
ahhhh right nice one i will give that a try :)

thanks for the info

Lee

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal