the thinBlog

Saturday, July 12, 2008

Reading .wav files to AIR.

So while working on FlossyFX I was trying to see if there was a way to import .wav or .aiff files into AIR to play in Flossy. Since those file types aren't native I was trying to look for alternate ways to get this going.

At first I thought I could write a hook to lame to convert the file into an MP3 then import into AIR. But from what I read security is tight, so that was a no go. Boo!

Then I saw Merapi, a project that allows a bridge between Java and AIR. So I signed up for the beta. I am still waiting for the beta email, but while waiting I found Benjamin Dobler's Rich Apps blog. Benjamin broke down how to take the byte array information from a wav file and stuff it down to a swf for the sound to play. This totally answered my issue of getting wav files working.

Now I am in the process of taking the wav conversion code and converting the idea over to aif files as well. The binary structure of an aif file is way more organized then wav is it seemed fairly easy to get to the byte data. I just have to make sure it's saving the data in all the right places. If I get the code done I will post the solution.

Here is the post on the wav conversion. I did have to change the code a bit in Benjamin's WavSWF Class and add the LoaderContentInfo to the Loader because of the new security settings in AIR.

FYI, if you are looking for more information on ByteArrays check out http://bytearray.org/

Labels: , ,

posted by Romke de Haan at 11:04 PM 2 comments

Saturday, March 08, 2008

FlossyFX v2 Beta 1


So one day at work one of the designers showed me FlossyFX v1.5. He asked if it was possible to add a few features like drag and drop samples or keep the application always on top.

Once he said that I thought, "Well I can do that with Adobe's AIR!" So he got me in contact with DJ Autobot from Flosstradamus, the creator of FlossyFX and we got to work.

A few weeks later we now have FlossyFX v2 beta 1! Click on the AIR Badge installer below. Click here to download FlossyFX manually.



*By downloading FlossyFX, you acknowledge THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Here's what's new:

Thinner
Flossy is now slimmer so that is fits nice while running Serato.

Always on top
One of the most requested features! Now Flossy will always stay on top! No need to alt tab to find it anymore. Just click on the application to activate it!

Drag and Drop
You can drag your mp3 samples from Serato straight on to a key in Flossy!

Multiple Fire
Activate multiple sounds by turning the Multiple fire switch or holding the shift key down!

Save and Load .ffx
Once you have custom samples inside FlossyFX you can save a reference of the files to load in later!

Help a Brotha out..
Found a bug or have a suggestion for FlossyFX? Please join our Google group.

Let us know you what you think!

Find out more info on Adobe AIR.

Labels: , ,

posted by Romke de Haan at 9:11 AM 16 comments