Thread: A GUI (mouse click menu) for auditioning Audio Files

  1. #1
    Registered User
    Join Date
    Dec 2015
    Posts
    2

    A GUI (mouse click menu) for auditioning Audio Files

    I am a NEWBIE to C programming and looking to see how best to proceed with this project.

    Goal: To create a menu whereby with a click of a mouse, I can select which audio file that can be played via a script command that is built into my soundcard.


    Background:

    I have a huge amount of audio files (library AIFF files) that I want to be able to select and play. I would like to display those files (or a selection of those files) on screen and than with the option of my mouse, click and play the file.

    NOTE: I can already play/redirect audio files to my sound card via a script command today, so I don't need any of those arguments or functions developed with the C program. I would just embed those string arguments into the C program. I just need the GUI that will allow me to pick which files to play via mouse selection. If you can imagine a JUKE box, than you can understand what I am trying to do. I hope this makes sense.

    Thanks for any advice.

  2. #2
    Registered User
    Join Date
    May 2012
    Location
    Arizona, USA
    Posts
    948
    It seems like a file browser (eg, Explorer or Finder) does what you want already. It displays a list of files and lets you play any file you want with your mouse by double-clicking. There's also many many audio players out there (eg, VLC) that can also display a list of files that are not necessarily in a single folder and let you play a file by double-clicking or whatnot.

    I don't understand what you mean by "played via a script command that is built into my soundcard". AFAIK, sound cards can't run scripts or have script commands built into them. They play whatever audio data you send to them, and they have no idea what a file even is. It's up to the OS and applications to feed audio data from a file to the sound card.

  3. #3
    Registered User
    Join Date
    Dec 2015
    Posts
    2
    Thanks Christop

    Actually, this sound card does have the ability to play sound files using its built in script commands. It's one of the unique features of the card that allows to play sounds without having to load the Soundcard's GUI for playing/editing/recording etc.

    The reason that I don't want to use Finder or VLC is because I need to be able to build a C app and call these "script commands" within C . This would be Phase 1.

    I have outline in "plain english" what I would like to do below:

    How Level Program Design:
    ==================
    Read the soundfiles from a directory on hard drive
    Store them into an array
    Loop the array until a "mouse click" is selected
    Play the sound via built in script of soundcard

    Does this make sense?


    BTW: This is an old system with an old soundcard that cannot play sound files in realtime within the OS environment ..the only way to audition a sound file is via the soundcard's GUI app or the soundcards script commands.
    Last edited by pneron; 12-24-2015 at 06:37 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. X lib Mouse Click Error
    By lautarox in forum C Programming
    Replies: 8
    Last Post: 12-08-2008, 12:00 PM
  2. Using mouse click
    By kakashi in forum C++ Programming
    Replies: 10
    Last Post: 01-31-2006, 01:38 AM
  3. Capturing a mouse click?
    By Blackroot in forum C++ Programming
    Replies: 5
    Last Post: 01-08-2006, 07:22 PM
  4. Hold Mouse Click
    By zach0616 in forum C++ Programming
    Replies: 3
    Last Post: 07-06-2005, 08:13 PM