Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  UISimulator
« previous next »
  • Print
Pages: 1 [2] 3

Author Topic: UISimulator  (Read 14057 times)

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: UISimulator
« Reply #15 on: September 17, 2005, 07:57:29 AM »
Quote from: Lear on September 17, 2005, 07:36:05 AM
It should play (i.e., not stay at 0:00) if you wait (not very long, a couple of seconds or so, IIRC). You need to edit autoconf.h to actually hear something.

Hmmm, bizarre - mine just stays at 0:00 for however long I leave it (forgetting about hearing anything at the moment).  It claims it is playing incidently, not paused.  If I hold down right to fast forward, it skips through as normal, but when I let go just sits there at the time I skipped to without moving.

I'm not particularly bothered, as I just wanted it to preview my WPS which it does fine.  Just a  bit odd, that's all!
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: UISimulator
« Reply #16 on: September 17, 2005, 08:02:42 AM »
Mine's the same as yours Bigbambi. It just sits at 0.00 for however long it is left ???

Quote
#define ROCKBOX_HAS_SIMSOUND

It's there already though #undef:ed.

Thanks Lear, I'll give that a go although I suppose I wont know if it works seeing as it doesn't actually play!

EDIT : ok, i've changed this line to #define but it still doesn't play... as suspected... anyone any ideas?

I've tried ogg, mp3, flac and wav all with the same result.
« Last Edit: September 17, 2005, 08:43:09 AM by Mmmm »
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: UISimulator
« Reply #17 on: September 17, 2005, 04:34:17 PM »
AHA.......I have it..... well, actually Lear had it all along but I was just being too dozy to really know what he was saying!  :-[ ::)

This is the Key

#define ROCKBOX_HAS_SIMSOUND

but you have to change this just before you compile..not after!!! its so obvious, of course it's source code, must be part of the makefile, you have to compile it or it won't do anything! I'm so stupid!

So after rbconf and creating the makefile, change this, then type make, make install and everything works beautifully. The lagging keys have even stopped lagging (I forgot to tell you that it seemed to be running very slow)!

;D ;D :D :) ;D :D :D...................... 8)
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: UISimulator
« Reply #18 on: September 18, 2005, 03:38:40 AM »
Good stuff.  I'll give it a go forthwith
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: UISimulator
« Reply #19 on: September 19, 2005, 06:54:15 AM »
Is there some file i can change to include something like this so that #define ROCKBOX_HAS_SIMSOUND is the default setting for win32 simulator?

If simulator build and win32 is chosen,
create autoconf.h with

#define ROCKBOX_HAS_SIMSOUND

else
create autoconf.h with
#undef ROCKBOX_HAS_SIMSOUND

maybe something in the tools folder?
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: UISimulator
« Reply #20 on: September 19, 2005, 07:36:39 AM »
autoconf.h is created by the tools/configure script

I don't know why the win32 simulator defaults to no sound. Anyone?
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: UISimulator
« Reply #21 on: September 19, 2005, 09:15:10 AM »
Mainly because I haven't updated the configure script I guess. :)
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: UISimulator
« Reply #22 on: September 19, 2005, 11:33:39 AM »
It' a shameless hack i know but putting these two lines into tools/configure does the trick!

Code: [Select]
79  if [ "$simver" = "win32" ]; then
80      # win32 version
81       GCCOPTS="$GCCOPTS -mno-cygwin -DNOCYGWIN"
82       LDOPTS="-lgdi32 -luser32 -mno-cygwin"
+ 83    use_simsound="#define ROCKBOX_HAS_SIMSOUND"
+ 84    echo "Enabled PCM sound playback in simulator"
85   else

I suppose there should really be a call to checksoundcard and then that should do the #define but it didn't seem to work, I assume this is because it doesn't do the checking properly on a windows system! Who knows?  :D
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: UISimulator
« Reply #23 on: September 20, 2005, 12:40:02 PM »
Ive made a guide to installing the simulator which i've put at the bottom of the simple guide to compiling.

Just click on the green part of my sig to see it.
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline g-funk

  • Member
  • *
  • Posts: 2
Re: UISimulator
« Reply #24 on: October 06, 2005, 11:27:42 AM »
I just noticed that the UISim uses 99% of the CPU in windows.

At first I thought it might be cause I activated sound but now i compiled without sound and it still grabs the whole CPU even if i dont do anything and just let the UISim sit there.

Do any of you also have this problem?

Id like to fix it so if someone could help by pointing me in the right direction that would be great. Since I don't know my way around the RockBox firmware jet and ive not programmed in a long time.
Thanks :)


 
Logged

Offline g-funk

  • Member
  • *
  • Posts: 2
Re: UISimulator
« Reply #25 on: October 06, 2005, 11:38:03 AM »
I did some more testing and it looks like my CPU problem has to do with the Iriver Sim. Im using the H120/140 version.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: UISimulator
« Reply #26 on: October 06, 2005, 01:19:34 PM »
I'ver just had a look at it on my system in case it was a problem with g-funks only, but the iRiver H120/140 sim (the only one I've tried) sits at 99% CPU on mine too.

My system is an Athlon 2500+ with 1 GB of RAM, so clearly something is up!
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline hotwire

  • Member
  • *
  • Posts: 39
Re: UISimulator
« Reply #27 on: August 15, 2006, 09:33:18 PM »
Quote from: Mmmm on September 16, 2005, 05:22:03 PM
Is it possible to simulate the hold button?

Sorry to resuscitate a near dead thread, but I don't suppose we could map this to the to the Scroll Lock, and just use the Scroll Lock LED on our keyboards as a hold indicator?

Edit: Through some very preliminary reading about SDL from Google, looks like the Scroll Lock key in particular may not support this, though Caps Lock and Num Lock will.  Since for optimal use of some of the UISimulators (I'm personally more concerned with the gigabeat port), Num Lock should be on to allow use of the '5' key on the numpad, perhaps implement it where Hold is off when Num Lock is on.  I know it's a little backwards, but we're just aspiring and off/on indicator.
« Last Edit: August 16, 2006, 01:21:08 AM by hotwire »
Logged
Toshiba Gigabeat F Series Rockbox Enthusiast.  Occasional bug solution contributor.

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: UISimulator
« Reply #28 on: August 16, 2006, 01:40:50 AM »
Why not caps lock, exactly?
Logged

Offline hotwire

  • Member
  • *
  • Posts: 39
Re: UISimulator
« Reply #29 on: August 16, 2006, 12:02:46 PM »
After discussing it in the IRC channel, it was suggested that Sims that have a hold button should have a hold indicator on their wps.  I'm currently trying to implement it with Numpad7 and Numpad1 for DAP hold and remote hold, respectively, thereby also permitting it's use via the numpad since most of the Sim controls are through it.

Best reason why not to use caps lock, from personal experience is that I tend to multitask even when using the UISim, and if i turn caps lock on or off in another program, I can't easily predict the reaction to the UISim, and even if it is still okay, the point of the LED indicator becomes useless anyway.
Logged
Toshiba Gigabeat F Series Rockbox Enthusiast.  Occasional bug solution contributor.

  • Print
Pages: 1 [2] 3
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  UISimulator
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.16 seconds with 22 queries.