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:

Thank You for your continued support and contributions!

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

Author Topic: UISimulator  (Read 14066 times)

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
UISimulator
« on: September 16, 2005, 07:23:04 AM »
I am able to compile the code but I dont know how to use the simulator. I assume that when compiling you have to choose a simulator build but what then? Are there any instructions about this? I couldn't find any on the WIKI.
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline tucoz

  • Rockbox Expert
  • Member
  • *
  • Posts: 110
Re: UISimulator
« Reply #1 on: September 16, 2005, 07:46:41 AM »
Have you had a look at this page?
http://www.rockbox.org/docs/uisimulator.html
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: UISimulator
« Reply #2 on: September 16, 2005, 09:24:34 AM »
Aha.. thanks Tukoz the one place i didnt look was in the docs! ::)

So just to get this straight.... i need to
i) download the uisimulator folder using CVS
ii) compile as usual but choose simulator build
iii) instead of 'make zip' to create the zip file i type 'make install'
iv) fill up the subdirectory with music, jpgs cfg files etc
v) type rockboxui in the compiled directory

and i'm away... does this sound right?
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 #3 on: September 16, 2005, 10:11:15 AM »
Quote from: Mmmm on September 16, 2005, 09:24:34 AM
Aha.. thanks Tukoz the one place i didnt look was in the docs! ::)

So just to get this straight.... i need to
i) download the uisimulator folder using CVS
ii) compile as usual but choose simulator build
iii) instead of 'make zip' to create the zip file i type 'make install'
iv) fill up the subdirectory with music, jpgs cfg files etc
v) type rockboxui in the compiled directory

and i'm away... does this sound right?

Yep, that's it - I've just tried it myself (it must be fairly easy then!) and it's fantastic to be able to see my WPS and fiddle without repeatedly connecting and disconnecting my iRiver!
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 #4 on: September 16, 2005, 10:17:32 AM »
Brilliant... I cant wait to get home and try it then... now for a bit of clock watching................
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 #5 on: September 16, 2005, 02:22:05 PM »
OK, I've tried it and it seems to be alright but it doesn't actually play the files, it just sits there at 0.00. Ffd and rwd work fine but it won't progress through the track on its own!

What have i done wrong? I chose win32 because i'm running windows, is that right?

 ???
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 #6 on: September 16, 2005, 02:58:49 PM »
I also selected Win32 for Windows, and likewise it doesn't actually play the track - I suspect it's something to do with the simulator not having the capacity to access your hardware.  It shows Ffd and Rwd fine though, probably just simulating what would happen without actually playing it.

I must stress, all the above is a guess!  Maybe someone with more in depth knowledge (perhaps Daniel Stenberg, I seem to remember him saying he wrote it - sorry if wrong) could explain what it actually does?
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: UISimulator
« Reply #7 on: September 16, 2005, 04:48:23 PM »
Yes, I wrote the initial (and most other) X11 parts of it. I also recently added the music playback abilities to the X11 (linux/cygwin) version. I don't run windows and I don't develop on windows so win32 things is generally beyond me.

If it doesn't play sound for you, then start figuring out why and fix it!

Things don't always fix themselves by magic you know.
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: UISimulator
« Reply #8 on: September 16, 2005, 05:09:09 PM »
Quote from: Daniel Stenberg on September 16, 2005, 04:48:23 PM
I don't develop on windows so win32 things is generally beyond me.

oh...that's a shame.. :(

Quote from: Daniel Stenberg on September 16, 2005, 04:48:23 PM
If it doesn't play sound for you, then start figuring out why and fix it!
Believe me, if its beyond you then I really dont have even the faintest inkling of a chance !;)

I don't suppose thare is any possible way of using the X11 parts on windows is there?

Now I just know that was a silly question! ;D

Maybe the time has come to dump windows! ;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 #9 on: September 16, 2005, 05:22:03 PM »
I also have a couple more questions....

Is it possible to simulate the hold button?
Is it possible to simulate plugging in the charger?
and finally how does it decide on the battery level and can I change it?

Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline kenshin

  • Member
  • *
  • Posts: 366
  • IRC Nick: kenshin
Re: UISimulator
« Reply #10 on: September 16, 2005, 06:20:43 PM »
Quote from: Daniel Stenberg on September 16, 2005, 04:48:23 PM
I don't run windows and I don't develop on windows so win32 things is generally beyond me.

You're not the only one. Count me in, too... :)

Quote from: Mmmm on September 16, 2005, 05:22:03 PM
Is it possible to simulate the hold button?

I trust you are wondering about this for WPS purposes? If so, put your image in the "else" condition for the test then switch it into the "if" condition when you're happy.

Quote from: Mmmm on September 16, 2005, 05:22:03 PM
Is it possible to simulate plugging in the charger?

I trust you are wondering about this for WPS purposes? If so, put your image in the "else" condition for the test then switch it into the "if" condition when you're happy.

Quote from: Mmmm on September 16, 2005, 05:22:03 PM
and finally how does it decide on the battery level and can I change it?

It seems to be always on battery level 3. Change it? Patch the simulator code.
Logged
kenshin/kawika/sithia

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: UISimulator
« Reply #11 on: September 17, 2005, 05:00:47 AM »
The Win32 simulator is capable of playing sound (though the support isn't complete, it should be at the same level as the X11 simulator), but it won't build with that support by default; you have to edit autoconf.h first.

Still, as long as the codecs are properly installed, it should "play", and not be stuck at 0:00, but it can take a little while for it to start.
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: UISimulator
« Reply #12 on: September 17, 2005, 05:15:22 AM »
Lear : are you saying that i have to edit autoconf.h first or that it should play if I wait a bit?

Do you know what I have to change in autoconf.h?

Kenshin: Thanks, that answers my questions. I suppose if it wasn't for WPS purposes I'd have to patch the sim code to get these things working would I?
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 #13 on: September 17, 2005, 06:31:41 AM »
Quote from: Daniel Stenberg on September 16, 2005, 04:48:23 PM
If it doesn't play sound for you, then start figuring out why and fix it!

Things don't always fix themselves by magic you know.

I would if I could, believe me.  The extent of my programming skills are limited VB.  I was guessing that the playback capability wasn't there, not complaining it wasn't.

Quote from: Lear on September 17, 2005, 05:00:47 AM
The Win32 simulator is capable of playing sound (though the support isn't complete, it should be at the same level as the X11 simulator), but it won't build with that support by default; you have to edit autoconf.h first.

That's interesting.  Given my non existant programming, I'll wait until someone else pokes around then hopefully tells me how to do it.  I certainly have the relevent codecs as sound (mp3/ogg etc) plays on my computer otherwise.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: UISimulator
« Reply #14 on: September 17, 2005, 07:36:05 AM »
Quote from: Mmmm on September 17, 2005, 05:15:22 AM
Lear : are you saying that i have to edit autoconf.h first or that it should play if I wait a bit?

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.

Quote
Do you know what I have to change in autoconf.h?

#define ROCKBOX_HAS_SIMSOUND

It's there already though #undef:ed.
Logged

  • 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.153 seconds with 22 queries.