Ok, la semana que viene paso por alla, gracias amor
Saludos asiel -----Mensaje original----- De: Interest [mailto:interest-bounces+atorresr=aei-ucmbybat.co...@qt-project.org] En nombre de interest-requ...@qt-project.org Enviado el: viernes, 12 de agosto de 2016 13:41 Para: interest@qt-project.org Asunto: Interest Digest, Vol 59, Issue 14 Send Interest mailing list submissions to interest@qt-project.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.qt-project.org/mailman/listinfo/interest or, via email, send a message with subject or body 'help' to interest-requ...@qt-project.org You can reach the person managing the list at interest-ow...@qt-project.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Interest digest..." Today's Topics: 1. Only buzzing sound while playing wav file through QAudioOutput (Anisha Kaul) 2. Re: Only buzzing sound while playing wav file through QAudioOutput (Maurice Kalinowski) 3. Re: Only buzzing sound while playing wav file through QAudioOutput (Anisha Kaul) 4. Crash in QXcbScreen::updateRefreshRate (Scott Aron Bloom) ---------------------------------------------------------------------- Message: 1 Date: Fri, 12 Aug 2016 16:00:46 +0530 From: Anisha Kaul <born.rebel...@gmail.com> To: interest@qt-project.org Subject: [Interest] Only buzzing sound while playing wav file through QAudioOutput Message-ID: <cam1yfz8jqdn-wjuyzqxm9ivs4wpds0wjmrn0det+k6r84ul...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi, This time I tried playing a wav file, but I cannot hear anything else than a buzzing sound. Platform is windows if that matters. This time the code is in main.cpp. Please guide. *********************************************************************************************** #include <QCoreApplication> #include <QAudioOutput> #include <QFile> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QAudioOutput* audioOutpu; QFile sourceFile; sourceFile.setFileName("c.wav"); bool p = sourceFile.open(QIODevice::ReadOnly); if (p == false) qDebug() << "no file"; else qDebug() << "yes file"; QAudioDeviceInfo d1; QList<QAudioDeviceInfo> l1 = d1.availableDevices(QAudio::AudioOutput); qDebug() << "======================================================"; qDebug() << l1.first().supportedCodecs(); qDebug() << l1.first().supportedChannelCounts(); qDebug() << l1.first().supportedSampleTypes(); qDebug() << l1.first().supportedSampleRates(); qDebug() << l1.first().supportedSampleSizes(); QAudioFormat desiredFormat1; desiredFormat1.setChannelCount(2); desiredFormat1.setByteOrder(QAudioFormat::LittleEndian); desiredFormat1.setCodec("audio/pcm"); desiredFormat1.setSampleType(QAudioFormat::SignedInt); desiredFormat1.setSampleRate(44100); desiredFormat1.setSampleSize(16); QAudioDeviceInfo info1(QAudioDeviceInfo::defaultOutputDevice()); if (!info1.isFormatSupported(desiredFormat1)) { qWarning() << "Default format not supported, trying to use the nearest."; desiredFormat1 = info1.preferredFormat(); } audioOutpu = new QAudioOutput(desiredFormat1); audioOutpu->setVolume(1.0); audioOutpu->start(&sourceFile); qDebug() << "bbbbbbbbbb"; return a.exec(); } ************************************************************************************************** Output: ("audio/pcm") (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18) (SignedInt, UnSignedInt, Float) (8000, 11025, 16000, 22050, 32000, 44100, 48000, 88200, 96000, 192000) (8, 16, 24, 32, 48, 64) bbbbbbbbbb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160812/6dacd7b2/attachment-0001.html> ------------------------------ Message: 2 Date: Fri, 12 Aug 2016 11:08:13 +0000 From: Maurice Kalinowski <maurice.kalinow...@qt.io> To: Anisha Kaul <born.rebel...@gmail.com>, "interest@qt-project.org" <interest@qt-project.org> Subject: Re: [Interest] Only buzzing sound while playing wav file through QAudioOutput Message-ID: <he1pr0201mb22185ad8eb129021e56fbbba95...@he1pr0201mb2218.eurprd02.prod.outlook.com> Content-Type: text/plain; charset="utf-8" Hi, Please note that a wav file is a _container_ format, meaning it starts with a header describing the audio format and then continues with chunks of data. For more details have a look here: https://de.wikipedia.org/wiki/RIFF_WAVE This means that you will need to parse the header and provide the data, not just a file as QIODevice which is meant to be a data stream after you have set up the format correctly. Maurice From: Interest [mailto:interest-bounces+maurice.kalinowski=qt...@qt-project.org] On Behalf Of Anisha Kaul Sent: Friday, August 12, 2016 12:31 PM To: interest@qt-project.org Subject: [Interest] Only buzzing sound while playing wav file through QAudioOutput Hi, This time I tried playing a wav file, but I cannot hear anything else than a buzzing sound. Platform is windows if that matters. This time the code is in main.cpp. Please guide. *********************************************************************************************** #include <QCoreApplication> #include <QAudioOutput> #include <QFile> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QAudioOutput* audioOutpu; QFile sourceFile; sourceFile.setFileName("c.wav"); bool p = sourceFile.open(QIODevice::ReadOnly); if (p == false) qDebug() << "no file"; else qDebug() << "yes file"; QAudioDeviceInfo d1; QList<QAudioDeviceInfo> l1 = d1.availableDevices(QAudio::AudioOutput); qDebug() << "======================================================"; qDebug() << l1.first().supportedCodecs(); qDebug() << l1.first().supportedChannelCounts(); qDebug() << l1.first().supportedSampleTypes(); qDebug() << l1.first().supportedSampleRates(); qDebug() << l1.first().supportedSampleSizes(); QAudioFormat desiredFormat1; desiredFormat1.setChannelCount(2); desiredFormat1.setByteOrder(QAudioFormat::LittleEndian); desiredFormat1.setCodec("audio/pcm"); desiredFormat1.setSampleType(QAudioFormat::SignedInt); desiredFormat1.setSampleRate(44100); desiredFormat1.setSampleSize(16); QAudioDeviceInfo info1(QAudioDeviceInfo::defaultOutputDevice()); if (!info1.isFormatSupported(desiredFormat1)) { qWarning() << "Default format not supported, trying to use the nearest."; desiredFormat1 = info1.preferredFormat(); } audioOutpu = new QAudioOutput(desiredFormat1); audioOutpu->setVolume(1.0); audioOutpu->start(&sourceFile); qDebug() << "bbbbbbbbbb"; return a.exec(); } ************************************************************************************************** Output: ("audio/pcm") (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18) (SignedInt, UnSignedInt, Float) (8000, 11025, 16000, 22050, 32000, 44100, 48000, 88200, 96000, 192000) (8, 16, 24, 32, 48, 64) bbbbbbbbbb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160812/8f2d34a9/attachment-0001.html> ------------------------------ Message: 3 Date: Fri, 12 Aug 2016 17:30:08 +0530 From: Anisha Kaul <born.rebel...@gmail.com> To: Maurice Kalinowski <maurice.kalinow...@qt.io> Cc: "interest@qt-project.org" <interest@qt-project.org> Subject: Re: [Interest] Only buzzing sound while playing wav file through QAudioOutput Message-ID: <cam1yfz_7gdp6gpoapcywsg7k649r8yftdbz0-fjzng9m9q7...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Much thankful for your polite response. My problem is that I first tried this program with an mp3 file. It didn't work, then I tried the wav file. Which file format should directly work with it? Is there there something hardware specific that I need to figure out to make this work? I am on windows desktop. On Friday, 12 August 2016, Maurice Kalinowski <maurice.kalinow...@qt.io> wrote: > Hi, > > > > Please note that a wav file is a _*container*_ format, meaning it > starts with a header describing the audio format and then continues > with chunks of data. For more details have a look here: > https://de.wikipedia.org/wiki/ RIFF_WAVE > > > > This means that you will need to parse the header and provide the > data, not just a file as QIODevice which is meant to be a data stream > after you have set up the format correctly. > > > > Maurice > > > > > > *From:* Interest [mailto:interest-bounces+maurice.kalinowski > <javascript:_e(%7B%7D,'cvml','interest-bounces%2Bmaurice.kalinowski'); > >= > qt...@qt-project.org > <javascript:_e(%7B%7D,'cvml','qt...@qt-project.org');>] *On Behalf Of > *Anisha Kaul > *Sent:* Friday, August 12, 2016 12:31 PM > *To:* interest@qt-project.org > <javascript:_e(%7B%7D,'cvml','interest@qt-project.org');> > *Subject:* [Interest] Only buzzing sound while playing wav file > through QAudioOutput > > > > Hi, > > > > This time I tried playing a wav file, but I cannot hear anything else > than a buzzing sound. > > Platform is windows if that matters. > > > > This time the code is in main.cpp. > > > > Please guide. > > ************************************************************ > *********************************** > > #include <QCoreApplication> > > #include <QAudioOutput> > > #include <QFile> > > #include <QDebug> > > > > int main(int argc, char *argv[]) > > { > > QCoreApplication a(argc, argv); > > > > QAudioOutput* audioOutpu; > > > > QFile sourceFile; > > sourceFile.setFileName("c.wav"); > > bool p = sourceFile.*open*(QIODevice::ReadOnly); > > if (p == false) > > qDebug() << "no file"; > > else > > qDebug() << "yes file"; > > > > > > QAudioDeviceInfo d1; > > QList<QAudioDeviceInfo> l1 = > d1.availableDevices(QAudio::AudioOutput); > > > > qDebug() << > "======================================================"; > > qDebug() << l1.first().supportedCodecs(); > > qDebug() << l1.first().supportedChannelCounts(); > > qDebug() << l1.first().supportedSampleTypes(); > > qDebug() << l1.first().supportedSampleRates(); > > qDebug() << l1.first().supportedSampleSizes(); > > > > QAudioFormat desiredFormat1; > > desiredFormat1.setChannelCount(2); > > desiredFormat1.setByteOrder(QAudioFormat::LittleEndian); > > desiredFormat1.setCodec("audio/pcm"); > > desiredFormat1.setSampleType(QAudioFormat::SignedInt); > > desiredFormat1.setSampleRate(44100); > > desiredFormat1.setSampleSize(16); > > > > QAudioDeviceInfo info1(QAudioDeviceInfo::defaultOutputDevice()); > > if (!info1.isFormatSupported(desiredFormat1)) > > { > > qWarning() << "Default format not supported, trying to use > the nearest."; > > desiredFormat1 = info1.preferredFormat(); > > } > > > > audioOutpu = new QAudioOutput(desiredFormat1); > > audioOutpu->setVolume(1.0); > > > > audioOutpu->start(&sourceFile); > > qDebug() << "bbbbbbbbbb"; > > > > return a.exec(); > > } > > > > ************************************************************ > ************************************** > > Output: > > > > ("audio/pcm") > > (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18) > > (SignedInt, UnSignedInt, Float) > > (8000, 11025, 16000, 22050, 32000, 44100, 48000, 88200, 96000, 192000) > > (8, 16, 24, 32, 48, 64) > > bbbbbbbbbb > > > > > > -- Anisha Kaul -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160812/f032c0f1/attachment-0001.html> ------------------------------ Message: 4 Date: Fri, 12 Aug 2016 17:41:05 +0000 From: Scott Aron Bloom <sc...@towel42.com> To: "interest@qt-project.org" <interest@qt-project.org> Subject: [Interest] Crash in QXcbScreen::updateRefreshRate Message-ID: <mwhpr10mb1984db55aa8ec17ea748deb1a9...@mwhpr10mb1984.namprd10.prod.outlook.com> Content-Type: text/plain; charset="us-ascii" One of my customers is having a problem with our tool since we moved to Qt5.5.1. We are not able to move to Qt5.6 They are running their system via exceed turboX However, when the tool starts up, it is crashing immediately with the following call stack. Any ideas for a work around? Program received signal SIGFPE, Arithmetic exception. 0x00007fffef9dabf3 in QXcbScreen::updateRefreshRate(unsigned int) () from /ssd/ecaddev/software/Blue_Pearl/2016.2/redhat6/platforms/../lib/libQt5XcbQpa.so.5 Missing separate debuginfos, use: debuginfo-install expat-2.0.1-11.el6_2.x86_64 fontconfig-2.8.0-5.el6.x86_64 freetype-2.3.11-15.el6_6.1.x86_64 glib2-2.28.8-4.el6.x86_64 glibc-2.12-1.166.el6_7.7.x86_64 libICE-1.0.6-1.el6.x86_64 libSM-1.2.1-2.el6.x86_64 libX11-1.6.0-6.el6.x86_64 libXau-1.0.6-4.el6.x86_64 libXcomposite-0.4.3-4.el6.x86_64 libXdamage-1.1.3-4.el6.x86_64 libXext-1.3.2-2.1.el6.x86_64 libXfixes-5.0.1-2.1.el6.x86_64 libXi-1.7.2-2.2.el6.x86_64 libXrender-0.9.8-2.1.el6.x86_64 libXxf86vm-1.1.3-2.1.el6.x86_64 libdrm-2.4.59-2.el6.x86_64 libgcc-4.4.7-16.el6.x86_64 libselinux-2.0.94-5.8.el6.x86_64 libstdc++-4.4.7-16.el6.x86_64 libudev-147-2.63.el6_7.1.x86_64 libuuid-2.17.2-12.18.el6.x86_64 libxcb-1.9.1-3.el6.x86_64 libxml2-2.7.6-20.el6_7.1.x86_64 libxslt-1.1.26-2.el6_3.1.x86_64 mesa-dri-drivers-10.4.3-1.el6.x86_64 mesa-libEGL-11.0.7-4.el6.x86_64 mesa-libGL-10.4.3-1.el6.x86_64 mesa-libgbm-11.0.7-4.el6.x86_64 sqlite-3.6.20-1.el6_7.2.x86_64 zlib-1.2.3-29.el6.x86_64 (gdb) where #0 0x00007fffef9dabf3 in QXcbScreen::updateRefreshRate(unsigned int) () from platforms/../lib/libQt5XcbQpa.so.5 #1 0x00007fffef9dd03e in QXcbScreen::QXcbScreen(QXcbConnection*, QXcbVirtualDesktop*, unsigned int, xcb_randr_get_output_info_reply_t*, QString) () From ../lib/libQt5XcbQpa.so.5 #2 0x00007fffef9c9259 in QXcbConnection::createScreen(QXcbVirtualDesktop*, unsigned int, xcb_randr_get_output_info_reply_t*) () from platforms/../lib/libQt5XcbQpa.so.5 #3 0x00007fffef9ca6f6 in QXcbConnection::initializeScreens() () from platforms/../lib/libQt5XcbQpa.so.5 #4 0x00007fffef9cb41f in QXcbConnection::QXcbConnection(QXcbNativeInterface*, bool, unsigned int, char const*) () from platforms/../lib/libQt5XcbQpa.so.5 #5 0x00007fffef9d0720 in QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**) () from platforms/../lib/libQt5XcbQpa.so.5 #6 0x00007fffefcd446c in ?? () -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160812/71d68c6f/attachment.html> ------------------------------ Subject: Digest Footer _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ------------------------------ End of Interest Digest, Vol 59, Issue 14 **************************************** -- Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et secrets. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Si vous n'etes pas le bon destinataire, nous vous demandons de ne pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de notifier cette erreur a l'expediteur et d'effacer immediatement cette communication de votre systeme. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. If you are not the right addressee, we ask you not to read, copy, use or disclose this communication. Please notify this error to the sender and erase at once this communication from your system. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest