34 Commits

Author SHA1 Message Date
Tomasz Śniatowski
ea31aa6324 expand sound:: interface a bit 2009-01-13 11:26:54 +01:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Jérémy Rosen
9840d115fa move the drawing code down into the frame object 2008-03-14 18:41:51 +00:00
Karol Nowak
bbc4c0bfb9 Made it possible to loop sounds in sound sources.
Clarified a FIXME comment. Fixed error reporting.
This part of code needs some refactoring soon.
2008-03-11 07:45:38 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Karol Nowak
e1701913da Make it possible to repeat a sound played with [sound] using repeat=.
Fix a bug with sound playing endlessly when fade is used.
2008-01-05 00:18:32 +00:00
Karol Nowak
2ae091daac Fixed points 2&4 of FR/bug 10559 - timer sound issues. 2007-12-30 22:50:53 +00:00
Patrick Parker
98b8dd96fa patch #797 Smooth music transitions based on ms_before and ms_after tags 2007-08-23 22:16:57 +00:00
Patrick Parker
b058ecda17 another attempt to fix bug#9734 for the linux people
(works on my system so just stabbing in the dark)
2007-08-19 03:34:33 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Patrick Parker
5cc4bd41e1 wire in the new timer sound and get rid of some of the sound glitches.
note: there is still one glitch, the timer sound will not start
playing while in a dialog (but now it will continue playing if a
dialog is opened).
2007-07-26 02:25:59 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Ali El Gariani
1d7be21104 do a reversion for Sapient 2007-04-25 01:20:00 +00:00
Karol Nowak
1c58327f0e Add a slider which changes volume of sound sources. 2007-04-24 20:53:12 +00:00
Patrick Parker
948be22738 code cleanup - sound sources 2007-03-19 22:54:52 +00:00
Patrick Parker
25eaa7b2b1 fix various bugs in the sound code 2007-03-19 07:28:17 +00:00
Patrick Parker
a32b17aed1 re-attempt at workaround for vector<Mix_Chunk*> deletion error
feel free to submit a "real fix"
2007-03-14 01:43:10 +00:00
Patrick Parker
d4833e197e wire in the new UI sounds from zookeeper
fix several bugs related to the turn bell

fix the button locations in preferences_display.cpp

fix the disabling of sliders in preferences_display.cpp
2007-03-05 07:46:44 +00:00
Karol Nowak
2aa98fbccc Sound sources update:
fading support, more usable behaviour on scrolling. Peer review of
this code is needed, though.
2007-02-16 23:04:18 +00:00
Serge Martin
c09ec66889 add advanced sound tab to pref...
...allowing you to play with sample_rate and buffer_size options
2007-01-01 15:38:44 +00:00
Karol Nowak
14d410be44 limit the max size of sound cache (very low if compiled with --enable-lowmem)
reduce sound buffer size for GP2X to get rid of latency
remove redundant turn bell playing code and cache
2006-11-09 01:17:07 +00:00
Jérémy Rosen
3d42ad18b7 add different sound channel for end turn bell, thx to Pietro 2006-09-06 20:07:48 +00:00
Gunter Labes
23ca57f01e ran codeclean over all files and set them all to svn:eol-style 'native' 2006-06-05 20:02:25 +00:00
Rusty Russell
8ccb9a8149 Empty playlist at start of scenario, explicitly (zookeeper noted bug).
Also fix play_music_once(), which calls play_music() with an empty
current_track_list.  Note that play_music_once no longer seems used
(used to be for victory/defeat music)
2006-04-27 12:13:09 +00:00
Rusty Russell
feb8a7a3bd Sounds can now be a comma-separated list of alternatives,
...as requested by zookeeper.
2006-03-25 11:53:02 +00:00
Rusty Russell
1624d28e0d Save playlist in snapshot:
fixes https://gna.org/bugs/index.php?func=detailitem&item_id=5108

Also commit changes on loading level, so new music starts immediately.
2006-01-20 23:20:37 +00:00
Rusty Russell
ddff9378c2 More work on multiple music files
(Fixes: https://gna.org/bugs/index.php?func=detailitem&item_id=5100 )

- [music_list] now just [music] as it is in event.

- file tag is now name, as in event.

- music events supported

- 'play_once=yes' plays once immediately then resumes playlist

- 'append=yes' required not to overwrite previous playlist entries

- 'immediate=yes' to start playing this track (then rest of playlist)
  immediately.

Also, more comments, and play_music_file() changed to play_music_repeatedly().
2006-01-20 10:34:20 +00:00
Rusty Russell
140a72cfc6 Infrastructure for scenarios to specify more than one music file
(see https://gna.org/bugs/index.php?func=detailitem&item_id=4938).

Scenario files can specify:
[music-list]
	file="wesnoth-2.ogg"
	ms_before=5000
	ms_after=1500
[/music-list]

One or more times.  ms_before & ms_after specify the milliseconds of
silence before and after, and are optional (ie. 0 if not specified).
The old "music=" style is still supported if no [music-list] sections
are present.
2006-01-19 13:45:20 +00:00
Jérémy Rosen
43f1e7d213 add victory and defeat music, thanks grzywacz 2005-12-23 20:30:18 +00:00
Jon Daniel
d06440d5bf Release the sound device if it is no longer needed.
Added checkboxes to enable/disable sound/music.
Changed volume to be int instead of double.
2005-07-31 18:56:58 +00:00
András Salamon
8d25fb99a6 codeclean in src, mostly Dave's new email address (checked with cvs diff -b)
BY THE WAY, many of the source files have no copyright headers!
2005-07-02 21:37:20 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
Dave White
3b70cd0127 small dialog improvements 2004-08-30 01:23:16 +00:00
zas
ffa8b0bf4e Step1 of source move. 2003-09-19 10:21:25 +00:00