Search found 33 matches
Re: snow demo
aaaah..... cute!
- Aug 27, 2020 9:12
- Forum: Tips and Tricks
- Topic: Simple 3D Starfield build 2020-09-03
- Replies: 17
- Views: 1411
Re: Simple 3D Starfield build 2020-08-07
Works on my Linux system. I'm getting 257 fps (and dizziness).
- Jul 02, 2020 8:01
- Forum: Community Discussion
- Topic: Getting old
- Replies: 39
- Views: 2754
Re: Getting old
I'm at the 2^6-2^4 border... does that make me a whippersnapper?
- Dec 14, 2017 10:22
- Forum: Tips and Tricks
- Topic: Msgbox using fbgfx
- Replies: 5
- Views: 943
Re: Msgbox using fbgfx
Worked fine on my linux system.
- Sep 28, 2017 8:22
- Forum: Community Discussion
- Topic: Demo section for forum?
- Replies: 7
- Views: 1249
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.
I've just played with your Saturn demo and its very good.
- Jul 16, 2017 14:10
- Forum: Linux
- Topic: Play Sound problem (alsa)
- Replies: 11
- Views: 2086
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...
- Jul 16, 2017 13:13
- Forum: Linux
- Topic: Play Sound problem (alsa)
- Replies: 11
- Views: 2086
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.
- Jul 16, 2017 10:57
- Forum: Linux
- Topic: Play Sound problem (alsa)
- Replies: 11
- Views: 2086
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"...
- Jul 16, 2017 10:47
- Forum: Linux
- Topic: Play Sound problem (alsa)
- Replies: 11
- Views: 2086
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?
Are you sure you don't want to use sdl_mixer?
- Jul 16, 2017 8:51
- Forum: Linux
- Topic: Play Sound problem (alsa)
- Replies: 11
- Views: 2086
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.
You need to switch to something like sdl_mixer instead.
- Jul 16, 2017 8:26
- Forum: Tips and Tricks
- Topic: randomly generated graphics demo
- Replies: 5
- Views: 1240
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.
Changing all the dim as integer lines to dim as long fixed it.
After that it looked pretty good.
- Mar 19, 2015 9:43
- Forum: Beginners
- Topic: How to create a simple beep sound in Linux
- Replies: 6
- Views: 1704
Re: How to create a simple beep sound in Linux
Try this:
Place an alert sound called beep.wav in your working directory. This should work on systems with alsa or pulseaudio.
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.
- Feb 23, 2015 11:35
- Forum: Hardware Interfaces / Communication
- Topic: Joystick Buttons
- Replies: 3
- Views: 1571
Re: Joystick Buttons
Try
Code: Select all
If buttons And (1 Shl i) Then
- Nov 04, 2014 9:09
- Forum: Linux
- Topic: Extended keys and keys combinations not properly recognised
- Replies: 6
- Views: 2315
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...
- Apr 10, 2014 9:39
- Forum: Beginners
- Topic: how to use \u (SOLVED)
- Replies: 6
- Views: 1359
Re: how to use \u
Maybe the Windows console doesn't support unicode? I'm using Linux.