Go to advanced search

by Thaddy
Tue Feb 18, 2014 10:52 am
Forum: C/C++
Topic: Working with Interrupts on RaspberryPi
Replies: 11
Views: 4499

Re: Working with Interrupts on RaspberryPi

In the context of just IO and interrupts it may very well be convenient to write a class with only static functions is my premise.
That would make for somewhat more centralized, readable and maintainable code as opposed to a pure C api.
by Thaddy
Tue Feb 18, 2014 10:43 am
Forum: C/C++
Topic: Working with Interrupts on RaspberryPi
Replies: 11
Views: 4499

Re: Working with Interrupts on RaspberryPi

That's what I always wonder ;-) But think about it: in the context of the subject a static function would suffice in most cases. But if you mean that the average C++ programmer likes to - unintentionally (imnsho) - over-engineer their code, you are bloody well right ;-) I am sometimes one of them.
by Thaddy
Tue Feb 18, 2014 10:16 am
Forum: Graphics, sound and multimedia
Topic: GPU_FFT and audio processing? (Guitar FX thread)
Replies: 7
Views: 6564

Re: GPU_FFT and audio processing? (Guitar FX thread)

Thus, it's difficult to adopt the GPU_FFT approach to a more general task. (Or I'm wrong?) Well, in the context of audioprocessing you might be wrong. For example for FIR filters and convolution the GPU FFT makes you are halfway there: e.g. to add an amp characteristic or a reverb profile. Latency ...
by Thaddy
Tue Feb 18, 2014 9:48 am
Forum: C/C++
Topic: Working with Interrupts on RaspberryPi
Replies: 11
Views: 4499

Re: Working with Interrupts on RaspberryPi

It's a bit more complicated than that. If the Cpp function is declared static ( or a class function in freepascal), there is no hidden _self * parameter., because it doesn't get called through the VMT. In the case we are discussing here this is often both possible and preferable (it has no levels of...
by Thaddy
Tue Feb 18, 2014 7:56 am
Forum: C/C++
Topic: Which is the right FPU to compile for?
Replies: 2
Views: 1601

Which is the right FPU to compile for?

I always thought the FPU in the Pi is a VFPV2, so I optimized for that. But last night I noticed that some binaries in the Raspbian Wheezy distro are compiled for VFPV3-D16. Which is the correct one to compile for? And if VFPV3-D16 is supported, has it any advantages? In this case Google wasn't my f...
by Thaddy
Sat Feb 08, 2014 8:06 pm
Forum: Nederlands
Topic: FTP krijg ik niet voor mekaar
Replies: 1
Views: 640

Re: FTP krijg ik niet voor mekaar

Gewoon die disk die nu aan de pi hangt weer even aan je pc hangen en alles kopieren.
Je kunt de films en audio dan na heraansluiting op de pi gewoon afspelen met xbmc.
Als de drive is geformatteerd in ntfs moet je misschien op de pi nog wel even een ntfs driver installeren.
by Thaddy
Tue Feb 04, 2014 7:51 am
Forum: C/C++
Topic: Real-time record and playback in C??
Replies: 2
Views: 983

Re: Real-time record and playback in C??

Raw audio capture can be done on the gpu through omx. Raw playback as well. Decoding/encoding wav can be done with e.g. openal, but most of the cross platform audio libraries are available for the Raspberry Pi. Also look at the hello_audio example. For mixing with existing wav's, you may get good re...
by Thaddy
Wed Jan 29, 2014 9:57 am
Forum: OpenGLES
Topic: GLES performance
Replies: 1
Views: 2472

Re: GLES performance

Transfers as such aren't (shouldn't), but context switching is when done soft. Probably a change to an interrupt driven approach would help.
by Thaddy
Sun Jan 26, 2014 12:56 am
Forum: Graphics, sound and multimedia
Topic: web (epiphany) browser and html5 video
Replies: 6
Views: 6975

Re: web (epiphany) browser and html5 video

http://www.html5test.com/ to test what formats are supported.
by Thaddy
Tue Nov 26, 2013 11:38 am
Forum: Nederlands
Topic: TightVNC
Replies: 3
Views: 894

Re: TightVNC

Mwahh, Wat je OOK kunt doen als project is vergeten dat TightVNC bestaat en dat uninstallen en op je Windows XWIN (Cygwin/X) server installeren. Je kan Linux/X11 dan meer gebruiken zoals het bedoeld is :) En bijvoorbeeld Geany - met hoge snelheid - gebruiken. Je installeert Cygwin /X, opent een PuTT...
by Thaddy
Sat Nov 09, 2013 6:46 am
Forum: Other programming languages
Topic: Lazarus and CodeTyphon.
Replies: 7
Views: 4056

Re: Lazarus and CodeTyphon.

A rather late follow up, but the current codetyphon is based on freepascal 2.7.1 which has much better arm support.
It is pretty easy to setup to crosscompile for Raspbian or use the crosscompiler standalone to target Raspbian with options -CpARMV6K -CfVFPV2 -CaEABIHF -OpARMV6K
by Thaddy
Wed Oct 16, 2013 2:27 pm
Forum: Other programming languages
Topic: Version control
Replies: 30
Views: 3893

Re: Version control

