Results 1 to 2 of 2

Thread: How to generate simple sounds for QAudioOutput objects?

  1. #1
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to generate simple sounds for QAudioOutput objects?

    Hello,

    I'd like for the user to be able to generate simple sounds from the gui, that don't necessarily ever even need to be saved to a file--nothing more than pure tones. I.e. the user would key in frequency, duration, and maybe volume, and the tone would play. Does anybody know how to do this?

    Matt

  2. #2
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to generate simple sounds for QAudioOutput objects?

    I do, now. You can create a QIODevice from a QByteArray, not just a file. And (who knew) there is an QAudioOutput example in the Multimedia subfolder among the Qt demos which does just this.

Similar Threads

  1. QAudioOutput help
    By XavierQT in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2010, 10:35
  2. Sounds in Qt
    By Dante in forum Qt Programming
    Replies: 1
    Last Post: 20th April 2009, 14:41
  3. Multiple sounds with QSound possible?
    By JimDaniel in forum Newbie
    Replies: 2
    Last Post: 4th October 2007, 20:02
  4. Simple: Operator overloading with heap objects
    By durbrak in forum General Programming
    Replies: 12
    Last Post: 25th April 2007, 13:20
  5. Replies: 7
    Last Post: 18th July 2006, 21:33

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.