Powerbasic Museum 2020-B

IT-Consultant: Patrice Terrier => C++ WinLIFT / GDImage => Topic started by: Patrice Terrier on December 13, 2013, 12:32:53 PM

Title: StarGate 64-bit
Post by: Patrice Terrier on December 13, 2013, 12:32:53 PM
StarGate 64-bit (mini demoscene project).

It is based on a combination of:
Screen shot:

(http://www.zapsolution.com/pictures/stargate64.png)

Main points of this demo:
This is a VS2010+ C++ project, all bin files and resources are provided within the \X64\Release subfolder.

This version uses an XM sound tracker audio file to reduce the size of the ZIP file.
Title: Re: StarGate 64-bit (mini demoscene project)
Post by: Patrice Terrier on December 14, 2013, 05:43:20 PM
The ZIP attached to the first post of this thread has been updated to fix a bug that was detected when i compiled the code in VS2013.

In BassAudio.h

Quotelong BassStreamFree() {
    long nRet = 0;
    if (ta.Channel) {
        if (ta.MediaType == MUSIC) {
            nRet = BASS_MusicFree(ta.Channel); }
        else {
            nRet = BASS_StreamFree(ta.Channel);
       }
       ta.Channel = 0; ta.MediaType = 0;
    }
    return nRet;
}

I was using only one single = instead of two  >:( (that's a very common error when translating from PB to C++)

However the ZIP file is still using the VS2010 version, because it produces smaller EXE: 110 Kb, while VS2013 is 150 Kb, 36% larger.

I also swap back the thread animation to a WM_TIMER, because a WM_TIMER produces more accurate result on slower machine, and single core processor.

...