I think I was pretty clear on that: It is sometimes undesirable to have centralized access. It is even more undesirable to have distributed access that mimics in may ways centralized features ;) In a business environment my decision to work with SVN instead of GIT is driven only by that reason. I am...
by Thaddy
Wed Oct 16, 2013 11:08 am
Forum: Other programming languages
Topic: Version control
Replies: 30
Views: 3893

Re: Version control

Yes. You are correct and in our case a conscious choice. It means there are no revision numbers in the main branch for code developed in the team branches. This is a GOOD thing in our opinion. The teams only release code which is more or less fully developed and do not convolute the production and b...
by Thaddy
Wed Oct 16, 2013 8:29 am
Forum: Other programming languages
Topic: Version control
Replies: 30
Views: 3893

Re: Version control

What is often overlooked is that you can actually use SVN in a distributed manner, but it takes some extra work (well, GIT requires that extra work by design, imnsho). For one of my larger projects we use a central SVN repository but also a couple of team repositories that are exported from the main...
by Thaddy
Sat Oct 12, 2013 6:48 am
Forum: Other programming languages
Topic: Sudoku solver??
Replies: 5
Views: 2597

Re: Sudoku solver??

This may be of interest:
http://delphiforfun.org/Programs/Sudoku.htm

Also includes Lazarus sourcecode.
by Thaddy
Thu Oct 10, 2013 1:16 pm
Forum: General discussion
Topic: Help with HDD in pi communication with PC
Replies: 14
Views: 2725

Re: Help with HDD in pi communication with PC

No need to change the disk. This is a networking issue.
If the movies start and stop the throughput of the network isn't fast enough.
So: check your network cables and/or wificard.
a 10Mb network is way too slow. But a 100Mb or a 54 Mb wificard is plenty fast enough for streamed content.
by Thaddy
Tue Oct 08, 2013 7:25 am
Forum: Raspbian
Topic: HDMI Resolution Issues
Replies: 2
Views: 600

Re: HDMI Resolution Issues

Did you already try a little overscan?
by Thaddy
Sun Oct 06, 2013 4:52 pm
Forum: Other programming languages
Topic: Lazarus didn't run proper?
Replies: 6
Views: 2332

Re: Lazarus didn't run proper?

Compared to 30 - 50 (depending on the speed of your storage medium, I have Raspbian itself on a fast SSD and only bootstrap from SD) minutes that is several magnitudes ;) The - separate - full freepascal compiler distribution including libraries takes about 1 hour. The freepascal compiler itself tak...
by Thaddy
Sun Oct 06, 2013 4:48 pm
Forum: Other programming languages
Topic: Error when building simple project in Lazarus
Replies: 2
Views: 1077

Re: Error when building simple project in Lazarus

A simple project should be OK, provided you have a 512 MB model. Even quite -understatement- complex projects like Lazarus itself should compile ok.. Do you have the latest RaspBian? Do you maybe use a fixed memory split like 256/256? 256 is not enough for Lazarus (but it is for fpc..) Lazarus works...
by Thaddy
Sun Oct 06, 2013 4:42 pm
Forum: OpenMAX
Topic: OpenMAX IL demos
Replies: 14
Views: 14882

Re: OpenMAX IL demos

I do.

Tnx!
by Thaddy
Sat Oct 05, 2013 12:43 pm
Forum: Other programming languages
Topic: Lazarus didn't run proper?
Replies: 6
Views: 2332

Re: Lazarus didn't run proper?

If you want to install a new component, you will need to recompile the IDE because of the way Lazarus handles components. The design-time part is actually compiled into the IDE whereas in Delphi that is loaded dynamically. With more powerful processors this is generally not a problem. On the Pi it i...
by Thaddy
Thu Sep 26, 2013 11:28 am
Forum: Graphics programming
Topic: Creating a GUI without X?
Replies: 8
Views: 3240

Re: Creating a GUI without X?

Freepascal can do this using f.e. the TurboVision framework. (fbdev)
An example is the fp development environment.
by Thaddy
Thu Sep 26, 2013 11:22 am
Forum: Graphics programming
Topic: OpenWF: how to make it work?
Replies: 8
Views: 5726

Re: OpenWF: how to make it work?

Ditto.

I will set up a cron job on my Pi to email Dom every day to remind him ;)
by Thaddy
Mon Sep 09, 2013 2:09 pm
Forum: OpenGLES
Topic: Need opengles tutorial
Replies: 2
Views: 1866

Re: Need opengles tutorial

Look at http://opengles-book.com for the "OpenGL ES 2.0 Programming guide" book.

Apart from advertising a very good book on the subject, all sourcecode can be downloaded and may be sufficient to get you going.
Although the book really adds deeper understanding.
by Thaddy
Sun Sep 08, 2013 8:53 pm
Forum: Other programming languages
Topic: Printing with Lazarus on Adafruit Thermal Printer
Replies: 1
Views: 1353

Re: Printing with Lazarus on Adafruit Thermal Printer

I haven't used that particular printer, but it should be pretty easy. Here's a link to get you started: http://wiki.freepascal.org/Using_the_printer An alternative way is this: http://www.freepascal.org/docs-html/rtl/printer/assignlst.html Simple bare metal code example, untested, from memory: progr...

Go to advanced search