Go to advanced search

by flatmax
Mon Jul 24, 2017 1:20 pm
Forum: C/C++
Topic: Tutorial 1 - Audio programming with gtkIOStream
Replies: 2
Views: 818

Re: Tutorial 1 - Audio programming with gtkIOStream

We need an audio file for testing, so lets download a free one : wget "https://ogg.jamendo.com/download/track/206411/ogg1/" -O flatmax.CentralTransmission.ogg Compile your code : g++ `pkg-config --cflags --libs gtkIOStream` -o SoxInOut SoxInOut.C The pkg-config statement tells g++ about preprocessor...
by flatmax
Mon Jul 24, 2017 1:20 pm
Forum: C/C++
Topic: Tutorial 1 - Audio programming with gtkIOStream
Replies: 2
Views: 818

Re: Tutorial 1 - Audio programming with gtkIOStream

In the geany editor, enter the following code : #include <Sox.H> #include <iostream> int main(int argc, char *argv[]) { if (argc<3){ // input check cout<<"Usage:\n"<<argv[0]<<" audioFileNameIn audioFileNameOut"<<endl; return -1; } Sox<int> sox; // declare our sox object reading/writing int (32 bits)...
by flatmax
Mon Jul 24, 2017 12:50 pm
Forum: C/C++
Topic: Tutorial 1 - Audio programming with gtkIOStream
Replies: 2
Views: 818

Tutorial 1 - Audio programming with gtkIOStream

gtkIOStream is a versatile software for signal processing and audio processing, amongst other features (such as GUI programming). In this tutorial we will focus on loading audio from file (almost any type of audio file format) and saving it back to file (almost any audio file format). Before we star...
by flatmax
Fri Jul 21, 2017 2:32 pm
Forum: Graphics, sound and multimedia
Topic: Final designs of the Audio Injector Zero
Replies: 0
Views: 488

Final designs of the Audio Injector Zero

We are nearing the end of our campaign, and we have come a long way - thanks to everyone for pledging and being involved. We think we can obtain at least one more stretch goal ... so come along and join in, or just help us spread the word ! https://www.kickstarter.com/projects/1250664710/audio-injec...
by flatmax
Fri Jul 21, 2017 1:54 pm
Forum: C/C++
Topic: Tutorial 0 - Audio programming with gtkIOStream
Replies: 1
Views: 704

Re: Tutorial 0 - Audio programming with gtkIOStream

Next we will install gtkIOStream . We need to clone its git repository : git clone https://github.com/flatmax/gtkiostream.git Great - now lets compile gtkIOStream. To do that we have to change to its directory, reconfigure autotools, configure the make system and make it, then make install it ! ... ...
by flatmax
Fri Jul 21, 2017 12:29 pm
Forum: C/C++
Topic: Tutorial 0 - Audio programming with gtkIOStream
Replies: 1
Views: 704

Tutorial 0 - Audio programming with gtkIOStream

This tutorial is the first in a series of audio programming tutorials using gtkIOStream. gktIOStream is a C++ development package which allows simple interfacing to audio subsystems in Linux. The two main systems it uses is jackd and ALSA. In this tutorial we will install gtkIOStream and test that i...
by flatmax
Thu Jul 13, 2017 8:05 am
Forum: HATs and other add-ons
Topic: Microphone Hookup to Pi for Beginners!
Replies: 11
Views: 28715

Re: Microphone Hookup to Pi for Beginners!

Hi there, You need to put your electret microphpone through an ADC (analogue to digital converter). The ADC should also be setup to power and receive the audio from the electret mic. There are some products out there which can do this. If you purchase one of the Audioinjector boards, they have a foo...
by flatmax
Thu Jul 13, 2017 8:00 am
Forum: Graphics, sound and multimedia
Topic: video and pro audio project
Replies: 2
Views: 723

Re: video and pro audio project

Seems like a good approach. Do you need to record your multichannel audio to separate audio files ? If so, then there is information on the audio injector forum on how to do that : http://forum.audioinjector.net/viewtopic.php?f=9&t=2728 Otherwise, you may find it easier to use avconv (same as ffmpeg...
by flatmax
Thu Jul 13, 2017 7:56 am
Forum: Português
Topic: Configurar Microfone
Replies: 2
Views: 3081

Re: Configurar Microfone

Hi there,

You need to get either a GPIO sound card with a microphone or a USB sound card with a microphone. Once you plug the card in and configure the /boot/config.txt file, the Pi will recognise the sound card.

You can then record the video with both audio and video.

Matt
by flatmax
Wed Jul 12, 2017 11:32 am
Forum: Advanced users
Topic: Raspberry pi Zero - Analog audio input
Replies: 9
Views: 8081

Re: Raspberry pi Zero - Analog audio input

The dynamic range of 10 bits is very small :) The noise floor would be high. If you consider that people have extremely acute hearing, with our ability to hear between 120 dB SPL and 0 dB SPL very well. We can hear on a scale of 1:1 000 000 ! 20 uPa to 20 Pa if that link is correct. If you look at t...
by flatmax
Thu Jul 06, 2017 12:33 pm
Forum: Gaming
Topic: MAME ROMS won't launch with USB sound card
Replies: 3
Views: 950

Re: MAME ROMS won't launch with USB sound card

It is possible that you need to also specify the default ctl, something like this :

Code: Select all

pcm.!default {
	type hw
	card 1
}

ctl.!default {
	type hw           
	card 1
}
Matt
by flatmax
Thu Jul 06, 2017 9:25 am
Forum: C/C++
Topic: Tutorial 0 - Multithreading using gtkIOStream
Replies: 8
Views: 1838

Re: Tutorial 0 - Multithreading using gtkIOStream

Hi , yep So the idea is to abstract the threads into C++ classes. This allows you to manage class variables and do more complex things in a trivial manner ... in the following tutorials, it will show you how to do things like share memory and overload a class method to instantiate a thread function....
by flatmax
Wed Jul 05, 2017 10:31 am
Forum: HATs and other add-ons
Topic: The new look - Audio injector zero
Replies: 1
Views: 777

Re: The new look - Audio injector zero

We have hit our first stretch goal and now these items are coming with an RCA connector in the bag ! Heading for the second shortly ... come help us design a great product, on Kickstarter.
by flatmax
Fri Jun 30, 2017 11:16 am
Forum: HATs and other add-ons
Topic: The new look - Audio injector zero
Replies: 1
Views: 777

The new look - Audio injector zero

Hi there,

We are up to our fifth revision of the audio injector zero sound card, check out the new design. This picture shows the new audio breakouts ... come join the live design project ...
breakouts.pots.v.1.5.webSmall.jpg
Audio injector zero breakouts
breakouts.pots.v.1.5.webSmall.jpg (58.18 KiB) Viewed 777 times
by flatmax
Fri Jun 23, 2017 6:06 am
Forum: Troubleshooting
Topic: Applications killed after long run
Replies: 6
Views: 823

Re: Applications killed after long run

Do you write out your own logs from the processes ?
Can you use top to look at them day by day - perhaps to check for memory leaks = memory usage getting larger and larger in an unexpected way ...

Matt
by flatmax
Fri Jun 23, 2017 6:05 am
Forum: C/C++
Topic: Tutorial 3 - Multithreading using gtkIOStream
Replies: 5
Views: 909

Re: Tutorial 3 - Multithreading using gtkIOStream

Your suggestions have been added in this commit. Keep em coming !
by flatmax
Thu Jun 22, 2017 12:32 pm
Forum: Graphics, sound and multimedia
Topic: Using the pi 3 as a 16+ channel DSP
Replies: 6
Views: 3505

Re: Using the pi 3 as a 16+ channel DSP

