Jump to content

[Tutorial] SDK: Importing Sounds


Recommended Posts

  • Developer

Importing sound into the SDK is quite simple. However, there are a few requirements. The sound file you are importing MUST be 16-bit & be a wav file. If your sound file is not 16-bit or a wav file, you can easily convert it using Audacity, which is a free audio editing program. 


To being importing, open the content browser and click import.


The rest is pretty self explanatory, set the package, group name and name.

IMPORTANT: Make sure to set the sound class of the SoundCue after importing. If you do not set a class, it will not be affected by volume sliders in-game. Right click the cue and open the sound cue editor. The class is the first thing. You can find a list of valid sound classes below.



GetPC().SetAudioGroupVolume('UI', SystemSettingsHandler.UIVolume);
GetPC().SetAudioGroupVolume('Item', SystemSettingsHandler.ItemVolume);
GetPC().SetAudioGroupVolume('Vehicle', SystemSettingsHandler.VehicleVolume);
GetPC().SetAudioGroupVolume('Weapon', SystemSettingsHandler.WeaponVolume);
GetPC().SetAudioGroupVolume('SFX', SystemSettingsHandler.SFXVolume);
GetPC().SetAudioGroupVolume('Character', SystemSettingsHandler.CharacterVolume);
GetPC().SetAudioGroupVolume('Music', SystemSettingsHandler.MusicVolume);
GetPC().SetAudioGroupVolume('Announcer', SystemSettingsHandler.AnnouncerVolume);
GetPC().SetAudioGroupVolume('MovieVoice', SystemSettingsHandler.MovieVoiceVolume);
GetPC().SetAudioGroupVolume('WeaponBulletEffects', SystemSettingsHandler.WeaponBulletEffectsVolume);
GetPC().SetAudioGroupVolume('OptionVoice', SystemSettingsHandler.OptionVoiceVolume);
GetPC().SetAudioGroupVolume('MovieEffects', SystemSettingsHandler.MovieEffectsVolume);
GetPC().SetAudioGroupVolume('Ambient', SystemSettingsHandler.AmbientVolume);
GetPC().SetAudioGroupVolume('UnGrouped', SystemSettingsHandler.UnGroupedVolume);
GetPC().SetAudioGroupVolume('Voice', SystemSettingsHandler.CharacterVolume);



  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...