Commit graph

917 commits

Author SHA1 Message Date
Michael Sevakis
4b902679cc Convert queues to use intptr_t for event data and return values as most of the time pointer are not passed and it should make some things a bit cleaner.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
2006-12-19 16:50:07 +00:00
Michael Sevakis
43c15921e4 Add queue_send synchronous message sending. Right now only for SWCODEC. Actual usage to be added to playback and recording shortly in upcoming commits.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11776 a1c6a512-1295-4272-9138-f99709370657
2006-12-16 18:35:12 +00:00
Jens Arnold
780f79e7a4 Removed the Gmini 120 and Gmini SP code. These ports are dead, unfortunately.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11504 a1c6a512-1295-4272-9138-f99709370657
2006-11-10 20:26:01 +00:00
Miika Pekkarinen
0dd7ea2d71 Support building tagcache db natively on PC using the core of the
Rockbox tagcache database engine. Only host endian support at the
moment and no command line parameters. Mainly for developers for
debugging at the moment.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11497 a1c6a512-1295-4272-9138-f99709370657
2006-11-10 08:03:33 +00:00
Michael Sevakis
4aa01ed5f0 Fixed the errors on the sims.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11454 a1c6a512-1295-4272-9138-f99709370657
2006-11-06 18:36:10 +00:00
Michael Sevakis
0f5cb94aa4 Big Patch adds primarily: Samplerate and format selection to recording for SWCODEC. Supprort for samplerates changing in playback (just goes with the recording part inseparably). Samplerates to all encoders. Encoders can be configured individually on a menu specific to the encoder in the recording menu. File creation is delayed until flush time to reduce spinups when splitting. Misc: statusbar icons for numbers are individual digits to display any number. Audio buffer was rearranged to maximize memory available to recording and properly reinitialized when trashed. ColdFire PCM stuff moved to target tree to avoid a complicated mess when adding samplerate switching. Some needed API changes and to neaten up growing gap between hardware and software codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11452 a1c6a512-1295-4272-9138-f99709370657
2006-11-06 18:07:30 +00:00
Steve Bavin
46925b32a7 Oops, sim was missing a queue function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11421 a1c6a512-1295-4272-9138-f99709370657
2006-11-03 10:12:15 +00:00
Jens Arnold
a796260a6b Next step of Makefile tuning: * Use 'make' internal commands for printing messages. Saves build time especially on cygwin. * SILENT variable used in more places. * Bitmap build system uses one Makefille less.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11369 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 21:48:06 +00:00
Barry Wardell
24f4a2a8cf Allow the Sansa e200 UI simulator to be built. Thanks to Andre Smith for the nice image of the Sansa. Lots more to be done including testing and tweaking the keymaps and modifying the plugins for the Sansa's 176x220 LCD.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11351 a1c6a512-1295-4272-9138-f99709370657
2006-10-26 13:38:09 +00:00
Jens Arnold
d1ce4e779e Consistent style of 'make' messages. Always use ranlib after ar.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11322 a1c6a512-1295-4272-9138-f99709370657
2006-10-23 22:33:39 +00:00
Jens Arnold
43528c770e Make the SDL simulator a console app on cygwin, and circumvent SDL_main. Debug output finally appears on the console again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11309 a1c6a512-1295-4272-9138-f99709370657
2006-10-22 12:41:13 +00:00
Barry Wardell
5db8081822 Fix build errors in H100 and H300 UI simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11306 a1c6a512-1295-4272-9138-f99709370657
2006-10-21 23:22:34 +00:00
Barry Wardell
d5e628f4ed Simplify the numeric keypad -> device button mapping in the UI simulator for all targets. Split the mapping by target keypad type, rather that by what button a target has. Also, add a mapping for the Sansa e200 series.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11304 a1c6a512-1295-4272-9138-f99709370657
2006-10-21 22:34:09 +00:00
Jens Arnold
edc19fb56a Added necessary bits & pieces for building an ipod 3rd gen simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11239 a1c6a512-1295-4272-9138-f99709370657
2006-10-16 18:15:36 +00:00
Barry Wardell
64f949f295 Allow UI simulator to be build on OS (Slightly updated version of FS5767)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11094 a1c6a512-1295-4272-9138-f99709370657
2006-09-29 16:15:11 +00:00
Steve Bavin
8c9d5f35f0 Improve simulator use of multiple codecs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11083 a1c6a512-1295-4272-9138-f99709370657
2006-09-28 08:46:28 +00:00
Steve Bavin
076ab8d206 Fixed settings persistence for simulators
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11082 a1c6a512-1295-4272-9138-f99709370657
2006-09-28 08:45:40 +00:00
Miika Pekkarinen
a85044bf9e New scheduler, with priorities for swcodec platforms. Frequent task
switching should be more efficient and tasks are stored in linked
lists to eliminate unnecessary task switching to improve performance.
Audio should no longer skip on swcodec targets caused by too CPU
hungry UI thread or background threads.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
2006-09-16 16:18:11 +00:00
Daniel Ankers
8300d8c194 Oops - fix warnings and add a simulator version of remove_thread_on_core()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10876 a1c6a512-1295-4272-9138-f99709370657
2006-09-03 21:00:19 +00:00
Daniel Ankers
9bb3128235 Fix simulation of threads across multiple cores
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10875 a1c6a512-1295-4272-9138-f99709370657
2006-09-03 20:21:21 +00:00
Miika Pekkarinen
d70bd0e03d FS#5884 Fix simulator file delete/rename with dircache.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10757 a1c6a512-1295-4272-9138-f99709370657
2006-08-26 14:19:18 +00:00
Barry Wardell
99c2dc5284 Add new build target for iriver H10 5/6Gb.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10661 a1c6a512-1295-4272-9138-f99709370657
2006-08-19 19:21:17 +00:00
Tomasz Malesinski
a19032c550 Iriver iFP7xx support in simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10650 a1c6a512-1295-4272-9138-f99709370657
2006-08-18 19:14:11 +00:00
Hristo Kovachev
1792170633 Add remote_type() to the uisim for h100/h300 builds. Use the "t" key to switch between remote types (only changes the remote_type()'s return value for now)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10577 a1c6a512-1295-4272-9138-f99709370657
2006-08-15 08:33:38 +00:00
Dan Everton
9d2929b79b Remove Win32 and X11 simulator sources. They've been deprecated for a while in favour of the SDL sim. Time to go.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10543 a1c6a512-1295-4272-9138-f99709370657
2006-08-12 10:28:30 +00:00
Hristo Kovachev
9dc0e62229 Patch #5731 by Barry Wardell: more iriver h10 work. Thanks!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10521 a1c6a512-1295-4272-9138-f99709370657
2006-08-11 08:35:27 +00:00
Daniel Stenberg
e43b29dde2 iriver H10 fixes by Barry
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10450 a1c6a512-1295-4272-9138-f99709370657
2006-08-03 20:25:39 +00:00
Miika Pekkarinen
8a7b9161ab Adjust the counter even higher so it should work quite stable now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10385 a1c6a512-1295-4272-9138-f99709370657
2006-07-31 15:13:31 +00:00
Miika Pekkarinen
957bf22879 Prevent simulator SDL audio skipping under OS X (FS#5748 by Emanuel
Zephir).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10384 a1c6a512-1295-4272-9138-f99709370657
2006-07-31 15:11:03 +00:00
Miika Pekkarinen
4222f6ce0d Prevent the simulator SDL audio skipping under Linux.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10383 a1c6a512-1295-4272-9138-f99709370657
2006-07-31 15:02:39 +00:00
Jens Arnold
05ddd9a44e X5 remote LCD drawing. This will break target linking atm - lcd_remote_update[_rect]() are not yet implemented.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10347 a1c6a512-1295-4272-9138-f99709370657
2006-07-28 07:35:45 +00:00
Linus Nielsen Feltzing
c849219370 Moved the X5 button driver to the target tree
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10339 a1c6a512-1295-4272-9138-f99709370657
2006-07-27 13:27:31 +00:00
Jens Arnold
9051afa8a0 Contrast setting cleanup: * Only include contrast setting for targets where it's used. * Make lcd_default_contrast() a stub for simulators.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10317 a1c6a512-1295-4272-9138-f99709370657
2006-07-25 11:15:50 +00:00
Antoine Cellerier
ebfb4f3ab2 Bind F8 key to "on" button (usefull if you don't have a numpad)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10287 a1c6a512-1295-4272-9138-f99709370657
2006-07-22 23:10:51 +00:00
Peter D'Hoye
5aa017b040 Simulator: map ESC key to POWER button as a way to exit plugins. Patch #5681 by Rani Hod (RaeNye).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10244 a1c6a512-1295-4272-9138-f99709370657
2006-07-19 00:39:30 +00:00
Hardeep Sidhu
25377dbd7d Simulator: two codecs may be loaded at same time if voice is enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10130 a1c6a512-1295-4272-9138-f99709370657
2006-06-17 09:42:16 +00:00
Jens Arnold
ae0c1af6ce Adjustments for simulating a backlight-modded Ondio.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10038 a1c6a512-1295-4272-9138-f99709370657
2006-06-03 12:09:12 +00:00
Jens Arnold
25f386017c Fix red playersim build on linux, and make it a bit less hackish.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9978 a1c6a512-1295-4272-9138-f99709370657
2006-05-23 10:00:11 +00:00
Jens Arnold
8325e0bf24 Implemented screendump for the player sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9977 a1c6a512-1295-4272-9138-f99709370657
2006-05-23 07:48:43 +00:00
Brandon Low
9cde77060a Patch 5107 from Steve Bavin, enable locking on sdl sim, now mutexes actually MUT EX on the SDL sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9638 a1c6a512-1295-4272-9138-f99709370657
2006-04-12 15:38:56 +00:00
Jens Arnold
4c544b4e07 Fix greyscale iPod sims for new LCD format.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9480 a1c6a512-1295-4272-9138-f99709370657
2006-04-04 01:40:11 +00:00
Jens Arnold
80865f2440 UI pictures for iPod mini 1G and 2G simulators.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9435 a1c6a512-1295-4272-9138-f99709370657
2006-04-02 19:07:27 +00:00
Dan Everton
d0c65f76b2 Use correct sleep function in simulator queue wait.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9343 a1c6a512-1295-4272-9138-f99709370657
2006-03-29 12:11:28 +00:00
Hristo Kovachev
a70c6b9b1e Patch #4913 by David Rothenberger with some changes by me: add only backlight on first keypress to the lcd remotes, too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9253 a1c6a512-1295-4272-9138-f99709370657
2006-03-25 19:16:45 +00:00
Björn Stenberg
da5fb18bca New option: First keypress enables backlight only. Patch #2920 by Nicolas Pennequin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9228 a1c6a512-1295-4272-9138-f99709370657
2006-03-24 13:47:24 +00:00
Thom Johansen
738a584a5c Use correct types, which kills some AMD64 sim warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9191 a1c6a512-1295-4272-9138-f99709370657
2006-03-22 16:04:01 +00:00
Daniel Stenberg
4582f233ce code policed // comments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9112 a1c6a512-1295-4272-9138-f99709370657
2006-03-19 06:59:36 +00:00
Dan Everton
5b3e3e1f2a Fix some incorrectly declared functions in the sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9080 a1c6a512-1295-4272-9138-f99709370657
2006-03-17 22:09:34 +00:00
Dan Everton
5f40aac300 Don't pass NULL to dlclose. Stops the simulator crashing if there's a problem loading a plugin or codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9003 a1c6a512-1295-4272-9138-f99709370657
2006-03-11 16:16:15 +00:00
Jens Arnold
4bd8715449 Don't crash the simulator when the pcm callback runs out of data.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8998 a1c6a512-1295-4272-9138-f99709370657
2006-03-11 10:22:20 +00:00
Marcoen Hirschberg
4e96f7df9f make the enter key work again in the windows SDL sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8976 a1c6a512-1295-4272-9138-f99709370657
2006-03-09 13:55:10 +00:00
Jens Arnold
38b7547ef4 Simulators: Fix pointer size vs. int size problems (64bit hosts) in plugin loader and codec loader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8880 a1c6a512-1295-4272-9138-f99709370657
2006-03-02 01:08:38 +00:00
Daniel Stenberg
342a7aacda added the SDL BMP images, removed the x11 and win32 sources
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8874 a1c6a512-1295-4272-9138-f99709370657
2006-03-01 09:21:40 +00:00
Jens Arnold
b4ada860b3 Allow building simulators on systems where errno is thread-local by using the system's implementation of errno.h for simulator builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8871 a1c6a512-1295-4272-9138-f99709370657
2006-02-28 23:56:44 +00:00
Jens Arnold
4b9fbd1687 Fix yellow H1x0 simulator builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8846 a1c6a512-1295-4272-9138-f99709370657
2006-02-26 13:58:06 +00:00
Jens Arnold
6a972e0249 Finally - grayscale library support for the simulators. Currently SDL only, win32 and x11 won't link anymore due to missing simulator functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8845 a1c6a512-1295-4272-9138-f99709370657
2006-02-26 13:37:42 +00:00
Marcoen Hirschberg
338e2bbb0c first gigabeat commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8831 a1c6a512-1295-4272-9138-f99709370657
2006-02-24 15:42:52 +00:00
Dan Everton
681bd70b4f Add iPod Video sim background contributed by aaronfg.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8819 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 21:50:34 +00:00
Dan Everton
581b0f1d43 Remove two unused variables and fix a warning in the sim peak meter function.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8818 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 21:42:53 +00:00
Dan Everton
e376545211 Make peak meter work in simulator for SWCODEC targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8815 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 21:13:03 +00:00
Jens Arnold
6876336fee Fix yellow builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8796 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 00:21:44 +00:00
Dan Everton
4f54dbd91f Better (i.e. working) sound in the SDL sim in Windows.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8793 a1c6a512-1295-4272-9138-f99709370657
2006-02-22 22:45:10 +00:00
Linus Nielsen Feltzing
37b15d3833 Protect against text-mode files in Windows by using open() instead of creat()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8781 a1c6a512-1295-4272-9138-f99709370657
2006-02-22 14:41:45 +00:00
Daniel Stenberg
18e097c8ff using --zoom with no number given defaults to 2 and no longer segfaults
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8771 a1c6a512-1295-4272-9138-f99709370657
2006-02-21 21:56:38 +00:00
Dan Everton
3945218810 Proper working sound in the SDL sim. Add option to write raw audio to a file, use --debugaudio command line option.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8770 a1c6a512-1295-4272-9138-f99709370657
2006-02-21 21:48:06 +00:00
Dave Chapman
efd78238f6 Re-commit bitmaps in binary mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8757 a1c6a512-1295-4272-9138-f99709370657
2006-02-20 23:44:22 +00:00
Dave Chapman
65e47bfd94 Remove bitmaps added in ASCII mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8756 a1c6a512-1295-4272-9138-f99709370657
2006-02-20 23:43:27 +00:00
Daniel Stenberg
abbdcacfbd minor adjustments for the x5 LCD, we're back at 16 bits for upper LCD layers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8746 a1c6a512-1295-4272-9138-f99709370657
2006-02-20 12:03:32 +00:00
Jens Arnold
3e496e3ecf Reworked player simulator icons to fit the changed charcell scale factor and look more like the actual icons. Adapted player sim display sizes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8745 a1c6a512-1295-4272-9138-f99709370657
2006-02-20 00:31:10 +00:00
Jens Arnold
237d3c4c4b Adaptive button repeat: adapts repeat rate depending on the ability of the application to cope. Avoids afterscroll and similar effects. * Yield while scrolling through lists.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8738 a1c6a512-1295-4272-9138-f99709370657
2006-02-19 13:34:12 +00:00
Dan Everton
1064f019b8 Fix permissions of directories created in the sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8726 a1c6a512-1295-4272-9138-f99709370657
2006-02-18 13:26:09 +00:00
Dan Everton
7c64631792 Actually fix the palette issue.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8705 a1c6a512-1295-4272-9138-f99709370657
2006-02-16 18:55:36 +00:00
Dan Everton
aef9e85a32 Fix palette generation and remote LCD update in SDL sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8704 a1c6a512-1295-4272-9138-f99709370657
2006-02-16 18:54:41 +00:00
Dan Everton
853085ccc8 Reverse scroll forwardd/back button mapping for iPod in the SDL sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8690 a1c6a512-1295-4272-9138-f99709370657
2006-02-14 11:46:18 +00:00
Dan Everton
3ba0060ac1 Backlight support for 8-bit targets in SDL sim. Redo sound handling. Still doesn't work right, but is closer to how the actual Rockbox system does it. Move some stub functions in to Win32 and X11 sims to keep them compiling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8686 a1c6a512-1295-4272-9138-f99709370657
2006-02-13 21:46:28 +00:00
Dave Chapman
436584f731 Add 4g grayscale support for the win32 sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8672 a1c6a512-1295-4272-9138-f99709370657
2006-02-13 01:13:04 +00:00
Dan Everton
d66c0e5d09 Correct mutex locking order in runthread. Doesn't seem to fix anything though.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8664 a1c6a512-1295-4272-9138-f99709370657
2006-02-12 12:47:20 +00:00
Dan Everton
3898dedbb1 Fix remote not being shown when displaying background in the sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8652 a1c6a512-1295-4272-9138-f99709370657
2006-02-10 19:25:39 +00:00
Dan Everton
b585e87b45 Refactor SDL sim source so drawing routines are written once. Split bitmap, remote, and charcell LCD in to their own files. Add zoom support, use --zoom factor (e.g. --zoom 2 for two times zoom) to use it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8645 a1c6a512-1295-4272-9138-f99709370657
2006-02-09 21:49:28 +00:00
Dan Everton
ee2019d591 Made backgrounds runtime optional in SDL sim. Use --background to turn them on. Also removed two unneeded files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8642 a1c6a512-1295-4272-9138-f99709370657
2006-02-09 11:17:52 +00:00
Dave Chapman
8ad2df8275 Create an SDL sim for the iPod 4G Grayscale and also create an IPOD_ARCH define for all iPods.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8636 a1c6a512-1295-4272-9138-f99709370657
2006-02-09 00:48:53 +00:00
Jens Arnold
73a28d1e93 These files don't belong here.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8631 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 13:56:00 +00:00
Jens Arnold
a57608cfb5 Correct LCD background colours for b&w and greyscale SDL sims (SDL takes RGB while Win32 takes BGR)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8630 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 13:54:21 +00:00
Jens Arnold
fd428ddf8e More SDL simulator LCD fixes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8628 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 13:19:16 +00:00
Linus Nielsen Feltzing
b772a436fa The SDL simulator didn't draw the pixels correctly on targets with gray/mono LCD, part 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8625 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 13:03:23 +00:00
Linus Nielsen Feltzing
3903807e62 The SDL simulator didn't draw the pixels correctly on targets with gray/mono LCD
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8624 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 12:43:14 +00:00
Linus Nielsen Feltzing
621bcc2294 The simulator should use the keypad period key, not the regular one
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8568 a1c6a512-1295-4272-9138-f99709370657
2006-02-04 23:15:15 +00:00
Linus Nielsen Feltzing
9394175091 Added iAudio X5 SDl sim image
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8566 a1c6a512-1295-4272-9138-f99709370657
2006-02-04 22:37:44 +00:00
Linus Nielsen Feltzing
e7c7d9b051 Bah, O_BINARY is of course Win32 only
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8564 a1c6a512-1295-4272-9138-f99709370657
2006-02-04 20:35:46 +00:00
Linus Nielsen Feltzing
8599b07113 Fixed the codec loading problem in the Win32 SDL simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8563 a1c6a512-1295-4272-9138-f99709370657
2006-02-04 20:13:06 +00:00
Linus Nielsen Feltzing
3f66e8edff Ooops :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8548 a1c6a512-1295-4272-9138-f99709370657
2006-02-03 16:01:16 +00:00
Linus Nielsen Feltzing
fc72c53758 Patch #1417462 by Dan Everton - Improved SDL simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8546 a1c6a512-1295-4272-9138-f99709370657
2006-02-03 15:19:58 +00:00
Linus Nielsen Feltzing
60e8f4f988 First steps towards SDL sim for windows
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8449 a1c6a512-1295-4272-9138-f99709370657
2006-01-25 12:15:25 +00:00
Linus Nielsen Feltzing
765e0f89d8 New kernel function, queue_delete(struct event_queue *q)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8424 a1c6a512-1295-4272-9138-f99709370657
2006-01-23 10:53:47 +00:00
Miika Pekkarinen
4503b96749 Fixed the red builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8417 a1c6a512-1295-4272-9138-f99709370657
2006-01-22 11:56:08 +00:00
Daniel Stenberg
acf7d5e89e more iAudio x5 adjustments by Matt v.d. Westhuizen (#1408980)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8386 a1c6a512-1295-4272-9138-f99709370657
2006-01-19 12:44:46 +00:00
Daniel Stenberg
cedba8830f Matt v.d. Westhuizen's iAudio X5 keypad adjustments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8366 a1c6a512-1295-4272-9138-f99709370657
2006-01-18 11:09:06 +00:00
Jens Arnold
b8749fdf21 New codec loader, using the same mechanism as the new plugin loader. API version numbering restarted for the new system. Uses the target ID from configure, so don't change that too often. * Fixed sim_plugin_load_ram() to truncate the tempfile. * Reduced plugin buffer size to 512KB for iriver and iPod.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8362 a1c6a512-1295-4272-9138-f99709370657
2006-01-18 00:05:14 +00:00
Jens Arnold
a79027743a Model & version check for simulator plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8356 a1c6a512-1295-4272-9138-f99709370657
2006-01-16 23:20:58 +00:00
Dave Chapman
bae4e2acdd Use SDL's thread wrappers instead of pthreads to increase portability in the SDL sim. Patch by Andrew Pilley with some changes by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8347 a1c6a512-1295-4272-9138-f99709370657
2006-01-13 13:38:31 +00:00
Dave Chapman
b855a9aeb6 Add button definitions for the iPod clickwheel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8346 a1c6a512-1295-4272-9138-f99709370657
2006-01-13 10:39:41 +00:00
Daniel Stenberg
130a0270bf make the x5 sim pass
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8337 a1c6a512-1295-4272-9138-f99709370657
2006-01-11 16:08:48 +00:00
Linus Nielsen Feltzing
a5750f85f3 More distinct grayscales in the H1x0 SDl simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8315 a1c6a512-1295-4272-9138-f99709370657
2006-01-09 12:46:08 +00:00
Dave Chapman
84e2528271 Fix RGB565SWAPPED lcd output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8313 a1c6a512-1295-4272-9138-f99709370657
2006-01-09 11:53:45 +00:00
Daniel Stenberg
0e419987e4 SDL simulator brought by Nathan Hand and Nick Lanham. This is added as a third
simulator with the hope that once it works fine, we can remove the other two
and only have one unified simulator.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8312 a1c6a512-1295-4272-9138-f99709370657
2006-01-09 11:22:36 +00:00
Dave Chapman
0dc63c1b71 Remove IPOD_NANO_PAD definition - the Nano's keypad has turned out to be identical to the other 4G models
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8262 a1c6a512-1295-4272-9138-f99709370657
2005-12-19 00:11:28 +00:00
Dave Chapman
060320b95c Fix red sim builds - add rtc_read_datetime and rtc_write_datetime functions for the simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8218 a1c6a512-1295-4272-9138-f99709370657
2005-12-11 02:00:28 +00:00
Magnus Holmgren
11b2ade5c8 Simplified yield() in the Win32 simulator. Now only hogs the CPU during playback, and playback doesn't stutter that much.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8143 a1c6a512-1295-4272-9138-f99709370657
2005-12-04 12:18:01 +00:00
Daniel Stenberg
ee76cc3716 silence picky gcc4 warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8097 a1c6a512-1295-4272-9138-f99709370657
2005-11-28 09:36:26 +00:00
Jens Arnold
b715b71e40 Win32 simulator: Fixed tick timer simulation for windows implementations with low timer resolution (Win9x, wine).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8068 a1c6a512-1295-4272-9138-f99709370657
2005-11-26 11:22:33 +00:00
Jens Arnold
464b6a2c4c Added iPod Nano to win32 simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8048 a1c6a512-1295-4272-9138-f99709370657
2005-11-22 23:38:38 +00:00
Kevin Ferrare
a3766bf92e added the stubs for the hold buttons on H300 simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8047 a1c6a512-1295-4272-9138-f99709370657
2005-11-22 22:52:05 +00:00
Kevin Ferrare
74b6af93b1 Added multi-screen support for quickscreen (mostly rewritten from scratch) and USB screen ; just looking at the hour makes me think it could be buggy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8039 a1c6a512-1295-4272-9138-f99709370657
2005-11-22 03:38:07 +00:00
Jens Arnold
f09b81f3d7 Properly added as binary. Replaced H300 image with smaller 8bit version.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8037 a1c6a512-1295-4272-9138-f99709370657
2005-11-22 01:25:45 +00:00
Jens Arnold
49a1b0b94b Removed for proper binary readdition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8036 a1c6a512-1295-4272-9138-f99709370657
2005-11-22 01:24:02 +00:00
Jens Arnold
49a0a945ac Win32 simulator now supports iPod Color. Fixed screendump() to correctly work for iPod simulators on big endian machines. Removed duplicate button definitions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8035 a1c6a512-1295-4272-9138-f99709370657
2005-11-22 01:15:31 +00:00
Jens Arnold
b51f7dfc9b Backlight handling: * Added 'Caption Backlight' and 'Backlight On When Charging' for the iriver remote LCD. * Enabled the backlight code for the simulator, and prepared backlight simulation. It's only a stub atm, writing messages to the console window. * Added tick task handling to the simulators for this to work. * Code cleanup in backlight.c, less dead code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8034 a1c6a512-1295-4272-9138-f99709370657
2005-11-21 23:55:39 +00:00
Jens Arnold
c6417b4a37 Win32 simulator: * Use a 16 bit display bitmap for 16bit target simulation. Simpler & faster this way. * Changed separate lcd_update() implementation into a simple call of lcd_update_rect() with the full rectangle.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7928 a1c6a512-1295-4272-9138-f99709370657
2005-11-17 17:25:56 +00:00
Daniel Stenberg
95c00323d3 repaired the h300 x11 sim build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7922 a1c6a512-1295-4272-9138-f99709370657
2005-11-17 07:17:03 +00:00
Jens Arnold
3be6cf1574 16bit colour support (H300) for the win32 simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7898 a1c6a512-1295-4272-9138-f99709370657
2005-11-15 23:37:21 +00:00
Dave Chapman
f59df8bf3c Placeholder definition for iPod keypad
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7855 a1c6a512-1295-4272-9138-f99709370657
2005-11-14 02:11:42 +00:00
Dave Chapman
fca0113f72 Define framebuffer for 16-bit displays
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7854 a1c6a512-1295-4272-9138-f99709370657
2005-11-14 02:11:26 +00:00
Jens Arnold
48be8e6a8b X11 simulator: * Correctly redraw the window when it was destroyed by overlaying (X11 'Expose' event). * Simplified, corrected and unified redraw algorithm for main & remote bitmap display.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7655 a1c6a512-1295-4272-9138-f99709370657
2005-10-23 23:49:46 +00:00
Jens Arnold
fc03c8e3c9 X11 simulator: Fixed margins and scaling (window zoom) for all simulated targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7654 a1c6a512-1295-4272-9138-f99709370657
2005-10-23 13:06:25 +00:00
Linus Nielsen Feltzing
51484e7d60 Properly stop the audio in the win32 simulated playback
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7492 a1c6a512-1295-4272-9138-f99709370657
2005-09-07 06:42:05 +00:00
Jens Arnold
d6c054575b Renamed CONFIG_HWCODEC and MASNONE to the more appropriate CONFIG_CODEC and SWCODEC, respectively.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7416 a1c6a512-1295-4272-9138-f99709370657
2005-08-29 21:15:27 +00:00
Linus Nielsen Feltzing
a81f4c35c1 Sim build fix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7373 a1c6a512-1295-4272-9138-f99709370657
2005-08-21 19:56:49 +00:00
Miika Pekkarinen
159c52dd36 Initial voice ui support for software codec platforms. Added also a
beep when changing tracks.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7360 a1c6a512-1295-4272-9138-f99709370657
2005-08-20 11:13:19 +00:00
Jens Arnold
6e4f07b508 This code wasn't used at all.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7358 a1c6a512-1295-4272-9138-f99709370657
2005-08-19 20:01:15 +00:00
Linus Nielsen Feltzing
1d28240330 Enlarged the buffer for DEBUGF()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7333 a1c6a512-1295-4272-9138-f99709370657
2005-08-16 08:32:43 +00:00
Linus Nielsen Feltzing
d3fde76fc7 FM radio simulation working again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7332 a1c6a512-1295-4272-9138-f99709370657
2005-08-16 06:50:25 +00:00
Stepan Moskovchenko
2be160af31 Woah, that was not supposed to happen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7289 a1c6a512-1295-4272-9138-f99709370657
2005-08-07 22:26:42 +00:00
Stepan Moskovchenko
fb3e9a4073 Fix error/warning, change pitch bend to 9 bits
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7288 a1c6a512-1295-4272-9138-f99709370657
2005-08-07 22:20:40 +00:00
Miika Pekkarinen
e9c0e83154 Fixed the simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7219 a1c6a512-1295-4272-9138-f99709370657
2005-07-22 06:44:47 +00:00
Miika Pekkarinen
eab434c416 More accurate playback position calculation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7218 a1c6a512-1295-4272-9138-f99709370657
2005-07-22 06:32:55 +00:00
Miika Pekkarinen
3b6a9f3bad Fixed the simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7212 a1c6a512-1295-4272-9138-f99709370657
2005-07-21 12:25:30 +00:00
Miika Pekkarinen
f090dc3829 Crossfade (and pcm buffer size) length is now configurable.
Implemented anti-skip buffer setting for iriver also. Settings block
bumped up, PLEASE SAVE YOUR SETTINGS BEFORE UPGRADING.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7210 a1c6a512-1295-4272-9138-f99709370657
2005-07-21 11:44:00 +00:00
Jens Arnold
4bee507502 Check the correct thread handle.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7209 a1c6a512-1295-4272-9138-f99709370657
2005-07-21 10:19:50 +00:00
Magnus Holmgren
568430421b Don't hog the CPU, but keep sound playback working. (This might need some tweaking...)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7206 a1c6a512-1295-4272-9138-f99709370657
2005-07-20 16:52:52 +00:00
Magnus Holmgren
2f9bb4ff27 Sound playback for the Win32 simulator, based on WaveOut. Not yet enabled by default (edit autoconf.h).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7203 a1c6a512-1295-4272-9138-f99709370657
2005-07-19 21:24:32 +00:00
Magnus Holmgren
d315dfb5b1 Made Win32 thread management similar to the X11 one (previously yield() could make a thread stop, seemingly forever).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7202 a1c6a512-1295-4272-9138-f99709370657
2005-07-19 20:43:21 +00:00
Magnus Holmgren
30b8378b68 Win32 needs the mode bits for open too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7200 a1c6a512-1295-4272-9138-f99709370657
2005-07-19 18:18:37 +00:00
Daniel Stenberg
741a7158e2 check for/use sys/soundcard.h instead (since it works for cygwin too)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7162 a1c6a512-1295-4272-9138-f99709370657
2005-07-15 21:12:18 +00:00
Miika Pekkarinen
05012ac9f7 Enable crossfade for simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7151 a1c6a512-1295-4272-9138-f99709370657
2005-07-15 07:15:39 +00:00
Jens Arnold
c19773c2b4 Win32 sim: better bitmap initialisation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7148 a1c6a512-1295-4272-9138-f99709370657
2005-07-14 22:15:10 +00:00
Daniel Stenberg
febb52fc03 First take at PCM playback in the X11 sim on Linux.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7147 a1c6a512-1295-4272-9138-f99709370657
2005-07-14 21:46:07 +00:00
Daniel Stenberg
1c47599312 brought back drawdots() and drawrectangles() since the player sim needs them
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7138 a1c6a512-1295-4272-9138-f99709370657
2005-07-14 10:35:26 +00:00
Daniel Stenberg
9872813c7d introducing H1x0 style grayscale support in the X11 sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7137 a1c6a512-1295-4272-9138-f99709370657
2005-07-14 10:02:04 +00:00
Jens Arnold
d36567d370 Win32 simulators: Fixed button repeat handling when releasing buttons.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7134 a1c6a512-1295-4272-9138-f99709370657
2005-07-13 20:04:43 +00:00
Miika Pekkarinen
20b3897474 Separated buffering stuff from pcm_playback to pcmbuf. Renamed some
function calls (audiobuffer -> pcmbuf etc.).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7131 a1c6a512-1295-4272-9138-f99709370657
2005-07-13 12:48:22 +00:00