There are a variety of sound libraries that can be used in Delphi and FreePascal/Lazarus. They all differ in terms of stability, reliability, features, cost, and support. The developer is recommended to check each one of them to decide which better fits the particular project.
Audiere is an open-source audio library capable of playing MP3, Ogg Vorbis, FLAC, WAV, IT, XM, S3M, and MOD files.
BASS is an audio library running on Windows and MacOSX. It is available in a tiny DLL (about 100 Kb) and provides support for sound samples, streams (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), and recording functions.
SquallSound is a free sound system that is capable of MP3, WAV and OGG sound playback.
This is a small audio wrapper for DirectSound with support for 2D/3D sound effects.