I have solve this problem over I2S, however it is limited to 8 out and in in my implementation - only 6 inputs are used. I think it could go more, such as 16 channels @ 96 kHz ... hmmm ... would take a lot of work. A lot of management goes on in the FPGA on the hat... It tooks months to get right, n...
by flatmax
Thu Jun 22, 2017 12:28 pm
Forum: Troubleshooting
Topic: RPi 3 & Audacity
Replies: 3
Views: 4748

Re: RPi 3 & Audacity

Oh yes, audacity tries to use ALSA plugins or devices to record.
There is a way to do this with pavucontrol, which will help you loopback for recording with pulse audio.
Check this page out !

Matt
by flatmax
Thu Jun 22, 2017 12:20 pm
Forum: C/C++
Topic: Tutorial 3 - Multithreading using gtkIOStream
Replies: 5
Views: 909

Re: Tutorial 3 - Multithreading using gtkIOStream

Thanks for the feedback. Sounds good to me.
I have made some effort to avoid using std. I will change these files as you suggest.

Something else I found recently was the iostream greatly bloats WASM builds, so I think I will pull that out of the mix as well.

Matt
by flatmax
Wed Jun 21, 2017 12:21 pm
Forum: C/C++
Topic: Tutorial 3 - Multithreading using gtkIOStream
Replies: 5
Views: 909

Re: Tutorial 3 - Multithreading using gtkIOStream

To compile the program we execute the following g++ -Igtkiostream/include -pthread WaitingThread.C -o WaitingThread we then run the program $ ./WaitingThread main: starting the thread and sleeping WaitingThread : waiting main: signalling the thread main: meeting the thread WaitingThread : I have bee...
by flatmax
Wed Jun 21, 2017 12:19 pm
Forum: C/C++
Topic: Tutorial 3 - Multithreading using gtkIOStream
Replies: 5
Views: 909

Re: Tutorial 3 - Multithreading using gtkIOStream

On the command line, edit the file WaitingThread.C geany WaitingThread.C Enter or cut and paste the following into the file. #include <Thread.H> #include <unistd.h> /** This class's main thread waits to be signalled before continuing. */ class WaitingThreadTest : public WaitingThread { void *threadM...
by flatmax
Wed Jun 21, 2017 12:06 pm
Forum: C/C++
Topic: Tutorial 3 - Multithreading using gtkIOStream
Replies: 5
Views: 909

Tutorial 3 - Multithreading using gtkIOStream

Multithreading is a term used for running your code in parallel. gtkIOStream is a set of C++ headers which enable you to multithread in a very trivial manner. Tutorial contents can be found here . If you haven't set up your system you should refer to Tutorial 0 which will lead you through installati...
by flatmax
Wed Jun 21, 2017 11:27 am
Forum: C/C++
Topic: Tutorial 3 - Multithreading using gtkIOStream
Replies: 0
Views: 325

Tutorial 3 - Multithreading using gtkIOStream

Multithreading is a term used for running your code in parallel. gtkIOStream is a set of C++ headers which enable you to multithread in a very trivial manner. Tutorial contents can be found here . If you haven't set up your system you should refer to Tutorial 0 which will lead you through installati...
by flatmax
Tue Jun 20, 2017 11:57 am
Forum: Camera board
Topic: What is meant by raw H.264?
Replies: 11
Views: 6268

Re: What is meant by raw H.264?

It seems that the way to go about this is to install avconv (sudo apt-get install avconv should do it) and pipe the video to avconv. What avconv will let you do is wrap the audio an video into a single stream. Does it matter if you use raspivid ? I notice from here , and here and from memory that an...
by flatmax
Tue Jun 20, 2017 9:59 am
Forum: Media centres
Topic: CarPi
Replies: 4
Views: 2271

Re: CarPi

Yep - plenty of sound cards out there.
Are you planning to use a car audio amp ? A 4 channel one and a 2 channel one ?
Are you going to use crossovers or faders ?

What are you thinking of doing ?

Matt

Go to advanced search