38 Commits

Author SHA1 Message Date
Erik Faye-Lund
8f94efbc62 player: add suport for Win64 builds
To make sure it works, add support to the example while we're at
it. Also fix compilation warnings.
2012-03-01 14:27:55 +01:00
Erik Faye-Lund
e3ee8c2432 Merge branch 'work/for-master' into work/example-fixes
Conflicts:
	example_bass/example_bass.cpp
2011-01-26 00:16:27 +01:00
Erik Faye-Lund
98a6974cc9 example_bass: use BASS_STREAM_PRESCAN
When seeking in MP3s, BASS needs the BASS_STREAM_PRESCAN-flag to enable
accurate seeking.

While our example uses OGG Vorbis instead of MP3, it doesn't hurt to set
the flag, and leaves one less bug-source for people who base their code
of the example.
2011-01-26 00:13:54 +01:00
Erik Faye-Lund
0b1ca80464 example_bass: fix compilation on 64bit linux
HSTREAM is a DWORD on 64-bit linux, so let's just pass the address
of the stack-allocated object instead.
2011-01-26 00:13:47 +01:00
Erik Faye-Lund
5bfd04f55b player: pass callback directly to sync_update
sync_update is the only code-path that can end up calling any of the
callbacks, so there's no need to store it in the device.

This is a breaking change, so all users needs to update their code
accordingly.
2011-01-25 04:10:39 +01:00
Erik Faye-Lund
1096fb3119 example_bass: use folders for external deps
BASS and SDL both add a set of headers and libs that needs
to be included into the project. Allow the user to put these
headers in a subfolder called "include" and the libs in a
subfolder called "lib".
2011-01-14 00:38:42 +01:00
Rasmus Kaae
8fb9aa6257 example_bass: port graphics code from D3D to OGL
Since BASS is available for MacOS X and Linux as well as Windows,
it makes sense to port the example to OpenGL rather than Direct3D9.

Use SDL to get an OpenGL context in a portable fashion.
2011-01-14 00:38:30 +01:00
Erik Faye-Lund
b45b7af70f example_bass: remove superfluous includes
While we're at it, switch all standard library includes to C-style
rather than C++-style.
2011-01-13 16:39:34 +01:00
Erik Faye-Lund
7bb3ee3ab1 example_bass: mark file-local symbols as static 2011-01-13 16:36:34 +01:00
Erik Faye-Lund
e43c33a1ab player: add API to save tracks
This is a bit more convenient than having to remember to do
"remote export" from the editor all the time.
2010-12-27 20:32:55 +01:00
Erik Faye-Lund
569f9d082b example: make sure SYNC_PLAYER is set in release builds 2010-12-14 19:37:03 +01:00
Erik Faye-Lund
1d4e1bb795 gcc: fix compilation warnings 2010-09-04 14:32: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
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
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
874c5b8ede rename LICENSE.TXT to COPYING 2010-03-19 17:41:37 +01:00
Erik Faye-Lund
76d3fc55f7 c-ize the bass-example a bit more 2010-03-19 17:41:36 +01:00
Erik Faye-Lund
decf843c04 player/client: port to C
Make sure that all code included in the player and client is
pure C. This helps on portability.
2010-03-19 17:41:34 +01:00
Erik Faye-Lund
c3ade8560c clean up project structure a bit 2010-03-19 17:41:34 +01:00
Erik Faye-Lund
b9200bbd3b split solution in two
Visual Studio only allows one project in a solution to be debugged
at the time. Split the solution in two, so both the player and the
editor can be opened in a separate Visual Studio instance without
file lock conflicts.

Remove outdated Visual Studio 2005 solution and project files while
we're at it.
2010-03-19 17:41:33 +01:00
Erik Faye-Lund
ae37108d09 use software vertex processing for example-code
There's no good reason for not doing this, and it allows
the example to run on older computers.
2010-03-19 17:41:33 +01:00
Erik Faye-Lund
8d58ac16e3 Slight clean-ups:
- more relevant window-caption
- not wasting time on measuring the latency
- passing the window handle instead of grabbing the foreground one
- made the BPM a separate variable, so it's a bit easier to understand the code.
2010-03-19 17:41:29 +01:00
Erik Faye-Lund
2da0d2b440 Fixed dependency problems (created Debug/Release Client configs for example_bass). 2010-03-19 17:41:20 +01:00
Erik Faye-Lund
487bac6eaf Fixed dependency problems (created Debug/Release Client configs for example_bass). 2010-03-19 17:41:19 +01:00
Erik Faye-Lund
9e02ade92d Fixed bug 2137987 2010-03-19 17:41:19 +01:00
Erik Faye-Lund
4d601c31b0 Updated the example to be compatible with the BASS 2.4 API. 2010-03-19 17:41:18 +01:00
Erik Faye-Lund
59f8089094 Renamed vs2005 project/solution files to reflect the version. 2010-03-19 17:41:18 +01:00
Erik Faye-Lund
3b014fd04a Cleaner code for the track-reordering 2010-03-19 17:41:16 +01:00
Erik Faye-Lund
f8301d6ee6 Fixed support for UNIX sockets, and fixed static crt-linking for debug builds 2010-03-19 17:41:13 +01:00
Erik Faye-Lund
712339041a let there be cubes! 2010-03-19 17:41:09 +01:00
Erik Faye-Lund
26209abb1c here's the correct tune. old tune begone. 2010-03-19 17:41:08 +01:00
Erik Faye-Lund
8f34baa39c added copyright headers 2010-03-19 17:41:06 +01:00
Erik Faye-Lund
e04c3aa08c fixed some special-case crashes in the editor. also some other small things. 2010-03-19 17:41:04 +01:00
Erik Faye-Lund
fcf160d917 cleaner structchah! 2010-03-19 17:41:04 +01:00