From f888c252ed548b6f1363781df81542767d1a121f Mon Sep 17 00:00:00 2001 From: Felix Arends Date: Fri, 28 Jun 2002 14:57:03 +0000 Subject: [PATCH] win32 simulator up-to-date git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1249 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/win32/mpeg.c | 86 ++++++++++++++++++++++++++++++++ uisimulator/win32/uisw32.suo | Bin 13312 -> 13312 bytes uisimulator/win32/uisw32.vcproj | 17 +++---- 3 files changed, 93 insertions(+), 10 deletions(-) diff --git a/uisimulator/win32/mpeg.c b/uisimulator/win32/mpeg.c index b16dbb40dc..11fa98c02b 100644 --- a/uisimulator/win32/mpeg.c +++ b/uisimulator/win32/mpeg.c @@ -21,6 +21,67 @@ the target */ #include "debug.h" +#include "mpeg.h" + +static char *units[] = +{ + "%", /* Volume */ + "%", /* Bass */ + "%" /* Treble */ +}; + +static int numdecimals[] = +{ + 0, /* Volume */ + 0, /* Bass */ + 0 /* Treble */ +}; + +static int minval[] = +{ + 0, /* Volume */ + 0, /* Bass */ + 0 /* Treble */ +}; + +static int maxval[] = +{ + 50, /* Volume */ + 50, /* Bass */ + 50 /* Treble */ +}; + +static int defaultval[] = +{ + 70/2, /* Volume */ + 50/2, /* Bass */ + 50/2 /* Treble */ +}; + +char *mpeg_sound_unit(int setting) +{ + return units[setting]; +} + +int mpeg_sound_numdecimals(int setting) +{ + return numdecimals[setting]; +} + +int mpeg_sound_min(int setting) +{ + return minval[setting]; +} + +int mpeg_sound_max(int setting) +{ + return maxval[setting]; +} + +int mpeg_sound_default(int setting) +{ + return defaultval[setting]; +} void mpeg_volume(void) { @@ -59,6 +120,10 @@ struct mp3entry* mpeg_current_track(void) return 0; } +void mpeg_sound_set(int setting, int value) +{ +} + #ifndef MPEGPLAY void mpeg_play(char *tune) { @@ -66,4 +131,25 @@ void mpeg_play(char *tune) tune); } +int mpeg_val2phys(int setting, int value) +{ + int result = 0; + + switch(setting) + { + case SOUND_VOLUME: + result = value * 2; + break; + + case SOUND_BASS: + result = value * 2; + break; + + case SOUND_TREBLE: + result = value * 2; + break; + } + return result; +} + #endif diff --git a/uisimulator/win32/uisw32.suo b/uisimulator/win32/uisw32.suo index d9f11105d1c98544e3eec025c87f99db6a45f1b5..a60bb1e9aa7662c01189863dc091a7d1fa198d91 100644 GIT binary patch delta 851 zcmZq3Xvo-*!@|~ZXU>7ma+8Z#F7h&PGcYg+0`Y$!n0%2%WwHYY%jOE!)2zGms`GxQNb2|@ zM#g8G56IgvPJW^*Hd#o~Ok57T+R5>XU$mYv-)00`E00|f#2r8nGEQ#PuA4lELuInO za)tt2n<92?lV8hDoxGAmd~&{O2Ex%wI23e|c< z430o7540Kt&aO5QdcSY&JzyfVV9;eSgQk$l%as>Q)>MwzT(9HG#=`?t2=XB;Rd4=c H#KQ;xA=vTm delta 823 zcmZq3Xvo-*!@_o;Hl1s-%;X}Li@c273=9napKoK4!(aB$={3kn$ z+D>ke_Tb<|k&vFPz|MS|5$OE?|K*q%m~*~@G=ss0?5|8Gfc(wtWn>r;s^oE~dM$f} zk&%7#0eKrn#*E2-6}-h2u&bOLulPk1ZmA-6MT{_4Ox~cpc(S~52EqYK*mX>9*IqC= zUp5AzP#K59*RoS5+o;qd6sq7*cw6NULXj#?MN1~nR*OLRNDaF}WFOT}exM*Ud98Xm zr!LT+4nS-&c_Obcrz((T0K}Rg9xEtm$bwQ3quJz2O>;)W$s09|br{4M;DM)(->PSm z9}4(Ro~yA~6BNA~_!KiS{9y#SaPmT6f?dGNGTB92f&-Y=EEsed%%H~DOkS&1wz*!% Vm5oObs1&3el&rx?{)-V0BLLiS@nrx2 diff --git a/uisimulator/win32/uisw32.vcproj b/uisimulator/win32/uisw32.vcproj index b4ae9dd107..ff157bd5d5 100644 --- a/uisimulator/win32/uisw32.vcproj +++ b/uisimulator/win32/uisw32.vcproj @@ -179,7 +179,13 @@ RelativePath="panic-win32.c"> + RelativePath="..\..\apps\playlist.c"> + + + + - - - - - -