Product Chat / LoopSound, LoopNon3DSound and PlaySound Bug

Author
Message
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 20th May 2018 18:16
Beta and Release Version.

I have just added a 44 minute .ogg audio track to my project to my game and it will not play using either of the above commands. I can see no workaround for this. I have checked with a short (18 minute) track and that is fine.

The 44 minute track plays fine in Foobar, MediaPlayer and any other audio software.

Is there a limit on the length of audio that can be played using, LoopSound, LoopNon3DSound and PlaySound?

A definite bug.

Also reported on GitHub.

Can the length of audio to be played be increased.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth, Roland D05 Synth Module, Bluedio Victory V Headphones, AKG K141 Studio Headphones, Lenovo Ideapad, with Windows 10 64bit, 8Gb Ram and AMD A10 7th Gen Graphics.
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 20th May 2018 21:08
I think I had it to, the audio files have some length limit, 44 min is long for loop background music, is all the 44 min important?
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 20th May 2018 21:44
I had the EXACT same Issue yesterday.

I ended up using a shorter version of my background music and it worked.

Original Track was like 16 mintues. Now I have 8.

Maybe your file is just too long...
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 21st May 2018 02:54 Edited at: 21st May 2018 02:57
I'm surprised you guys have tracks longer than 6 minutes to begin with.

I'm just assuming here, but I believe we are only working with a few GB's of memory in total per map? Is external media (such as audio) stored in memory?
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 21st May 2018 10:12
Yes, I need a non-repeating audio track that long because of the atmosphere, I don't want a simple repeating track that will get boring easily.

I hope Lee will be able to increase this limit.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth, Roland D05 Synth Module, Bluedio Victory V Headphones, AKG K141 Studio Headphones, Lenovo Ideapad, with Windows 10 64bit, 8Gb Ram and AMD A10 7th Gen Graphics.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 21st May 2018 17:05
if a shorter version works maybe split the file into 2 or more parts, wouldn't be hard to get a script to play them in order.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Avenging Eagle
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 22nd May 2018 19:27
Quote: "Yes, I need a non-repeating audio track that long because of the atmosphere, I don't want a simple repeating track that will get boring easily."


A 44 minute ambient track? I'm sorry but that's totally ridiculous and unnecessary. That's like spunking your entire polycount for a level on a single 3 million poly model of a teapot. Sure, it'll be one hella detailed teapot, but will anyone really notice the difference? Game design is all about optimisation and saving resources whenever you can. I would think an ambient track need only be a maximum of 9 minutes, probably less than 6. How long is your level anyway that you think someone will get 44 minutes of gameplay out of it?

Sorry if I sound harsh.

AE

Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 23rd May 2018 07:56
@AE - Not really unnecessary if the game is an exploration/puzzle style game when the pace is slow, not running around shooting everything in sight. I'm not doing a massive level or levels, big, yes, but they DO take time to explore.

Lee has added this to the bug list anyway.

Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth, Roland D05 Synth Module, Bluedio Victory V Headphones, AKG K141 Studio Headphones, Lenovo Ideapad, with Windows 10 64bit, 8Gb Ram and AMD A10 7th Gen Graphics.
Avenging Eagle
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 23rd May 2018 19:29 Edited at: 23rd May 2018 19:29
Perhaps as a workaround you could dynamically fade shorter tracks into one another based on where in the level the player is or what they are doing? Might be a way to create something that doesn't get too repetitive.

AE
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 23rd May 2018 21:40
That's what most of the big game development do to give the illusion of continuous background tracks, if you pay attention to the background music in most big ticket games the music isn't one long track, it's dynamic and changes depending get on where you are and what you're doing.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 25th May 2018 13:16
Have you tried the RawSound commands?
Been there, done that, got all the T-Shirts!
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 25th May 2018 13:41
I've not tried the rawsound commands. I will look in the Global.lua info thanks.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth, Roland D05 Synth Module, Bluedio Victory V Headphones, AKG K141 Studio Headphones, Lenovo Ideapad, with Windows 10 64bit, 8Gb Ram and AMD A10 7th Gen Graphics.

Login to post a reply

Server time is: 2024-11-24 06:06:59
Your offset time is: 2024-11-24 06:06:59