Search found 605 matches

by jamirokwai
Tue Jan 20, 2026 6:05 pm
Forum: Feature Requests and Wishlists
Topic: Wishlist for PB 7.0 :)
Replies: 31
Views: 1433

Re: Wishlist for PB 7.0 :)

full exposure of miniaudio-functions!
native QOA and QOI-implementations (may be easy, as infratec already posted the appropriate code...)
by jamirokwai
Mon Dec 15, 2025 9:31 pm
Forum: Tricks 'n' Tips
Topic: ServQLite - SQLite-Server
Replies: 2
Views: 556

Re: ServQLite - SQLite-Server


thanks, I took a quick look at the sources on github and they appear as one line.
but It copies and pastes into ide fine.


Thanks for pointing that out, idle!

Yeah, nice. Of course, the files were fine on my machine. But Github Desktop managed to make them a one-liner. That would be great to ...
by jamirokwai
Mon Dec 15, 2025 10:21 am
Forum: Tricks 'n' Tips
Topic: ServQLite - SQLite-Server
Replies: 2
Views: 556

ServQLite - SQLite-Server

Hi there,

I’m doing a bit of Christmas cleanup by open-sourcing code I wrote over the years. So, for starters, here’s my ServQLite (which I wrote in the 2010s). It’s an (academic) implementation of an SQLite server. I’m sure you’ll find interesting possibilities for using it :-)

https://github ...
by jamirokwai
Thu Nov 20, 2025 5:38 pm
Forum: Raspberry PI
Topic: Best small OS for Raspi and Purebasic?
Replies: 1
Views: 886

Best small OS for Raspi and Purebasic?

Hi there,

maybe I didn't use the right search terms. However, I hope you can help me!

I am building a small Audio / Video-player based on a Raspberry PI 4, the official 5" Touch-Display and HDMI-output. I will have a 32gb micro-sd and a 4tb usb-attached ssd.

I found the install-hints by mk-soft ...
by jamirokwai
Tue Aug 19, 2025 10:47 am
Forum: Applications - Feedback and Discussion
Topic: mpg module MPEG1 Video decoder, MP2 Audio decoder
Replies: 20
Views: 6823

Re: mpg module MPEG1 Video decoder, MP2 Audio decoder



Hi Idle,

great news!

My take on this is here: https://www.purebasic.fr/english/viewtopic.php?t=86166 , but I never figured out how to play audio.

I tried your Code on MacOS, but "Line 118: Structure not found: WAVEHDR.". Hope you get it to work with MiniAudio :-)


I have a fix in mind ...
by jamirokwai
Tue Aug 19, 2025 9:26 am
Forum: Applications - Feedback and Discussion
Topic: mpg module MPEG1 Video decoder, MP2 Audio decoder
Replies: 20
Views: 6823

Re: mpg module MPEG1 Video decoder, MP2 Audio decoder

Hi Idle,

great news!

My take on this is here: viewtopic.php?t=86166, but I never figured out how to play audio.

I tried your Code on MacOS, but "Line 118: Structure not found: WAVEHDR.". Hope you get it to work with MiniAudio :-)
by jamirokwai
Tue Apr 29, 2025 12:04 pm
Forum: Feature Requests and Wishlists
Topic: UseMP3SoundDecoder()
Replies: 11
Views: 4907

Re: UseMP3SoundDecoder()


native MP3 decoder command would still be much nicer

But the Movie lib is native. Why add another library that does the same thing?


MP3-decoding is already a part of Miniaudio. I think, Purebasic should have separate libs for movies and audio. Playing mp3 with the movie library is more like ...
by jamirokwai
Mon Apr 28, 2025 1:01 pm
Forum: Feature Requests and Wishlists
Topic: UseMP3SoundDecoder()
Replies: 11
Views: 4907

Re: UseMP3SoundDecoder()

+1

