Product Chat / Max - max background music length?

Author
Message
Cobbs
4
Years of Service
User Offline
Joined: 20th Sep 2020
Location:
Posted: 5th Nov 2020 23:06
What will be the max length of music tracks that play in the background? If a track is too large or long, will problems start to happen? Cant really test this in Max yet.
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 5th Nov 2020 23:34
Probably the same as GG, haven't heard of any changes to sound in MAX.
Been there, done that, got all the T-Shirts!
PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 6th Nov 2020 00:42
If for any reason you experience any problems with this, you can always do a Lua check to see if the track has stopped playing and moved to the next one. Basically cutting a file up into chunks and playing them as separate sound files.

How long of a track are you looking to experiment with?
Store Assets - Store Link
Free Assets - Resource Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Cobbs
4
Years of Service
User Offline
Joined: 20th Sep 2020
Location:
Posted: 6th Nov 2020 04:40
Not sure yet on the length needed, I was considering using a few long tracks instead of contextual or evented music. How are things in Classic - whats the longest bgm song length you can have there bug-free?
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 6th Nov 2020 08:32
I can use 11 minute .ogg files easily.
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. Acer Swift i3 Laptop with Intel Optane memory, Intel 620UHD GPU, Windows 10 64bit.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 6th Nov 2020 10:43 Edited at: 6th Nov 2020 10:47
Interestingly the music.lua script in MAX appears to be empty, you could try copying over the one from GG to see if it all works.

Basically you specify the length of the sample when you load it like this:

music_load( 1, "audiobank\\Batman\\BatwingAudio\\BatwingMusicAudio.ogg", 0, 575712 )

The first parameter is the track number, the second number is the fade in time and the last parameter is total track length, both values are in milliseconds.

Then to set it playing:

music_play( 1 )

By default if the player dies the music will stop, to disable this use:

DisableMusicReset( 1 )

I've attached music.lua just in case you don't already have it.

It's possible it won't work if they haven't integrated these functions yet or if they have been disabled in MAX for some reason.

There are all sorts of useful functions in music.lua if it does work in MAX!
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM

Login to post a reply

Server time is: 2024-11-23 12:48:09
Your offset time is: 2024-11-23 12:48:09