A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Sound conflict

  1. #1
    Thick as a Brick bobgodwin's Avatar
    Join Date
    Sep 2003
    Location
    Metro Detroit
    Posts
    217

    Sound conflict

    I built a record player for my site. It works except the rotation slows down when the sound starts. I'm using a shockwave file for sound, and this for rotation:

    onClipEvent(enterFrame){
    this._rotation +=15;}

    Here's the link:
    http://www.howardglazer.com/bob/record_player.html

    Is there a way around this?

  2. #2
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890

    Re: Sound conflict

    Originally posted by bobgodwin
    I built a record player for my site. It works except the rotation slows down when the sound starts. I'm using a shockwave file for sound, and this for rotation:

    onClipEvent(enterFrame){
    this._rotation +=15;}

    Here's the link:
    http://www.howardglazer.com/bob/record_player.html

    Is there a way around this?
    He he ... well done BOB !
    This is the real power of Flash (as I said many times before,not suitable for sophisticated projects).
    Anyway, try to stream an MP3 file instead of using that SWF.
    Also,try to replace that text with a GIF image.

    p.s.
    You can't use a shockwave file for sound.
    Shockwave (DCR files) is something very different.
    But this is MacroMedia's fault,not yours.
    best regards

  3. #3
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    I like your "ancient" player,and for this reason I had to digg a little bit.
    Your problem is the buggy "SWF music track".
    Test your player with my track (see the attached file).
    Everything works just perfect !


    p.s.
    don't remove that banner !
    ha ha ha

  4. #4
    Thick as a Brick bobgodwin's Avatar
    Join Date
    Sep 2003
    Location
    Metro Detroit
    Posts
    217
    Well, I guess the program I use to convert to .swf (Boomer Audio) corrupts the file. I used another program, and the player doesn't slow down, but it doesn't stream any more either (56k modem here). Once it loads, it works fine. I did use your file with the same results, no streaming.

    Here's the new player:
    www.howardglazer.com/bob/record_player2.html

    How do you get an mp3 to stream without having to open a new window, to play like a .swf does?

  5. #5
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    Originally posted by bobgodwin
    I did use your file with the same results, no streaming.

    Here's the new player:
    www.howardglazer.com/bob/record_player2.html

    How do you get an mp3 to stream without having to open a new window, to play like a .swf does?
    That's because I had no intention to make it streamed.
    If you need to stream MP3 files ( http://necromanthus.com/KoolMoves/MP3Player.html ),use for that button the following script:

    mySnd = new sound();
    mySnd.setvolume(100);
    mySnd.setpan(0);
    mySnd.loadsound("music_file.mp3", true);


    cheers

  6. #6
    Thick as a Brick bobgodwin's Avatar
    Join Date
    Sep 2003
    Location
    Metro Detroit
    Posts
    217
    But why does the bad file stream and slow down my record player and the good one not slow down the player but not stream? Can I get it to work like the old file (start to play immediately) without the slow down. Or do I build a virtural 8 track player (Ah, the 8 track. Now there was some music technology).

    I tried the mp3 route and the mp3 speeds up, like the old Alvin & the chipmunks cartoon.

  7. #7
    Degenerate and baise art thou. docree's Avatar
    Join Date
    Feb 2001
    Location
    USA
    Posts
    390
    From the help file:
    "If your sound file is sampled at a rate other than 5500, 11025, 22050, or 44100, the sound will play in the Flash player at a rate nearest to one of the four rates listed above."

    That is most likely why the mp3 speeds up...
    Resample and retry.
    DocRee

  8. #8
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    Originally posted by bobgodwin
    Or do I build a virtural 8 track player (Ah, the 8 track. Now there was some music technology).

    I tried the mp3 route and the mp3 speeds up, like the old Alvin & the chipmunks cartoon.
    Yummy !
    I can't wait to see your 8 tracks player !
    Do you like that cartoon ??? LOL
    p.s.
    DOCREE is right: 22050Hz or (if you think that WWW is a kind of POLYGRAM) 44100Hz.
    best regards.

  9. #9
    Thick as a Brick bobgodwin's Avatar
    Join Date
    Sep 2003
    Location
    Metro Detroit
    Posts
    217
    That did it (Jumps up and down and does happy dance). I Resampled at 22050 and it works like I want now. Thanks Doc, thanks Necro. Here's the link:

    www.howardglazer.com/bob/record_player_mp3.html
    tell me if it works for you.

    I loved the chipmonks, had all there records. Better than the Beatles ya know.

    I'll get right on the 8 track. Tryin' to figure out how to get it to play a little bit of the other songs in the backgroun will be the hard part.

    Thanks again

  10. #10
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    Originally posted by bobgodwin
    www.howardglazer.com/bob/record_player_mp3.html
    tell me if it works for you.
    Just perfect !
    But I can't adjust the TONE ... ha ha ha
    Waiting for that 8 tracks player ...

  11. #11
    Thick as a Brick bobgodwin's Avatar
    Join Date
    Sep 2003
    Location
    Metro Detroit
    Posts
    217
    Is there a way to adjust volume and/or tone? That would be Kool.

    Here's the file if anyone wants to play with it.
    Last edited by bobgodwin; 01-05-2008 at 05:05 PM.

  12. #12
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    Originally posted by bobgodwin
    Is there a way to adjust volume and/or tone? That would be Kool.
    Flash is not able to process sounds, so it's impossible to adjust the TONE.
    To adjust VOLUME (using external SWF files,this case),take a look at this ancient example:
    http://necromanthus.com/KoolMoves/SoundTracks.html
    a tip: instead of 4 tracks you have only one.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center