Search found 32 matches

by David Watson
Aug 27, 2020 9:12
Forum: Tips and Tricks
Topic: Simple 3D Starfield build 2020-09-03
Replies: 17
Views: 989

Re: Simple 3D Starfield build 2020-08-07

Works on my Linux system. I'm getting 257 fps (and dizziness).
by David Watson
Jul 02, 2020 8:01
Forum: Community Discussion
Topic: Getting old
Replies: 39
Views: 2217

Re: Getting old

I'm at the 2^6-2^4 border... does that make me a whippersnapper?
by David Watson
Dec 14, 2017 10:22
Forum: Tips and Tricks
Topic: Msgbox using fbgfx
Replies: 5
Views: 798

Re: Msgbox using fbgfx

Worked fine on my linux system.
by David Watson
Sep 28, 2017 8:22
Forum: Community Discussion
Topic: Demo section for forum?
Replies: 7
Views: 1104

Re: Demo section for forum?

A Demo section below Game Dev would be a good idea.

I've just played with your Saturn demo and its very good.
by David Watson
Jul 16, 2017 14:10
Forum: Linux
Topic: Play Sound problem (alsa)
Replies: 11
Views: 1835

Re: Play Sound problem (alsa)

If you don't need realtime playback then render a wave file and play it back with aplay . This is from aplay's man page: Recognized sample formats are: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE FLOAT64_LE FLOAT64_BE IEC958_SUBFRAME_LE...
by David Watson
Jul 16, 2017 13:13
Forum: Linux
Topic: Play Sound problem (alsa)
Replies: 11
Views: 1835

Re: Play Sound problem (alsa)

Your sound card is limited to 16 or 24-bit only, so it might be easier to render in 32-bit float, convert to 16-bit signed integer then play the 16-bit data. If you really need to play 32-bit float then take a look at JACK http://www.jackaudio.org/api/ JACK uses 32-bit float exclusively.
by David Watson
Jul 16, 2017 10:57
Forum: Linux
Topic: Play Sound problem (alsa)
Replies: 11
Views: 1835

Re: Play Sound problem (alsa)

I wrote this test program years ago. It plays both a wave file and an internally rendered buffer. It might be useful to you. 'sdl_mixer (program to test sdl_mixer sound api) - David Watson '######################### set up variables and screen ######################### #include "SDL\SDL.bi"...
by David Watson
Jul 16, 2017 10:47
Forum: Linux
Topic: Play Sound problem (alsa)
Replies: 11
Views: 1835

Re: Play Sound problem (alsa)

You are correct about splitting the audio into parts (usually around 20 milliseconds or so). If you can read C then you might want to look at the pcm.c and pcm_min.c examples at http://www.alsa-project.org/alsa-doc/alsa-lib/examples.html

Are you sure you don't want to use sdl_mixer?
by David Watson
Jul 16, 2017 8:51
Forum: Linux
Topic: Play Sound problem (alsa)
Replies: 11
Views: 1835

Re: Play Sound problem (alsa)

You seem to be trying to play an entire wave file in your sound card's buffer! If your sound card's buffer is 1 MiB and you are playing a 48 kHz, 8-bit, mono sample then you will be limited to 1048576 / 48000 / 1 / 1 = 21.845 seconds.

You need to switch to something like sdl_mixer instead.
by David Watson
Jul 16, 2017 8:26
Forum: Tips and Tricks
Topic: randomly generated graphics demo
Replies: 5
Views: 1064

Re: randomly generated graphics demo

I got a seg fault initially on my x86-64 linux system.
Changing all the dim as integer lines to dim as long fixed it.
After that it looked pretty good.
by David Watson
Mar 19, 2015 9:43
Forum: Beginners
Topic: How to create a simple beep sound in Linux
Replies: 6
Views: 1535

Re: How to create a simple beep sound in Linux

Try this:

Code: Select all

shell "aplay beep.wav"

Place an alert sound called beep.wav in your working directory. This should work on systems with alsa or pulseaudio.
by David Watson
Feb 23, 2015 11:35
Forum: Hardware Interfaces / Communication
Topic: Joystick Buttons
Replies: 3
Views: 1469

Re: Joystick Buttons

Try

Code: Select all

If buttons And (1 Shl i) Then
by David Watson
Nov 04, 2014 9:09
Forum: Linux
Topic: Extended keys and keys combinations not properly recognised
Replies: 6
Views: 2170

Re: Extended keys and keys combinations not properly recogni

Keyboard driver chips map the numpad keys to the cursor keys, home, pgup, etc when numlock is off. This is a hardware feature and not a problem with Linux, you should see the same thing happen in Windows. I'm not sure why you can't read Ctrl and Alt with multikey, I can read them OK on my Linux Mint...
by David Watson
Apr 10, 2014 9:39
Forum: Beginners
Topic: how to use \u (SOLVED)
Replies: 6
Views: 1237

Re: how to use \u

Maybe the Windows console doesn't support unicode? I'm using Linux.
by David Watson
Apr 10, 2014 8:15
Forum: Beginners
Topic: how to use \u (SOLVED)
Replies: 6
Views: 1237

Re: how to use \u

I've just tried \u&h470 and it doesn't work but \u0470 does. Pad your hex code to 4 chars without &h.

Go to advanced search