I'm trying to add some music to my map. But when I add the mp3 files to the mod, they don't work in the previewer. I have tried with some other mp3 files and some of they work in the previewer while others don't work.
What are the requirements for a mp3 file to work in a sc2 map?
It surprises me that mp3 works at all, since it's a proprietary format and to use it you must buy a license. Many games instead use .ogg format which does not require paying for a license. I know SC2 supports .ogg and .wav, so I would suggest converting your music to .ogg instead.
I have the same problems with .ogg format. That's very strange, because it works for some songs, but in other cases it doesn't work. I suspect there are some bitrate, length or size requirements.
The good news ist, I found the problem. The bad news is, I'm stuck at finding a solution.
The problem is apparently either the file's duration or the file size. The question is, whether only the editor having these issues (by refusing to play the preview) or the game as well. I haven't needed custom soundtracks yet, so I was having some difficulties setting the default soundtrack as a test. What I did, is just cropping the file (deleting approx. 40% of the file's music), which reduced its size and duration. After that it was suddenly able to play it in preview in the editor. I also tried reducing the quality of the file, in order to keep the duration but reduce the file size, but the editor seems to only see the uncompressed size, so it didn't help.
When I tried testing it in the game, my game crashed at the end of the loading process, which is probably because I don't know how to properly set up a soundtrack. What I did was setting the cropped imported sound file as a new sound; Setting the sound as a new Soundtrack; Setting the default Soundtrack per trigger as the created Soundtrack. I don't know what went wrong, but I didn't get the map loaded without a crash.
What you could do is, crop away a part of the soundtrack and try to test, if it runs in the game, if you're able to get it running. If it works, you could listen to the track and try to find a good spot for a fade-out and shorten the file in its duration and size. I don't get why the editor is having these difficulties with large files, but I assume the maximum uncompressed size of a sound file is something like 5 Mb.
You might experience some issues though, if you use the mp3 due to it being streamed. Use .ogg or .wav for a seamless playback of two consecutive files.
I'm trying to add some music to my map. But when I add the mp3 files to the mod, they don't work in the previewer. I have tried with some other mp3 files and some of they work in the previewer while others don't work.
What are the requirements for a mp3 file to work in a sc2 map?
It surprises me that mp3 works at all, since it's a proprietary format and to use it you must buy a license. Many games instead use .ogg format which does not require paying for a license. I know SC2 supports .ogg and .wav, so I would suggest converting your music to .ogg instead.
I have the same problems with .ogg format. That's very strange, because it works for some songs, but in other cases it doesn't work. I suspect there are some bitrate, length or size requirements.
bump
@IliIilI: Go
I often work with sounds. Would you post the file you want to use here? I could look into it.
Nice, here is the link: http://www.2shared.com/audio/ePjM7MLU/CoreFight10.html
Okay here we go.
The good news ist, I found the problem. The bad news is, I'm stuck at finding a solution.
The problem is apparently either the file's duration or the file size. The question is, whether only the editor having these issues (by refusing to play the preview) or the game as well. I haven't needed custom soundtracks yet, so I was having some difficulties setting the default soundtrack as a test. What I did, is just cropping the file (deleting approx. 40% of the file's music), which reduced its size and duration. After that it was suddenly able to play it in preview in the editor. I also tried reducing the quality of the file, in order to keep the duration but reduce the file size, but the editor seems to only see the uncompressed size, so it didn't help. When I tried testing it in the game, my game crashed at the end of the loading process, which is probably because I don't know how to properly set up a soundtrack. What I did was setting the cropped imported sound file as a new sound; Setting the sound as a new Soundtrack; Setting the default Soundtrack per trigger as the created Soundtrack. I don't know what went wrong, but I didn't get the map loaded without a crash.
What you could do is, crop away a part of the soundtrack and try to test, if it runs in the game, if you're able to get it running. If it works, you could listen to the track and try to find a good spot for a fade-out and shorten the file in its duration and size. I don't get why the editor is having these difficulties with large files, but I assume the maximum uncompressed size of a sound file is something like 5 Mb.
@Shianky: Go
If everything fails, you can split the mp3 into multiple files and play them consecutively.
@Kueken531: Go
This is actually even better.
@IliIilI: Go
You might experience some issues though, if you use the mp3 due to it being streamed. Use .ogg or .wav for a seamless playback of two consecutive files.
It worked!! I split the music into 2 files. I also converted it to .ogg. Thanks.