Jump to content

Adding new music to existing radio stations


Recommended Posts

SUP_F4SE (F4Se plugin) has a lot of MP3 functions that look quite useful. I would give it a shot.

 

Link and some snippets:

https://www.nexusmods.com/fallout4/mods/55419


bool Function MP3LoadFile(string sFileName) global native
;/
bool Function MP3LoadFile(string sFileName)
Will load specified file to game. Returns 1 if succeeded. Note: this will not yet play the file.
File path is related to Fallout4 root folder.
/;
bool Function MP3Play() global native
;/
bool Function MP3Play()
Will play loaded file.
/;
bool Function MP3Pause() global native
;/
bool Function MP3Pause()
Will pause file(if playing)
/;
bool Function MP3Stop() global native
;/
bool Function MP3Stop()
Will stop MP3 file, unloading it from memory.
/;
bool Function MP3IsPlaying() global native
;/
bool Function MP3IsPlaying()
Will return if file is playing.
Returns false if:
- File is not loaded;
- File is paused;
- File has finished playing;
/;
int Function MP3GetDuration() global native
;/
int Function MP3GetDuration()
Get MP3 duration of loaded MP3 file in seconds.
/;
int Function MP3GetCurrentPosition() global native
;/
int Function MP3GetCurrentPosition()
Get current position of playing MP3 file in seconds.
/;
bool Function MP3IsFileLoaded() global native
;/
bool Function MP3IsFileLoaded()
Return if currently file is loaded.
/;
int Function MP3GetVolume() global native
;/
int Function MP3GetVolume()
Will return current MP3 volume.
Volume can be a value between 0 and -10000. Value > 0 is not valid.
/;
bool Function MP3SetVolume(int iVolume) global native
;/
bool Function MP3SetVolume(int iVolume)
Set volume to specified amount.
Volume can be a value between 0 and -10000. Value > 0 is not valid.
/;
bool Function MP3HasFinishedPlaying() global native
;/
bool Function MP3HasFinishedPlaying()
Will return whether MP3 has finished playing.
/;
string Function MP3GetCurrentFile() global native
;/

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...