Valve MP3 Player

De Valve Developer Community
Saltar a: navegación, buscar
English (en)Русский (ru)Español (es)
Editar
La interface del reproductor.

El Valve MP3 Player es un Reproductor en juego de archivos de audio MPEG Layer III. Y esta disponible únicamente con mods con un Client DLL con los archivos "mp3_player.cpp/h" editados.

El reproductor puede ser abierto mediante un comando en la consola: mp3. Tiene la función de poder acceder a los archivos de música de los juegos Source y tambien de los almacenados en otros medios (Disco Duro, CD's, Etc.)

Actualmente cuenta con un control de volumen, un botón de Mute (Que no sirve), Modo aleatorio y la lectura de las etiquetas ID3.


Arreglando el Reproductor para que funcione.

Arreglar el reproductor es fácil. Abre el archivo "mp3player.cpp" en Client y ve al inicio del archivo y reemplaza...

#include "cbase.h"

#if 0
#include "mp3player.h"
#include "KeyValues.h"
#include "FileSystem.h"

Por...

#include "cbase.h"
#include "mp3player.h"
#include "KeyValues.h"
#include "FileSystem.h"

Luego, ve al final del Archivo y Elimina este fragmento de Código

static CMP3PlayerGameSystem g_MP3Helper;

#else

void MP3Player_Create( vgui::VPANEL parent )
{
}

void MP3Player_Destroy()
{
}

#endif

¡Y listo! Ve a la Consola de Programador y escribe mp3, veras como el reproductor aparece.

--Fer5567 20:28, 1 May 2013 (PDT)

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"