PLAYMID.BAS and MIDI file.
#1
I wrote this and compiled it on 0.8.2 but the MIDI file won't play for me.
Code: (Select All)
Print "Press any key to start"
Do: Loop Until InKey$ <> ""
Filename$ = "TONOWH~2.MID"
LoadSound& = _SndOpen(Filename$)

MySound& = _SndCopy(LoadSound&)
_SndPlay MySound&
Do: Loop Until InKey$ <> ""
_SndClose MySound&
_SndClose LoadSound&


Attached Files
.7z   playmid.7z (Size: 1.67 KB / Downloads: 76)
Reply
#2
It will not play using the Linux version of 0.8.2 either.
May your journey be free of incident. Live long and prosper.
Reply
#3
The last version that can play a midi file is 0.954
Reply
#4
(06-16-2022, 10:15 AM)visionmercer Wrote: The last version that can play a midi file is 0.954

How can I get 0.954?
Reply
#5
(06-16-2022, 09:03 PM)Robert Claypool Wrote:
(06-16-2022, 10:15 AM)visionmercer Wrote: The last version that can play a midi file is 0.954

How can I get 0.954?

From here: https://web.archive.org/web/202105181626...ical-qb64/

But note download is very slow from archive.org, may take a few minutes...
Reply
#6
(06-16-2022, 09:06 PM)RhoSigma Wrote:
(06-16-2022, 09:03 PM)Robert Claypool Wrote:
(06-16-2022, 10:15 AM)visionmercer Wrote: The last version that can play a midi file is 0.954

How can I get 0.954?

From here: https://web.archive.org/web/202105181626...ical-qb64/

But note download is very slow from archive.org, may take a few minutes...

Thanks!
Reply
#7
Question: Between the versions 0.954 to the current, what changed, that prevented the playing of midi files? Ok. Two questions: ... and will the ability to play midi files be added to the latest versions? Ok. Promise. No more questions... lol
May your journey be free of incident. Live long and prosper.
Reply
#8
Quote:Between the versions 0.954 to the current, what changed, that prevented the playing of midi files?

0.954 was the last version to use the SDL library to implement a lot of the backend that actually implements most of the features. The version after that dropped SDL in favor of a collection of various other libraries, and in doing so MIDI support was dropped, as it was supported by SDL but no replacement was added.

Quote:will the ability to play midi files be added to the latest versions?

There is now a GitHub card for it here, but I'll be honest that at the moment this isn't all that high on the list, I've mostly just been focusing on fixing bugs when they come up (which we already have a long list of...) and adding HTTP support which would solve some longstanding issues.

One thing I don't like about GitHub is that it's hard to gauge how much interest there actually is in a particular issue. If you do want this prioritized I would recommend making a GitHub account if you don't have one and then leave a thumbs up on the first comment in the issue to let us know. I can't promise it will get done, but it would be very useful to us to know how many people are actually interested in a feature.
Reply
#9
I am a fan of the old '8 bit' games. Reproducing them (or attempting to...) without the classic 'midi' sound, tends to lessen the appeal of the game. I suppose 'demand' would be the best gauge for playing midi files... I am only one. I can work with 'wav'... Thank you for replaying...

J
May your journey be free of incident. Live long and prosper.
Reply
#10
Steve's QB64 SDL version from 2020 will play MIDI files. 

https://github.com/SteveMcNeill/QB64-SDL

You can also grab the old QB64 v0.954 there too.

- Dav

Find my programs here in Dav's QB64 Corner
Reply




Users browsing this thread: 3 Guest(s)