600 Commits

Author SHA1 Message Date
Dmitry Marakasov
a8ec68a625 Define pi as a constant instead of a macro
Consistent to what we already do in image example
2015-09-10 20:41:06 +03:00
Dmitry Marakasov
156786d047 Bump version for the future release 2015-09-09 20:23:20 +03:00
Dmitry Marakasov
05c0690ea5 Define M_PI if it isn't 2015-09-09 14:37:05 +03:00
Dmitry Marakasov
40d4b4773d Extend key features section 2015-09-07 19:05:48 +03:00
Dmitry Marakasov
4bbd976ced Bump soversion 0.9.0 2015-09-07 16:22:57 +03:00
Dmitry Marakasov
bd47cc560e Chase variable rename 2015-09-07 03:41:41 +03:00
Dmitry Marakasov
0c35190804 Add new test to .gitignore 2015-09-07 03:04:15 +03:00
Dmitry Marakasov
18d58a4efb Merge branch 'constexpr-pointrect' 2015-09-07 02:58:12 +03:00
Dmitry Marakasov
4d18ea0233 Merge branch 'update-from-surface' 2015-09-07 02:58:08 +03:00
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
f14652b91d Update .gitignore 2015-09-07 02:06:11 +03:00
Dmitry Marakasov
3953d77a9b Add mixer live test 2015-09-07 01:59:59 +03:00
Dmitry Marakasov
f6d781b178 Rename gui tests to live tests 2015-09-07 01:58:50 +03:00
Dmitry Marakasov
b7eb867aa5 Sort out Chunk::{Get,Set}Volume 2015-09-07 01:56:53 +03:00
Dmitry Marakasov
4d4fcf5929 Improve readability 2015-09-07 01:06:05 +03:00
Dmitry Marakasov
2d9787c63e Merge branch 'mixer' 2015-09-07 00:52:27 +03:00
Dmitry Marakasov
4993125e94 Add travis check for .gitignore completeness 2015-09-07 00:17:27 +03:00
Dmitry Marakasov
8bb9ad586a Further extend .gitignore 2015-09-07 00:17:07 +03:00
Dmitry Marakasov
739f0f6311 Add WWW section 2015-09-06 22:58:23 +03:00
Dmitry Marakasov
5f00735e53 Merge branch 'master' of github.com:AMDmi3/libSDL2pp 2015-09-06 22:44:43 +03:00
Dmitry Marakasov
4a67565e74 Extend .gitignore 2015-09-06 22:41:11 +03:00
Dmitry Marakasov
dcb409765c Mintion new contributior 2015-09-06 22:27:09 +03:00
Dmitry Marakasov
00e47a8833 Remove unused variable 2015-09-06 22:01:42 +03:00
Dmitry Marakasov
0b4d642493 Merge pull request #49 from Aargonian/patch-1
Various grammar fixes to README.md file
2015-09-06 21:59:33 +03:00
Aargonian
15a0af756d Update README.md 2015-09-06 01:19:51 -04:00
Aargonian
3ca0759a15 Various grammar fixes to README.md file 2015-09-06 00:32:31 -04: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
7121b78543 Fix comment 2015-08-31 18:41:01 +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
6dd5817471 Mention mixer support in readme 2015-08-30 16:06:54 +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
1cc64cea4f Cosmetic fixes for example 2015-08-29 00:27:22 +03:00
Dmitry Marakasov
4be68384ff Extend example 2015-08-28 23:46:13 +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
94f4a3d7aa Include Chunk into example 2015-08-28 19:32:18 +03:00
Vladimir Gamalian
9a2a741120 Add test ogg sound 2015-08-28 19:29:14 +03:00