Frictional Games Forum (read-only)

Full Version: Custom Music Dosnt work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

My custom music i found on youtube was great for amnesia , but it donst work :S.....



Here is my hps



void OnStart()
{
AddUseItemCallback("", "Mansion_Key", "Locked_door", "KeyOnDoor", true);
AddEntityCollideCallback("Player", "Area_Event_One", "MusicStart", true, 1);
}


void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Locked_door", false, true);
PlaySoundAtEntity("", "unlock_door", "Locked_door", 0, false);
RemoveItem("Mansion_Key");
}

void MusicStart(string &in asParent, string &in asChild, int alState)
{
PlayMusic("sscary_ambient_music.ogg", true, 0.8f, 1, 0, true);
}
Did you just change the end to .ogg or did you actually render out a .ogg file?
(03-20-2012, 04:43 PM)SilentStriker Wrote: [ -> ]Did you just change the end to .ogg or did you actually render out a .ogg file?
I Just made change the end from mp3 to ogg
(03-20-2012, 07:17 PM)jessehmusic Wrote: [ -> ]
(03-20-2012, 04:43 PM)SilentStriker Wrote: [ -> ]Did you just change the end to .ogg or did you actually render out a .ogg file?
I Just made change the end from mp3 to ogg
It wont work if you do it like that. Download Audacity if you haven't it already and then open the mp3 in audacity and export it as an .ogg
You may want to use an actual program to convert a MP3 to a ogg sound type. I don't think that simply changing the end will put it into correct format for a .ogg file. Also, I had a lot of troubles on getting custom sounds for my story, but I think it was because of file placement. I would double check to make sure that the sound is in the correct folder for the game to find, recognize, and play it.