Search found 65 matches

by PHP
Sun Jun 08, 2025 10:42 am
Forum: Coding Questions
Topic: [DONE]Sound output for externel Device
Replies: 17
Views: 3279

Re: [DONE]Sound output for externel Device

Test the last code here and got this:

Image

Of course the .wav file is 48 kHz...

Any ideas what's wrong? Do i have to select the output device first somewhere?
by PHP
Thu Jun 05, 2025 9:09 pm
Forum: Coding Questions
Topic: Animated cartoon movie with PB?
Replies: 6
Views: 548

Animated cartoon movie with PB?

I'm planning to make short animated films, for example, The Simpsons or South Park.

There are, of course, various video tools for this, like After Effects, etc., but I enjoy programming and would rather try it in PB and simply record the final result using a screen recorder.

The characters are ...
by PHP
Tue Mar 05, 2024 8:16 pm
Forum: Coding Questions
Topic: KeyboardPushed() without 2D (Sendkeys?)
Replies: 2
Views: 413

KeyboardPushed() without 2D (Sendkeys?)

Hi,

i just wondern why such a function like KeyboardPushed() is only available in 2D and there is no native function...

I need this function but without using 2D-OpenScreen etc.

Found this one somewhere here:

Global HHOOK

Procedure SendKey(KeySwap.s)
SwapData.INPUT
SwapData\type = #INPUT ...
by PHP
Sat Jan 22, 2022 7:24 pm
Forum: Coding Questions
Topic: Wanted: working FMOD example
Replies: 6
Views: 1446

Re: Wanted: working FMOD example

Hi Cyllceaux,

i've managed to add a Trackbargadget showing the actual position and which is able to jump to a specific position.

Some further questions:

1) I saw the spectrum.pb example, is there also a basic function to show the AMPLITUDE of left/right? Just a single bar, not like an equalizer ...
by PHP
Sun Jan 09, 2022 4:03 pm
Forum: Coding Questions
Topic: Wanted: working FMOD example
Replies: 6
Views: 1446

Re: Wanted: working FMOD example

Is this something you are looking for?

I'm far away from using this :D I'm (amateur) just trying to use/understand the basic functions...

I like the MP3 player example and would like to add a simple "position" feature:

- trackbar showing 00:00 -> actual position (of playing track) e.g. 01:40 ...
by PHP
Sun Jan 09, 2022 3:05 pm
Forum: Coding Questions
Topic: Wanted: working FMOD example
Replies: 6
Views: 1446

Re: Wanted: working FMOD example

Many thanks! That's a good basic example!

Any idea how to add these functions to the example?


Prototype.l FMOD_Channel_GetPosition_Prototype (channel.l, *Position, Postype.l)
Global FMOD_Channel_GetPosition.FMOD_Channel_GetPosition_Prototype = GetFunction(fmodLib, "FMOD_Channel_GetPosition ...
by PHP
Mon Jan 03, 2022 7:25 pm
Forum: Coding Questions
Topic: Wanted: working FMOD example
Replies: 6
Views: 1446

Wanted: working FMOD example

Hi,

i'm looking for a simple working FMOD example in the latest PB version.

Is it also possible to include the .dll inside the exe? Or how to deliver it to the user? IncludeBinary and put it into the Home folder or something?

Many thanks! :D
by PHP
Mon Nov 02, 2020 9:50 pm
Forum: Coding Questions
Topic: Painting a triangle with GDI
Replies: 4
Views: 1223

Painting a triangle with GDI

Hi,

i found this code on the board but it doesn't work anymore (no error, no result on the screen):

Procedure Triangle(hdc,x1.l, y1.l, x2.l, y2.l, x3.l, y3.l)
ProcedureReturn Polygon_(hdc, @x1, 3)
EndProcedure

OpenWindow(0, 0, 0, 320, 240, "Triangle", #PB_Window_MinimizeGadget|#PB_Window ...
by PHP
Sat Jul 14, 2018 9:15 am
Forum: Coding Questions
Topic: How to send Html-Emails with PB?
Replies: 6
Views: 4477

Re: How to send Html-Emails with PB?

Is there no way to send a HTML mail with the existing PB functions?

Thought SetMailAttribute() can do this?
by PHP
Sat Nov 08, 2014 3:09 pm
Forum: Coding Questions
Topic: Updating PB-SoundEditor to 5.30? :-(
Replies: 0
Views: 1631

Updating PB-SoundEditor to 5.30? :-(

Hi,

is there anyone who has updated the "PB-SoundEditor" to 5.30 or above?

http://www.freesoundeditor.com/DownloadSrceseng.htm
Download (exe + srouce): http://www.freesoundeditor.com/downloads/sources/soundeditor.zip
Project info (french): http://www.purebasic.fr/french/viewtopic.php?f=8&t=1220 ...
by PHP
Fri Jul 11, 2014 2:20 am
Forum: Coding Questions
Topic: Mix 2 WAVE files together and delay one of them
Replies: 0
Views: 779

Mix 2 WAVE files together and delay one of them

Hi,

the following procedure mixes 2 wave sounds together and returns the "new" sound:

Structure WaveFile
chunkID .s{4}
chunkSize.l
riffType.s{4}
FormatHeader.s{4}
FormatLength.l
wFormatTag.w
wChannels.w
dwSamplesPerSec.l
dwAvgBytesPerSec.l
wBlockAlign.w
wBitsPerSample.w
DataHeader.s{4 ...
by PHP
Sat Sep 14, 2013 9:06 am
Forum: Coding Questions
Topic: SSL/https with OpenNetworkConnection()
Replies: 1
Views: 1320

SSL/https with OpenNetworkConnection()

Hi,

is it possible to connect to a website which uses https (SSL)?

OpenNetworkConnection() has no flag for that :-(

Thanks,
PHP
by PHP
Tue May 14, 2013 8:13 pm
Forum: Coding Questions
Topic: Parse dates like Tue, 14 May 2013 13:40:50 GMT
Replies: 4
Views: 1035

Re: Parse dates like Tue, 14 May 2013 13:40:50 GMT

Great solution John, thanks for this!
by PHP
Tue May 14, 2013 6:36 pm
Forum: Coding Questions
Topic: Parse dates like Tue, 14 May 2013 13:40:50 GMT
Replies: 4
Views: 1035

Parse dates like Tue, 14 May 2013 13:40:50 GMT

Hi,

i know ParseDate() but how can i parse dates like Tue, 14 May 2013 13:40:50 GMT into 14.05.13 or something like this? Regular expressions?

Thanks,
PHP