Erik Faye-Lund
ab243a6c1a
add basic gcc support
2010-09-04 14:32:26 +02:00
Erik Faye-Lund
6aafb683cc
select: send in socket + 1
2010-09-04 14:32:25 +02:00
Erik Faye-Lund
1d4e1bb795
gcc: fix compilation warnings
2010-09-04 14:32:24 +02:00
Erik Faye-Lund
d3dd8a78f0
player: fix typo hanle->handle
2010-08-31 19:33:52 +02:00
Erik Faye-Lund
68ae5f69a6
editor: style-nit
2010-08-29 23:43:10 +02:00
Erik Faye-Lund
6693c3f8f4
protocol: use network byte-order
...
The network code assumes that the client and server have the
same endianess. This isn't always the case, so let's change
it all to network byte-order.
This change is not backwards compatible, so old clients and
new editors (or vica verca) will not work together any more.
2010-08-29 23:43:10 +02:00
Erik Faye-Lund
9d4aea28fb
player: do not assume 32-bit ints
...
The player can be compiled for other architectures than Windows,
where ints aren't 32-bit. 64-bit Mac/Linux are not-that-unlikely
examples.
2010-08-29 23:43:09 +02:00
Erik Faye-Lund
163194e338
editor: increase warning level and fix warnings
...
While we're at it, let's fix-up some code-style errors.
2010-08-29 23:43:08 +02:00
Erik Faye-Lund
878d1534f1
player: increase warning level and fix a warning
2010-08-29 23:40:47 +02:00
Erik Faye-Lund
fbc958adeb
player: make port unsigned short
...
TCP ports are unsigned 16 bit integer, so let's use a more natural
type for it.
2010-08-27 21:20:10 +02:00
Erik Faye-Lund
c600e2abbe
player: wrap up send and recv
...
This leads to much simpler error checking.
Add casts so the inlined code can be called from the editor's
C++ code.
2010-08-25 23:38:24 +02:00
Erik Faye-Lund
078e344b24
player: require explicit connection-call
...
This makes it possible to change the host and port used
for connections between player and editor without
recompiling the library.
2010-08-25 23:21:51 +02:00
Erik Faye-Lund
bd9408fa85
player: make sync_update report error
2010-08-25 22:59:35 +02:00
Erik Faye-Lund
5c359b035d
player: completely remove sync_update when not needed
2010-08-25 22:59:35 +02:00
Erik Faye-Lund
2a44eff473
player: pass row as integer to sync_update
...
There's no point in passing the row as a double to sync_update, which
only cares about the integer-part.
2010-08-25 22:59:34 +02:00
Erik Faye-Lund
99e2489e89
example: do not output error message twice
2010-08-25 22:50:32 +02:00
Erik Faye-Lund
41d6b1bf7d
example: make sure that the SYNC_PLAYER flag is set
2010-08-25 22:50:32 +02:00
Erik Faye-Lund
a70f77ad0c
example: fix Win32 error-reporting code-path
2010-08-25 22:50:28 +02:00
Erik Faye-Lund
197f80010c
editor: refactor command-processing
2010-07-26 13:02:19 +02:00
Erik Faye-Lund
e640a4ab6a
editor: explicit C-declaration around sync/data.h
...
Trade an explicit extern "C" declaration for three
defined(__cplusplus) wrapped ones.
2010-07-06 23:03:37 +02:00
Erik Faye-Lund
12595c74f5
player: return const-pointer from sync_get_track()
...
There's no uses of sync_get_track() that can't do without a pointer to
a const object any more. Making sync_track const helps us 64k-proof
the code.
2010-07-06 21:09:37 +02:00
Erik Faye-Lund
47d8e9de6c
editor: fix aborting save on exit
2010-07-05 19:07:02 +02:00
Erik Faye-Lund
1e94cd9975
Merge branch 'work/no-console'
2010-06-18 20:16:12 +02:00
Erik Faye-Lund
d68a38f451
editor: clean up error reporting
2010-06-18 20:09:01 +02:00
Erik Faye-Lund
12328ce6b8
editor: do not create a console window
2010-06-18 20:09:00 +02:00
Erik Faye-Lund
6ff7583935
editor: remove dead code
...
In 0e0b99e5, I accidentally committed some dead code. Remove it.
2010-06-18 20:08:24 +02:00
Erik Faye-Lund
31ec5064b2
editor: allow reordering tracks by dragging mouse
...
Previously the only way of reordering tracks were with an
obscure keyboard short-cut. Most users would expect to be
able to do this with the mouse, so we'll allow that.
2010-06-18 16:29:11 +02:00
Erik Faye-Lund
b5edcbe55d
editor: make autoscrolling optional
2010-06-18 16:29:09 +02:00
Erik Faye-Lund
6d9b923461
editor: use beam-cursor in track view
2010-06-18 16:29:08 +02:00
Erik Faye-Lund
539522eb1e
Merge branch 'work/update-scrollbars'
2010-04-26 21:15:12 +02:00
Erik Faye-Lund
128457b5fa
Merge branch 'work/status-interp-mode'
2010-04-25 14:32:05 +02:00
Erik Faye-Lund
d1403d63f2
editor: refactor status-bar creation
2010-04-25 14:31:35 +02:00
Erik Faye-Lund
51d1e706bf
editor: show interpolation mode
...
Show the interpolation mode in the status-bar. This is a little bit
more useful for people who are new to GNU Rocket than just using some
undocumented color-code in the track.
2010-04-25 14:31:23 +02:00
Erik Faye-Lund
89b2147cb5
Merge branch 'work/doc-improvements'
2010-04-25 14:28:51 +02:00
Erik Faye-Lund
cda73d0960
editor: update scrollbars after loading
2010-04-20 21:40:18 +02:00
Erik Faye-Lund
6f5c079335
documentation: document how to install bass
2010-04-20 20:41:10 +02:00
Erik Faye-Lund
3b4ee498c9
documentation: correct a spelling mistake
2010-04-20 20:41:09 +02:00
Erik Faye-Lund
6ec6206e9f
documentation: document editor-usage
...
Add a very basic overview of the editor-usage, and a list of keyboard
shortcuts.
2010-04-20 20:40:43 +02:00
Erik Faye-Lund
87e5f0d421
editor: reduce hinstance getting
...
Store hInstance in a global variable instead of getting it over and
over again.
2010-04-20 20:01:55 +02:00
Erik Faye-Lund
a56dc45690
interpolation: smooth means smoothstep, not cosine
...
Smoothstep[1] is a nice smooth alternative to cosine that
doesn't require special math functons, and should thus be
suitable on more platforms. The cosine-curve and the
smoothstep are very similar, and this change introduces
only a very small error (always less than 1 per cent)
compared to the old result.
Change the smooth curve definition to match this.
[1]: http://en.wikipedia.org/wiki/Smoothstep
2010-03-25 00:13:02 +01:00
Erik Faye-Lund
9f6eeb0b5d
editor: portability fixes
...
This is mostly just nit-pickery that allows most of the editor to
be compiled with MinGW. The nasty COM-stuff for the XML-loader in
syncdocument.cpp is still not compiling, though. There's also some
missing resource definitions, it seems.
2010-03-24 21:41:35 +01:00
Erik Faye-Lund
f22e5c3bcd
editor: support unicode filenames
2010-03-24 20:08:44 +01:00
Erik Faye-Lund
f5c2fc032e
editor: remove traces of stdafx
2010-03-24 19:01:00 +01:00
Erik Faye-Lund
892e1e1a97
editor: max char width constness
2010-03-24 18:21:16 +01:00
Erik Faye-Lund
06c75438cf
editor: get rid of some TCHARism
...
We dont need unicode everywhere. TCHARism is just noise.
2010-03-24 18:21:09 +01:00
Erik Faye-Lund
7934871684
client: make sync_track_path static
2010-03-24 17:58:20 +01:00
Erik Faye-Lund
88e9a4bf48
client: do not purge data when reconnetion failed
2010-03-20 16:18:21 +01:00
Erik Faye-Lund
0a362b42a4
client: allow reconnection to gather all data
...
A stray semicolon blocked purge_and_rerequest() to always
terminate after the first track, and report failure.
2010-03-20 16:15:12 +01:00
Erik Faye-Lund
fc9e038f3f
client: unbreak SET_KEY and DELETE_KEY
...
In 70bcea3, I introduced incorrect handling of SET_KEY
and DELETE_KEY, leading to error on each connection.
Fix this by negating the condition.
2010-03-20 15:59:24 +01:00
Erik Faye-Lund
e6a7dca881
add a README-file
2010-03-19 17:41:38 +01:00