Dmitry Marakasov
bc945cf8fa
Add documentation groups for Font and Mixer
2015-09-07 02:44:23 +03:00
Dmitry Marakasov
eabd23373d
Fix unneeded doxygen autolinks
2015-09-07 02:27:35 +03:00
Dmitry Marakasov
ecb62ab8ab
Improve wording of class descriptions
2015-09-07 02:24:11 +03:00
Dmitry Marakasov
b7eb867aa5
Sort out Chunk::{Get,Set}Volume
2015-09-07 01:56:53 +03:00
Dmitry Marakasov
2d9787c63e
Merge branch 'mixer'
2015-09-07 00:52:27 +03:00
Dmitry Marakasov
326378c59c
Add buildin effects support
2015-09-04 23:08:04 +03:00
Dmitry Marakasov
01a537218a
Fix comments
2015-09-01 00:35:10 +03:00
Dmitry Marakasov
0cc8e489f8
Include <memory> for unique_ptr
2015-08-31 19:06:34 +03:00
Dmitry Marakasov
6ebd677893
Implement mixer groups
2015-08-31 19:02:04 +03:00
Dmitry Marakasov
f3511a1a71
Implement mixer music
2015-08-31 18:38:29 +03:00
Dmitry Marakasov
8155dc8158
Better method name
2015-08-31 18:15:45 +03:00
Dmitry Marakasov
88b7733d2a
Fix ChannelFading return type and name
2015-08-31 18:07:57 +03:00
Dmitry Marakasov
7916195c15
Use more meaningful function names
2015-08-30 16:39:06 +03:00
Dmitry Marakasov
995003768b
Document Mixer member typedef
2015-08-29 02:43:03 +03:00
Dmitry Marakasov
e37d67725e
It is actually safe to free chunks which are still playing
...
Though documentation and even a comment at the start of Mix_FreeChunk()
state that it's unsafe to free chunk which is still being played, the
function actually contains the code to stop all playback of a chunk which is
being freed. See SDL2_mixer 2.0.0, mixer.c:759:
/* Guarantee that this chunk isn't playing */
SDL_LockAudio();
if ( mix_channel ) {
for ( i=0; i<num_channels; ++i ) {
if ( chunk == mix_channel[i].chunk ) {
mix_channel[i].playing = 0;
mix_channel[i].looping = 0;
}
}
}
SDL_UnlockAudio();
As a result, no special actions are required to stop Mixer playback
before destruction of the Chunks (which is a common case with SDL2pp,
as Chunks may only be constructed after Mixer is created, and are
correspondingly destroyed in reverse order, e.g. before Mixer).
2015-08-29 02:34:16 +03:00
Dmitry Marakasov
1ba35e5575
Implement ChannelFinished()
2015-08-28 23:45:52 +03:00
Dmitry Marakasov
ed12546cc5
Fix copypasta
2015-08-28 23:45:24 +03:00
Dmitry Marakasov
30734317c8
It's a good idea to halt playback before Chunk destruction
2015-08-28 23:26:51 +03:00
Dmitry Marakasov
c5dc35574d
Implement mixer playback
2015-08-28 23:23:47 +03:00
Dmitry Marakasov
a25c84932c
Add stub Mixer class
2015-08-28 23:04:19 +03:00
Dmitry Marakasov
c49b02ea47
Mark Wav move ctor/assign as noexcept
2015-08-28 19:34:56 +03:00
Dmitry Marakasov
732bc1a7c6
Add SDL_mixer chunk wrapper class
2015-08-28 19:26:32 +03:00
Dmitry Marakasov
ba7888ec2d
Style fix and note for the unapparent code
2015-08-27 20:39:00 +03:00
Dmitry Marakasov
01ca026a25
Add correct seealso URLs
2015-08-27 20:38:22 +03:00
Dmitry Marakasov
a0843fbb7d
Add mixer to main SDL2pp include file
2015-08-27 20:34:54 +03:00
Vladimir Gamalian
b5561e9b30
Update cmake infrastructure for SDL2_mixer
2015-08-27 20:32:02 +03:00
Vladimir Gamalian
5078b44ec8
Add sdl mixer lib init/deinit
2015-08-27 20:31:06 +03:00
Vladimir Gamalian
5c1bf3e6cf
Create SDLMixer class skeleton
2015-08-27 20:29:48 +03:00
Vladimir Gamalian
5bbc990307
Removed extra pixels from Font::GetGlyphRect().
2015-07-26 19:40:19 +07:00
Vladimir Gamalian
32530ae6da
Missed Font::IsGlyphProvided definition has been added.
2015-07-26 13:35:44 +07:00
Dmitry Marakasov
6752baabc1
Don't specify default font size, it doesn't make sense
2015-07-08 18:02:07 +03:00
Dmitry Marakasov
51120adc62
Fix documentation
2015-07-03 22:26:57 +03:00
Dmitry Marakasov
495f873736
Add div/mul/remainder operators with another Point as an argument
2015-07-03 22:22:48 +03:00
Dmitry Marakasov
47f0263ca3
Add unary minus operator for Point
2015-07-03 22:21:02 +03:00
Dmitry Marakasov
1001bf8fa2
Add memberwise remainter operators for Point
2015-07-03 22:00:59 +03:00
Dmitry Marakasov
0215d2526e
Fix typo
2015-07-03 21:52:53 +03:00
Vladimir Gamalian
32f5bf0b18
Fix mingw compilation.
...
SEEK_END and SEEK_SET do not visible for mingw (there is no #include <stdio.h> in the include tree for SDLpp/RWops.cc).
Both constants are using for RWops::Seek -> SDL_RWseek, which accepts "whence" as one of defines RW_SEEK_SET/RW_SEEK_CUR/RW_SEEK_END.
My suggestion is: replace SEEK_END -> RW_SEEK_END, SEEK_SET -> RW_SEEK_SET.
2015-06-28 08:39:41 +07:00
Dmitry Marakasov
93dc374280
Merge branch 'char16_t'
2015-06-10 00:08:53 +03:00
Dmitry Marakasov
2e2cbbb1e4
Add functions for u16string handling
2015-05-14 17:50:02 +03:00
Dmitry Marakasov
b636ce43a4
Fix SDL_ttf documentation references
2015-05-14 17:33:57 +03:00
Dmitry Marakasov
ae590b5212
Implement Renderer::FillCopy()
2015-03-12 17:44:08 +03:00
Dmitry Marakasov
be69a4ede6
Add Renderer::Copy overloads which take target Point instead of a Rect
2015-02-16 21:19:31 +03:00
Dmitry Marakasov
687d8f848f
Whitespace fixes
2015-01-24 23:42:21 +03:00
Dmitry Marakasov
3ac98e50f6
Implement Window::SetBordered
2015-01-21 23:13:41 +03:00
Dmitry Marakasov
50a73c1377
Implement Window::SetIcon
2015-01-21 23:13:24 +03:00
Dmitry Marakasov
d7b28aa79b
Mark deprecated method as such in documentation
2015-01-20 03:40:42 +03:00
Dmitry Marakasov
fdcbcddc1d
Implement stream output operators for Point and Rect
2015-01-20 02:56:34 +03:00
Dmitry Marakasov
fa7ba94957
Implement Point::Wrap
2015-01-20 02:38:16 +03:00
Dmitry Marakasov
ecf9731750
Implement more Window methods
2015-01-19 23:29:51 +03:00
Dmitry Marakasov
dfaf8d0da3
Fix documentation
2015-01-19 20:19:29 +03:00