Making (Atrac9) .at9 Files for Vita themes/ game audio replacement.

Discussion in 'PS Vita - Hacking & Homebrew' started by Sonic Angel Knight, Jan 4, 2017.

  1. Sonic Angel Knight
    OP

    Sonic Angel Knight GBAtemp Guru

    Member
    9,983
    5,040
    May 27, 2016
    United States
    New York
    If anyone know how to make a at9 file for audio, can you help please? I was curious about trying to change the default home menu music that plays with no theme selected, or to make audio with themes or even just to replace music in a game that supports the format. I don't know how to do it though and the audio converters i tried don't seem to have any codecs for encoding that format.

    I know that PS3 can encode import audio from a music CD to at3 and install it on system to listen to while playing some games or just for music playback but ps4 can't seem to do anything like that which is a shame. :unsure:
     
  2. Voxel

    Voxel Fable Junkie

    Member
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,195
    5,885
    Jun 27, 2015
    United Kingdom
    England, UK
    You can use at9tool. It's part of the official PS Vita SDK, so no links to it I'm afraid.
    In fact, I believe it's the only known method to convert to at9 anyway, so you will need to find the tool if you want to replace background music and stuff.

    The usage of the tool is pretty simple though. in CMD, locate the directory to where at9tool is stored at, change the current path to that directory, and type the following:
    Code:
    at9tool -e "path/to/WAV" "path/to/output/AT9"
    If you want to decode back from AT9 to WAV (also useful for music ripping), simply replace "-e" eith "-d" and type the location of the AT9 file, then the destination path for the output WAV file.

    Hope this helps you, if you find it!
     
    Last edited by Voxel, Jan 4, 2017
  3. Sonic Angel Knight
    OP

    Sonic Angel Knight GBAtemp Guru

    Member
    9,983
    5,040
    May 27, 2016
    United States
    New York
    So the file must be a wav file before conversion or can i use any kind of file? Also will it use the proper loop timing that won't cause the audio to pause and fade out like some bad conversion programmers have done in the past?
     
  4. westwood

    westwood GBAtemp Regular

    Member
    100
    26
    Mar 29, 2016
    Gambia, The
    As far as i Know u need to use WAV files. U can easily convert them with Audacity. I already did some themes by myself and never had problems.
    Also for the Themes that i made the Music files where a whole song ( e.g 2-3 min ) and it plays them complete. So it will play the exactly the same you made it :D
     
  5. Sonic Angel Knight
    OP

    Sonic Angel Knight GBAtemp Guru

    Member
    9,983
    5,040
    May 27, 2016
    United States
    New York
    Yeah but i mean like for the songs in video games, that have a intro and then loops repeating a specific part after the intro is finished. Like Green hill zone in sonic the hedgehog.

    If i used a wav file it would just repeat the song from the beginning with the intro playing every time, i want to make looping points like video games have so the music is never awkwardly interrupted like some PSX games have done when music pause to repeat playback.
     
  6. westwood

    westwood GBAtemp Regular

    Member
    100
    26
    Mar 29, 2016
    Gambia, The
    Sry but i dont know the answer for that. Maybe it could be that games saves these Kind of Informations somewhere else where and how songs getting looped etc. Never tried to change the Music in a Game...
     
  7. Voxel

    Voxel Fable Junkie

    Member
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,195
    5,885
    Jun 27, 2015
    United Kingdom
    England, UK
    Erm, I don't exactly see any output option for AT9 in Audacity, so I'm not 100% sure what's being said there...

    Also, the looping data is stored in the AT9 file, not anywhere else. Again, at9tool is the definitive tool here; it can set looping starts and looping ends for the music, and looks to be the only tool which can achieve that at the moment, afaik.

    Although I am not too sure on how setting the looping values works. (You might have to specify a specific time or offset in the music.) I'll have to take a look at the documentation for you, and get back to you on that...
     
  8. westwood

    westwood GBAtemp Regular

    Member
    100
    26
    Mar 29, 2016
    Gambia, The
    @Voxel no, i said you can output WAV files in Audacity. Not AT9. So if you have mp3, m4a files and so on, you can convert them to WAV with Audacity :D
     
  9. Voxel

    Voxel Fable Junkie

    Member
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,195
    5,885
    Jun 27, 2015
    United Kingdom
    England, UK
    Huh, you said to "convert" the WAVs using Audacity, so I automatically assumed that you meant converting them from WAV to AT9 or something. Oh well, these mistakes happen I guess lol...

    Online audio converters are also a thing as well.