This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo stty -F /dev/ttyACM0 1200 | |
echo waiting | |
while [ ! -d /media/pi/RPI-RP2 ]; do sleep 0.1; done | |
sleep 0.5 | |
if [ "$*" = "" ]; then echo rebooting; sudo picotool reboot; exit; fi | |
echo copying | |
cp $1 /media/pi/RPI-RP2 | |
echo done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QtGui> | |
#include <phonon/audiodataoutput.h> | |
class AudioClass: public QWidget{ | |
Q_OBJECT | |
QMap<Phonon::AudioDataOutput::Channel, QVector<qint16> > m_audiodata; | |
public slots: | |
void dataReceived(const QMap<Phonon::AudioDataOutput::Channel, QVector<qint16> >& data){ | |
//qDebug()<<"Hii"<<data[Phonon::AudioDataOutput::LeftChannel][512]; |