Music Terminal - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: SOMA (https://www.frictionalgames.com/forum/forum-55.html) +--- Forum: User created content (https://www.frictionalgames.com/forum/forum-79.html) +---- Forum: Development (https://www.frictionalgames.com/forum/forum-82.html) +---- Thread: Music Terminal (/thread-44054.html) |
Music Terminal - i3670 - 04-10-2016 Okay so I'm trying to create a music playing terminal using the StationGui_AudioPlaybackApp. The text "OfficeTerminalFileName" shows up with the correct text so the script is functioning, except for the actual sound file. I suspect it doesn't support the format. Is there another command that I can replace the AddAudioFile_Voice with that will play .snt/.ogg files? I've looked on the wiki, but I can't find anything concerning Depth_ImGui at all. Script: Spoiler below!
**Sorry for posting in quick succession, but I'm into modding again.** RE: Music Terminal - Abion47 - 04-10-2016 The vast majority of sound-playing functions that I can see are more or less hard-wired to work with FMOD sound banks. How are you trying to play the music track? (i.e. what format is the track stored in, where are you keeping it, etc.) RE: Music Terminal - i3670 - 04-10-2016 I don't know, I suspect it's an .snt/.ogg which would mean it's somewhere in the sounds-folder (I pulled the source from inside the level_editor). Do you think I can make a normal StationGui_MainMenu(); and use the Sound_CreateAtEntity(); and bind it to the various Apps on screen? That is, if the first version doesn't work. RE: Music Terminal - Abion47 - 04-11-2016 Ok, it took me a little while, but I think I've got some of this figured out. The function you are using ("Depth_ImGui_AddAudioFile_Voice") deals with voice sound sources, but the files you are specifying ("00_03_apartment1/amb/object/radio_show/music/radio_song_"+i) is a soundbank sound source instead. Soundbanks are used for sounds that do stuff like ambient noises or sound effects, but voice sounds are used for dialogue. The two aren't interchangeable, i.e. you can't use a soundbank file in a function designed for a voice file or vice versa. If you want to play this music in some kind of a jukebox sense, you would need to use the Sound_CreateAtEntity/Sound_Play functions. I put together a page on the wiki regarding playing audio so you can figure out how exactly you want it all put together. RE: Music Terminal - i3670 - 04-11-2016 Yes, I'm trying to create a jukebox. I got a working script for it. It's a bit clunky with multiple interactable areas that are active/inactive and depending on which the player interacts with either radio_song1/2/3/4/Off plays. |