Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10
91
General Discussion / Re: mp3 duration
« Last post by Patrice Terrier on December 26, 2019, 10:23:24 AM »
IMediaSeeking::GetDuration
and read this
https://support.microsoft.com/fr-fr/help/2676617/fix-the-imediaseeking-getduration-method-returns-an-incorrect-playback

Better to use Bass.dll, or the Media Foundation API.
92
General Discussion / mp3 duration
« Last post by Juergen Kuehlwein on December 26, 2019, 09:54:26 AM »
Hi José,

Merry Christmas!


Found some time to play with my music collection. For playing mp3 files i use directshow, which works quite well for all music formats (.mid, .wav, .mp3, ...) - except for one thing, duration. I can get the time an audio file is expected to play from IMediaPosition or IMediaSeeking but in both cases the returned time is wrong for mp3 files. Interestingly enough Windows shows the correct time. The tooltip when hovering or the details tab of file properties (right click -> properties -> details tab) show the correct time.

So Windows somehow knows (or calculates) it. But how? How does Windows do that, and how can i make use of it? I cannot find an appropriate API nor am i able to find some COM code doing it. I found one thing, which looks promising here (https://docs.microsoft.com/de-de/uwp/api/windows.storage.fileproperties.musicproperties). I cannot find IStorageItemExtraProperties and related classes or interfaces in your includes. The required information might not be found in musicproperties but maybe in some other file property around here - this is my best bet.

Do you know how to retrieve these properties in PB?


Thanks,


JK
93
Windows API Headers / SECURITY_DESCRIPTOR_CONTROL
« Last post by Pierre Bellisle on December 08, 2019, 06:48:17 PM »
Hi José,

Not big deal...
The SECURITY_DESCRIPTOR_CONTROL macro is absent...
Like in PB, WinNT.inc : MACRO SECURITY_DESCRIPTOR_CONTROL=WORD


94
Brians Board / Re: Any Good news regarding PB 64bit compiler?
« Last post by Christian Damhus on December 08, 2019, 01:23:40 PM »
C / C++ is the way to go... The Drakes are a big disappointment imo. I wonder wether they put any effort in a new pb compiler. But even if, too many years have passed since the last version and I wonder the PB will be able to attrack new customers.

And for hobbyist: Delphi, CBuilder and Visual C, C# are free. There are enough options.

The enterprise I am working switched to Delphi. We never regretted it.

Lets face it: BASIC is dead.
95
Brians Board / Re: Any Good news regarding PB 64bit compiler?
« Last post by Johan Klassen on December 05, 2019, 10:55:17 AM »
Look at Freebasic,  which is already dead and so is QuickBasic64  and those other old basic languages are either dead or dying.
please don't state your opinion as a matter of fact, FreeBasic is actively being developed
96
Brians Board / Re: Any Good news regarding PB 64bit compiler?
« Last post by Anthon Com on December 05, 2019, 12:37:50 AM »
Bob Zale syndrome is difficult to gauge, what we need is a compiler urgently that can do the work for the time being, something
that can translate Powerbasic programs directly, without the steep learning curve such as C++ programming language

Look at Freebasic,  which is already dead and so is QuickBasic64  and those other old basic languages are either dead or dying.
We can't afford the time to convert to other languages as business is an ongoing concern.

We can't wait for Drake to put up another compiler for 64bits -- looks like NEVER. Since Drake isn't listening to its own customers
 so Pluribasic and OxygenBasic  are the only answer now.
97
Brians Board / Re: Any Good news regarding PB 64bit compiler?
« Last post by Patrice Terrier on December 02, 2019, 01:43:45 PM »
For a buisiness work, a compiler { that is a strategic choice }, must be not only rock solid, but offer a real guarantee that it will be maintained in the long range, to avoid the single man Zale's syndrom.

Hobbyist, of course, do what ever you want  :)
98
Brians Board / Re: Any Good news regarding PB 64bit compiler?
« Last post by Anthon Com on December 01, 2019, 05:12:08 PM »
Pluribasic and OxygenBasic is the way to go 64bit and you can forget about the 32bit Powerless Basic
99
Brians Board / Re: Any Good news regarding PB 64bit compiler?
« Last post by Chris Chancellor on September 14, 2019, 08:50:02 PM »
Yup Brian you are correct

      In 64bit O2,  handles and pointers must be converted to sys

        PB handles  conversion to  O2           
        DWORD  -->  sys
        LONG      -->  sys

        sys  is mainly  applicable to window handles and pointers, while all other variables remain unchange

     


100
Brians Board / Re: Any Good news regarding PB 64bit compiler?
« Last post by Brian Alvarez on September 13, 2019, 11:42:18 PM »
In Oxygen it is called sys. In 32bit mode it is 4 byte, in 64bit mode it is 8.

Code: [Select]
sys hAddress
In PluriBASIC (oxygen based) it is called handle.

Code: [Select]
LOCAL hAddress AS HANDLE
Pages: « 1 2 3 4 5 6 7 8 9 10