Michał Janiszewski
3bf1e0e06d
Rename safe_strncpy to safe_strcpy
2016-01-18 20:49:52 +01:00
IntelOrca
cdee534eb1
use SDL2's platform defines to normalise platform guards
2016-01-14 20:12:43 +00:00
Michał Janiszewski
ac8aec63bc
Skip "Default sound device" on Linux
...
Sound on Linux is handled by PulseAudio, which creates a sink and offers
a central place to control which sources are distributed how and where.
Applications in general are expected to only offer volume controls.
Tested with 0 A.D., SuperTuxKart and a few media players, none of which
offers selecting sink directly.
As per https://en.wikipedia.org/wiki/PulseAudio#Adoption it should
covert vast majority of uses.
2016-01-11 13:59:41 +01:00
LRFLEW
d769a13206
Fixed extern and enum name usage
2015-12-16 14:48:27 -06:00
IntelOrca
c6056cbb6c
Merge branch 'pre-release-0.0.3' into develop
...
Conflicts:
src/audio/audio.c
2015-11-27 22:05:40 +00:00
duncanspumpkin
5bd3b8d6af
Implement util_rand due to rand having a poor range on some platforms
2015-11-20 21:40:36 +00:00
Dom Light
a07333aeaf
Move memory address documentation to header file
2015-11-18 00:11:31 +00:00
Dom Light
bb62b7561a
Replace some uses of play_sound_panned with play_sound_at_location
2015-11-18 00:03:15 +00:00
Dom Light
e9b7e41635
Refactor audio_sound_play_planned
2015-11-17 23:05:24 +00:00
Dom Light
bbc58830f3
Allow lines to be 128 characters
2015-11-17 20:07:39 +00:00
Dom Light
72b6a1e74b
Add parens and use coordinate_3d_to_2d in audio.c
2015-11-17 20:01:30 +00:00
Dom Light
b9d48d2f9b
Document audio.h
2015-11-17 01:05:22 +00:00
Dom Light
b736de003e
Sanitize audio.c
2015-11-17 01:05:21 +00:00
Dom Light
3a8b25a0ee
Sanitize audio.h
2015-11-17 01:05:14 +00:00
Michał Janiszewski
c0e2a5c7be
Add get_current_rotation function and DEBUG_LEVEL macros
2015-11-02 22:58:15 +01:00
Michał Janiszewski
9284930d7e
Add safe_strncpy function
...
safe_strncpy is similar to strncpy, but makes sure buffer is
null-terminated. Update most of project to use this updated function to
prevent illegal memory accesses.
2015-10-30 16:01:00 +01:00
zsilencer
6449dfd6ea
fix #2076
2015-10-17 11:47:04 -06:00
zsilencer
ae6c88d1ce
remove unused/redundant RCT2_GLOBALS fix #2065 and cleanup
2015-10-16 02:31:31 -06:00
zsilencer
9ac89c2b5e
remove directsound and get sound working for linux native
2015-09-23 09:42:55 -06:00
Michał Janiszewski
4ce0e3a8b2
Linux platform file
...
Add bulk of the platform file for linux, change the compilation target
from shared library to executable for linux, provide necessary changes
to make it compile & load the stub of a process.
Make sure functions are marked as stubs where needed, and implementation
is expected.
2015-09-20 23:19:08 +02:00
Michał Janiszewski
4df8761831
remove windows-only code
...
Step 1 on road towards Linux.
Remove windows-specific code, stub it out where needed and make sure we
can still compile it the way it is.
Take care of Travis' build matrix to include new build configuration.
Install new packages.
2015-09-18 16:01:38 +02:00
Gymnasiast
3ddddec21c
Fix some warnings
2015-09-07 14:57:39 +02:00
IntelOrca
bea74ee261
make all file IO utf8 compatible, fixes #1847
2015-08-29 13:13:23 +01:00
IntelOrca
f0100a71a7
use windows lean and mean to reduce definition conflicts
2015-08-29 13:13:22 +01:00
Runelaenen
fb5921db6d
First headless version
2015-08-19 18:07:04 +02:00
Gymnasiast
59202f97f8
Make the string for 'Default audio device' translatable, fix comment
2015-08-18 21:55:04 +02:00
Gymnasiast
99dd05176f
Use a define the number of default music tracks
2015-08-16 22:26:17 +02:00
Gymnasiast
6a23e28670
Refactored music file list, removed some extra unused code, clear up some comments
2015-08-16 21:29:10 +02:00
Gymnasiast
fcb74d13b2
Get rid of unused file references, comment out unused obsolete config file code
2015-08-16 20:45:23 +02:00
medsouz
6caa48d3c3
Make all game sounds respect gGameSoundsOff
2015-08-11 06:29:21 -04:00
IntelOrca
cac0f2ab52
upgrade to VS2015 compiler
2015-08-03 23:16:30 +01:00
zsilencer
38b691b460
fix #1624
2015-07-15 15:44:05 -06:00
zsilencer
ca6c3d68aa
fix #1155
2015-07-14 16:45:25 -06:00
IntelOrca
beb2b23afb
use log functions instead of printf and RCT2_ERROR (now removed)
2015-06-14 12:03:32 +01:00
Gymnasiast
a62e1c02c2
Force best sound quality and software buffering
2015-06-09 22:56:47 +02:00
Duncan Frost
fb1c8c4e42
Check against invalid tiles correctly
2015-06-03 18:02:41 +01:00
zsilencer
86ce94f8e9
fix #1101 and reorganize the tune lists
2015-05-20 18:25:26 -06:00
Robert Jordan
b49676a887
Added option for random title music in main menu
...
Added STR_5126 to UK and US languages
rand() is seeded in rct2_init()
2015-05-11 13:17:33 -04:00
zsilencer
71e21c2a6c
refactor mixer, add support for streamed music
2015-04-25 09:28:28 -06:00
zsilencer
9bd620cd99
game_command_raise_water, game_command_lower_water, suggested changes
2015-04-25 09:20:15 -06:00
Duncan Frost
e010d43763
Add load and save audio options. Fix all sounds not pausing
2015-03-24 20:42:20 +00:00
Timmy Weerwag
873eac46e8
Restart title music if necessary
2015-02-20 02:10:13 +01:00
IntelOrca
7f0ed995b5
improve reading and saving of configuration
2015-02-16 22:47:11 +00:00
IntelOrca
a66b29076b
move osinterface code to shared or windows
2015-02-12 20:51:40 +00:00
IntelOrca
ce719ef086
fix fullscreen issues and add title music option
2015-02-06 22:35:08 +00:00
IntelOrca
8774731f03
refactor map element iteration
2015-01-22 00:19:05 +00:00
Duncan Frost
e6f966f395
Fix intro crash. Caused by incorrect pointer address. Fixed crash on freeing unallocated memory. Fixed audio issue when channels set to zero.
2015-01-18 19:13:21 +00:00
Duncan Frost
cbe49300b8
Fixed sounds not playing properly when paused. Labeled max sounds offset. Prevented crash on null dereference
2014-12-31 14:54:23 +00:00
zsilencer
2dcd3b4935
use mixer for ride music
2014-11-13 19:51:02 -07:00
zsilencer
c3086a5b9f
finish ride music decompile
2014-11-12 18:32:33 -07:00