Questions tagged [soundchannel]

30 questions
6
votes
3 answers

Check if SoundChannel is playing sound

How to check reliably if a SoundChannel is still playing a sound? For example, [Embed(source="song.mp3")] var Song: Class; var s: Song = new Song(); var ch: SoundChannel = s.play(); // how to check if ch is playing?
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
2
votes
1 answer

Have any idea's of getting a new audio file to play with every click of this lesson?

I am somewhat new to AS but still trying to learn and accomplish what seems like tough stuff. I will prevail! The code below shows my progress so far. I have a UI Loader that has a series of thumbnails. With each click of the thumbnail a new SWF…
P.T. Fenn
  • 55
  • 8
2
votes
1 answer

ActionScript 3.0 Loading and Playing Multiple Sounds

I have written a loadSound function which handles loading and playing multiple sounds. This function works fine when I call this function in another keyframe i.e. the frame in which the function is not written. But when I call the function on the…
2
votes
1 answer

crackle appears when fading sound as3

I am using tweenlite to fade out sound, the fade out effect itself is working well, but it seems that everytime soundTransform is applied to soundChannel with tweenlite some noise like a crackle appears. You can test it here here And here is the…
1
vote
1 answer

AS3: Working with multiple sounds & channels - are there any good libraries for this?

Are there any audio management libraries for ActionScript 3? The more tailored they are for game development the better. I'm finding it hard to understand and work with multiple channels, which is making a lot of my audio sound screwy and cancel…
Marty
  • 39,033
  • 19
  • 93
  • 162
1
vote
1 answer

Flash CS4 + AS3, SoundChannel.position inaccurate

EDIT: Sorry for the question being reworded, but I am just simplifying the issue. I am not getting accurate values for SoundChannel.position for an external MP3 that is playing. I've tried a variety of audio bitrates and consistently, i am getting a…
Keith
  • 11
  • 2
1
vote
2 answers

Save sound from SoundChannel object AS3 Flash

I'm planning to program a small piano in flash that have an x number of notes to play through a SoundChannel. What I have not found is a way to record what is playing through SoundChannel and send it as byteArray to a server side script that will…
1
vote
2 answers

TypeError 1009 and muting sound in AS3

I'm really new to this, so, I'm really sorry if there is some obvious solution that I've somehow missed, but oh well... I am in the process of making a game, and I was trying to make a character selection menu. Each character would have a unique…
1
vote
1 answer

How can I stop music from playing multiple times when going back to the frame it starts from in as3?

I have a music track that starts on the first frame and plays throughout the entire application. When I go back to the first frame, the current music is still playing but the song starts again over the top of it. How can I make it so it only plays…
Ceejay1705
  • 35
  • 7
1
vote
0 answers

AS3 SoundChannel losing decimal places on SoundTransform.volume value

I am trying to make a volume control for audio calibration. We were hoping to go to a 0.1% increment for altering the volume on a SoundChannel's volume. This is my code, and my output. var transform:SoundTransform =…
Eric Holmes
  • 415
  • 7
  • 21
1
vote
1 answer

as3 stopping sound removes eventListener?

I am having an issue with stopping a sound and then starting it back up. After I stop the sound and start it again the eventListener seems to be gone. Now the "easy" fix seems to be just "add" another one when you start the sound again. This can not…
Papa De Beau
  • 3,744
  • 18
  • 79
  • 137
1
vote
1 answer

Why is there a lag when pausing a MP3 stream in flash

I have this code to stream a mp3 file: var isPlaying:Boolean; var pausePoint:Number; var soundChannel:SoundChannel = new SoundChannel(); var sound:Sound = new Sound( new URLRequest( 'mp3file.mp3' ) ); var volumeAdjust:SoundTransform = new…
user1490674
1
vote
2 answers

Boosting Audio Above 1 on SoundChannel

I'm dealing with an audio anomalie. I have audio that is mastered quite loud, yet on some systems, it is too quiet. Boosting the audio file anymore causes clipping. It would be fine, except for the fact that, in my project, a lot of other sounds are…
CodeMouse92
  • 6,840
  • 14
  • 73
  • 130
0
votes
0 answers

SoundChannel won't play correctly on the middle of the frame

I'm currently working on visual novel project and facing some problem when using SoundChannel. I've search the similar question here and other web but no result, so I'm ended up here. The problem occur when I need to play .mp3 on Frame 15 Scene 2.…
Angsul
  • 1
0
votes
0 answers

AS3: Is the "new SoundChannel()" allocation pointless?

I see a lot of guides that do something like this: var mySound:Sound = new Sound(); var myChannel:SoundChannel = new SoundChannel(); //unnecessary allocation? myChannel = mySound.play(); Is allocating a new SoundChannel() in the second line…
BladePoint
  • 632
  • 5
  • 16
1
2