Valve MP3 Player

From Valve Developer Community
Jump to: navigation, search
English (en)Русский (ru)Español (es)
Edit
The player interface.

The Valve MP3 Player is an in-game player of MPEG Layer III audio files. It is only available in mods with new client DLL that have edited "mp3_player.cpp/h".

The player can be activated using the mp3 console command. It is able to access music files of installed Source games as well as those stored on an external file system (e.g. on a hard disk or CD).

Currently, it has a built-in volume control with a (non-functional) Mute button, Shuffle mode, reading of ID3 tags as well as a (currently not implemented) seeking bar.

DrN0 - because i found nothing on google and this tihs is soo cool but stupid at the same time. to activate the mp3 player in your mod of course youll have to add the .res files for the mp3 player into your folder. youll need mp3player.cpp mp3player_db.txt mp3player_english.txt mp3settings.txt in the resource folder. in your src folder of the mod using your game solution to edit the sdk, you should find mp3player.cpp and .h in the folder MP3. open the mp3player.cpp and change the top line from a 0 to a 1 lmao.

  1. if 0 to a 1
  2. include "mp3player.h"
  3. include "KeyValues.h"
  4. include "filesystem.h"