Would be great to have this one. @infratec: A few years ago I coded my own music player. With the movie library you have to check for MP3, FLAC or OGG for every file and use the appropriate command. UseMP3SoundDecoder() would have some advantages in this field :-)
by jamirokwai
Fri Apr 18, 2025 10:17 pm
Forum: Tricks 'n' Tips
Topic: PB Coroutines Ver. 2 [Crossplatform]
Replies: 6
Views: 1726

Re: PB Coroutines Ver. 2 [Crossplatform]

Hi there,

tried your code with MacOS 15.4.1 with an M2 Max.
It crashed after debug-output "Main: Resume Task1" in line 35 of PBCoroutines.pb

CompilerElseIf #PB_Compiler_OS = #PB_OS_MacOS
Procedure.l _co_trampoline(low.l, high.l)
Protected.co_coroutine_t *co

*co = (high << 32) | low
*co\func ...
by jamirokwai
Tue Feb 11, 2025 4:51 pm
Forum: Feature Requests and Wishlists
Topic: Please expose implementations of libraries so that they can be extended
Replies: 6
Views: 1340

Re: Please expose implementations of libraries so that they can be extended

Hi there,

please have a look at this as well: We started discussing the audio-topic :-)
Would be great to join forces in audio-related topics to improve PureBasic further!

https://www.purebasic.fr/english/viewtopic.php?t=86234
by jamirokwai
Sat Feb 08, 2025 10:29 am
Forum: Feature Requests and Wishlists
Topic: Sound-Editing like StartDrawing()
Replies: 6
Views: 1987

Re: Sound-Editing like StartDrawing()


And how sounds your CreateSound :?:

What should be inside of the sound?
How you want to specify the sound curve?

At the moment your CreateSound() can create an empty sound which returns silence.

To make something lke that universal, you need a lot of stuff around.
This would result in a ...
by jamirokwai
Fri Feb 07, 2025 10:39 am
Forum: Feature Requests and Wishlists
Topic: Sound-Editing like StartDrawing()
Replies: 6
Views: 1987

Sound-Editing like StartDrawing()

Hi there,

I'd like to propose new options for working with sound. Since PB switched to the miniaudio-lib, it might be possible :-)

What, if we could edit audio like images? I mean, do something like (with a better named command than StartSounding():


define mySound = CreateSound(#pb_any, 2000 ...
by jamirokwai
Thu Jan 30, 2025 2:38 pm
Forum: Mac OSX
Topic: pl_mpeg.h and decoding question
Replies: 4
Views: 6292

Re: pl_mpeg.h and decoding question

Maybe someone has information on how to access the raw audio-data from a wav-file "loadsound-ed" or "catchsound-ed" with Purebasics Miniaudio?

I figured out how to apply a ring buffer (or circular buffer). But, I would most certainly need access to the raw sound-data.
by jamirokwai
Thu Jan 30, 2025 7:33 am
Forum: Mac OSX
Topic: pl_mpeg.h and decoding question
Replies: 4
Views: 6292

Re: pl_mpeg.h and decoding question

Hi all!

I almost made it! Have a look at the repo under https://github.com/foodsnacker/pb_play_mpeg .
The source can decode an mpeg1 and play the video-part - unelegantly using an ImageGadget, but it proves the point.
You can export the single frames as images as well and export the audio as raw ...
by jamirokwai
Thu Jan 30, 2025 5:23 am
Forum: Mac OSX
Topic: pl_mpeg.h and decoding question
Replies: 4
Views: 6292

Re: pl_mpeg.h and decoding question


Shouldn't the loop look like this:

Debug "Video-Resolution: " + Str(width) + "x" + Str(height)

*frame = plm_decode_video(plm)
While *frame
i + 1
Debug "Frame " + Str(i) + " decoded"
*frame = plm_decode_video(plm)
Wend

Without plm_decode(mpeg)


Oh, no!!! You are (partly) right. My bad
It ...