swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] how to play .wav file from swf button


From: Norman Khine
Subject: Re: [Swftools-common] how to play .wav file from swf button
Date: Sat, 4 Apr 2009 22:38:00 +0200

I found how to do it,
http://technoargia.free.fr/swftools/examples/sound/embed_sound.html

but, how do I add an mp3 soundstream support?

On Sat, Apr 4, 2009 at 10:03 PM, Norman Khine <address@hidden> wrote:
> Hi,
> Where do you embed your .wav file?
>
> I tried using the wav2swf function, but get an error:
>
> $ wav2swf tfp45.wav -o tfp45.swf
> Error: no mp3 soundstream support compiled in.
>
> although lame works:
> $ lame tfp45.wav tfp45.mp3
> LAME 3.98.2 32bits (http://www.mp3dev.org/)
> Using polyphase lowpass filter, transition band:  8269 Hz -  8535 Hz
> Encoding tfp45.wav to tfp45.mp3
> Encoding as 22.05 kHz single-ch MPEG-2 Layer III (11x)  32 kbps qval=3
>    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
>   278/278   (100%)|    0:00/    0:00|    0:01/    0:01|   25.042x|    0:00
> --------------------------------------------------------------------------------
>   kbps       mono %     long switch short %
>   32.0      100.0        83.1   9.4   7.6
> ReplayGain: -5.8dB
>
> Thanks
> Norman
>
> On Sat, Apr 4, 2009 at 9:45 PM, Jens Stolze <address@hidden> wrote:
>> Am Samstag, den 04.04.2009, 21:19 +0200 schrieb Norman Khine:
>>> Hello,
>>> I have build a captcha type of widget using SoX to generate a .wav
>>> file. I am looking to make the interface a bit more full proof as
>>> currently it just embeds the wav file as for example:
>>>
>>> <embed bgcolor="white" height="16" type="audio/wav" src="tfp45.wav"
>>> autostart="false">
>>
>>> I would like to replace the .wav player with a SWF button, so that if
>>> a user clicks on it it will play the file.
>>
>>
>> Hi,
>>
>> this is working for me.
>>
>> cu,     Jens Stolze
>>
>> ---
>>
>> # ---- beispiel-button-sound.sc
>> .flash bbox=700x400 name="beispiel-button-sound.swf" compress
>>
>> # -------- Knoepfe definieren ------------- xxx 1 x xxx
>>        .circle knopfnormal r=22 color=yellow fill=green
>>        .circle knopfdrueber r=20 color=yellow fill=orange
>>        .circle knopfgedrueckt r=18 fill=red
>>        .circle aktiverbereich r=22 fill=black
>>
>> # --------  Klaenge definieren
>>        .swf klang1 "ruhe-bitte.swf"
>>        .swf
>>
>> # -----------Knopfaktion definieren
>>        .button knopf1
>>                .show knopfnormal as=idle
>>                .show knopfdrueber as=hover
>>                .show aktiverbereich as=area
>>                .show knopfgedrueckt as=pressed
>>
>>                # ------ Funktion definieren ----
>>                .on_press:
>>                   RunSound1();
>>                .end
>>        .end
>>
>> # ---------- Ausgaben definieren -------
>>        .put knopf1 x=300 y=100
>>
>> # ----- Actionscript routines ---
>> # 1 x action-Zeile und Platzhalter-Zeile xxx
>>
>>        .action:
>>        _root.createEmptyMovieClip("movie1",2);
>>                function RunSound1(){
>>                        _root.attachMovie("klang1","movie1",2);
>>                }
>>        .end # --- Actionscript functions
>>
>> #-- xxx 10 x  plus Anpassung der Namen xxx
>> # ----------- Flashscript beenden ------ xxx 1 x die end-Zeile ***
>> .end
>>
>>
>>
>>
>>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]