Tuesday, March 8, 2011

mplayer v3 on Dropbox

Hey guys, its 2am so gonna make this quick, added some more functionality to program, now user can record a wav file, and during same execution cycle of program, run that instance of wav file.

To record a file, press the 'n' key, followed by 'm' key to stop recording and save. (This takes a few seconds to complete). Then make use of c and v keys to play and stop playing user.wav


(usual password)

You may need to create a user.wav file in your directory to get this to work.


Known issues: in order to allow the recorded wav file to run during same iteration of execution, had to get the file to load into a buffer during execution of program (as oppose to doing so before program starts)..may make things slightly laggy if existing wav file is slightly large, but there was no other way of getting the desired result. (not that I know of at least)

Also, for some reason the current user.wav white line does not work on playback, I will have a look at it first thing tomorrow, as it is most likely a result of me not being able to find the problem in my tired state, however this is not a mission critical bug, as we will most likely use a different UI (see Maria's post) for finished package.

3 comments:

  1. EDIT: oh yeah, forgot to mention, volume up and down should also work when playing back user.wav, via 'C' and 'V'

    ReplyDelete
  2. kev... im not sure if u mentioned this already or not but im getting a buffer overrun error from minim when i launch the program. Have u increased anything else apart from the 512?

    ReplyDelete
  3. hey guys, was looking into the minim documentation yesterday .. buffer underrun isnt an error as such, it's a minim thing to let users know that prior to loading files into the buffer, the buffer is empty.

    Should only be an issue if we get them during execution (expect around 12 buffer underruns before execution, as 12 buffers are loading 12 audio files into them)

    You will have to wait around half a minute for these files to be loaded before the current UI shows up.

    Off to gym now, when I'm back I'll clean up the code, and do some thinking/reading up on fiducials.

    We also need to figure out how we are gonna sort out volume changes when dealing with fiducials (change in x plain versus rotation of fiducial)

    ReplyDelete