Valve MP3 Player: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page Valve MP3 Player/en to Valve MP3 Player without leaving a redirect: Move en subpage to basepage)
m (Fix grammatical issues)
 
Line 11: Line 11:


==Note from DrN0==
==Note from 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.  
To activate the MP3 player in your mod of course you'll have to add the <code>.res</code> files for the MP3 player into your folder. You'll need <code>mp3player.cpp</code>, <code>mp3player_db.txt</code>, <code>mp3player_english.txt</code>, <code>mp3settings.txt</code> in the resource folder. In the <code>src</code> folder of your mod using your SDK editing solution, you should find <code>mp3player.cpp</code> and <code>.h</code> in the folder <code>mp3</code>. Open the <code>mp3player.cpp</code> and change the top line from a <code>0</code> to a <code>1</code>.  
#if 0 to a 1
#If 0, change to a 1
#include "mp3player.h"
#include "mp3player.h"
#include "KeyValues.h"
#include "KeyValues.h"
#include "filesystem.h"
#include "filesystem.h"

Latest revision as of 00:32, 4 September 2024

English (en)Español (es)Русский (ru)Translate (Translate)
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.

Note from DrN0

To activate the MP3 player in your mod of course you'll have to add the .res files for the MP3 player into your folder. You'll need mp3player.cpp, mp3player_db.txt, mp3player_english.txt, mp3settings.txt in the resource folder. In the src folder of your mod using your SDK editing solution, 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.

  1. If 0, change to a 1
  2. include "mp3player.h"
  3. include "KeyValues.h"
  4. include "filesystem.h"