How to play video? [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm not c++ programmer so I have problem. Simple problem, I think.
I need play movie, can be only e.g. .avi (I can convert). Static width, static height, no button, no loop. I will write in PHP something like
exec('window.exe movie23.avi');
And appears window, play video, window close.
I rely code or good links.
Best regards

So you are a PHP programmer who needs to make a small window ( written in C++ ) that will play a video provided by the command line. Look into the animation control on msdn. It plays avi files. If you are completely inexperienced in the topic , then you have a lot to learn. I would say that you could write something like this in under 200 lines of code.
Best of luck....

Related

Display image in console application [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am writing a program, and I thought that it would be better with images (I am creating console application). So I want to know if it's possible? And if it is how can I do it? Thanks.
You can do it by ASCII art, There are many open source libraries which convert image to ASCIIs, such as libcaca.
And if you want use colored images, you can use rlutil.
Consoles are designed to display characters only. With some very crude exceptions it is not possible to display images unless you open another window.

Anyone have the algorithm for determine if a hand of Mahjong game wins or not? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am reading some introduction of an ancient Chinese game called Mahjong (a bit like poker but far more complicated). I have been spending couple days in writing a program to determine if a given hand is a win hand or not. Do anyone have any idea or know where can I find the free code for that? I only need the part to determine win/lose, I am not looking for the entire project. Thanks.
There is this cool Python library that can be used for scoring of a Mahjong hand given a situation. I know you are working in C++, but since python is highly readable, even to non-python coders, maybe you'll be able to copy/paste and edit the relevant part so you'll be able to use them.
Hope that helps you in some way.

Echo effect to audio sound using Qt [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am developing one audio processing utility in Qt(C++). I can hear audio from speaker when I speak through mike using my qt code. I need to apply echo effect to this audio output. In my code I am receiving audio using a 16 bit byte array.
How I can apply echo effect to this sound sample.
I think the simplest way to make an echo is to play the sound twice, near-simultaneously, with a slight delay between the two instances. You might also make the volume of the second instance a bit less than the first instance.
You can do this by either mixing the sample stream together with itself (with an offset) and then playing the result, or possibly by creating two QAudioOutput devices and playing the sound in both of them (I haven't tried the latter though, so I don't know for sure if it would work)

C++ Autopatcher GUI (With a unique skin) [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Can you please take a look at this picture of a game launcher:
image http://4.bp.blogspot.com/-5sHFYgzDSqE/TiRrdl2cUmI/AAAAAAAAAJs/ULE76E6Nwwo/s400/Launcher.png
How can I create something identical? (using my own art)
Everything about the design I just love, I downloaded qt, wxWidgets, nuilib and several others, but they either do not compile well or bloated and damn difficult to use.
Does anyone know the exact widget library that most asian mmorpgs use? Like that picture.
Those are just drawn images. It is trivial with any toolkit.
Qt, GTK and wxWidgets are the most prominent toolkits. I would recommend Qt, since it is very widely supported. But you can do this even with plain WinAPI or XLib.

How to introduce keyboard functions in Opengl code [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am new to opengl I tried to make an isosurface by reading from a text file .now I want to introdude keyboard functions in my code so that I can rotate an do all that stuffs. please tell me from where i can study that or give me a sample code
Sudhanshu
OpenGL only deals with drawing stuff. It gives you a canvas and some primitive drawing tools. Nothing more. Anything beyond that is the task of the user interface system provided by the OS.
Maybe you're using GLUT and are mislead by its name. GLUT is not part of OpenGL; it's a rudimentary framework aimed at developing simple OpenGL example programs, but that's about it.