# HG changeset patch # User Ritor1 # Date 1395319467 -21600 # Node ID 9987f93d7e1f1e4749da9802c2fc8f6ff45583ce # Parent 133882370e837186b71fb6901b7673aabd983cd2 stuff.h diff -r 133882370e83 -r 9987f93d7e1f Build/Visual Studio 2012/World of Might and Magic.vcxproj --- a/Build/Visual Studio 2012/World of Might and Magic.vcxproj Thu Mar 20 17:38:29 2014 +0600 +++ b/Build/Visual Studio 2012/World of Might and Magic.vcxproj Thu Mar 20 18:44:27 2014 +0600 @@ -184,6 +184,7 @@ + @@ -425,6 +426,7 @@ + @@ -436,6 +438,7 @@ + @@ -465,6 +468,7 @@ + diff -r 133882370e83 -r 9987f93d7e1f Build/Visual Studio 2012/World of Might and Magic.vcxproj.filters --- a/Build/Visual Studio 2012/World of Might and Magic.vcxproj.filters Thu Mar 20 17:38:29 2014 +0600 +++ b/Build/Visual Studio 2012/World of Might and Magic.vcxproj.filters Thu Mar 20 18:44:27 2014 +0600 @@ -384,6 +384,7 @@ lib\libpng + @@ -907,6 +908,9 @@ lib\libpng + + + diff -r 133882370e83 -r 9987f93d7e1f MediaPlayer.cpp --- a/MediaPlayer.cpp Thu Mar 20 17:38:29 2014 +0600 +++ b/MediaPlayer.cpp Thu Mar 20 18:44:27 2014 +0600 @@ -7,7 +7,6 @@ #include "lib/libswscale/swscale.h" #include "lib/libswresample/swresample.h" #include "lib/libavutil/opt.h" - //#include "libavutil/samplefmt.h" } #pragma comment(lib, "avcodec.lib") #pragma comment(lib, "avformat.lib") @@ -25,8 +24,6 @@ using namespace Media; - - class MemoryStream { public: @@ -662,9 +659,9 @@ { } - virtual void GetNextFrame(double dt, void *dst_surface) + virtual void GetNextFrame(double dt, void *dst_surface)// рисует сразу на экран { - playback_time += dt; + playback_time += dt;//изменение времени AVPacket *avpacket = decoding_packet; AVFrame *avframe = decoding_frame; @@ -680,7 +677,7 @@ volatile int decoded = false; do { - if (av_read_frame(format_ctx, avpacket) < 0) + if (av_read_frame(format_ctx, avpacket) < 0) //воспроизведение завершено { // probably movie is finished __debugbreak(); diff -r 133882370e83 -r 9987f93d7e1f OpenALSoundProvider.h --- a/OpenALSoundProvider.h Thu Mar 20 17:38:29 2014 +0600 +++ b/OpenALSoundProvider.h Thu Mar 20 18:44:27 2014 +0600 @@ -5,7 +5,6 @@ #include "stuff.h" - class OpenALSoundProvider { public: