As others suggested, by ripping sounds, graphics, etc. from games you are hitting some legal issues. Similarly like using emulators with ROM files. Anyway there are more options to do this...
- specific file format
I am not familiar with Atari but on Z80 + AY-8912 based sounds there is the:
Which contains sounds related stuff (both Z80 sound routines and sound data). There where some tools for sound extracting to an AY files. Here first hit in google I found just now:
May be on Atari there is something similar. I would start with searching for sound chip / circuitry ID and relevant file format for it. If found then its just a matter of google search...
- sound engine
If no such Atari related file format found then you need to either identify sound program with what the sound was created. Back in the days there where common known sound engines that where widely used so usually by identifying the type of sound or number of channels or specific effects you already know the music routine...
As the sounds where usually a mix of polyphony synthetizer (usually 3 channels) and PCM effects (1 or 2 bits) and PCM Noise it can be sometimes converted to:
- MIDI
- MOD or STM wavetable based formats
so WAV/MP3 is not the only option here. But without a proper tools for your platform it would need big effort to do such thing...
If you know the sound program then you can more easily locate the sound data and subroutines for playback easing up the extraction (by automating it).
- Record the sound from emulator or real HW
For arbitrary sound you need to play the game/program record everything and hope you did not miss too much sounds.
- Open source
In some cases some games have been open sourced over the years in such case its easier to download the source code with data and use that than extracting the stuff from binaries...