Re: [Flashcoders] audio pause/resume problem
hi steven,
this makes me feel much better thanks.
sitll, it sucks that this got up to FP9, looks like it's fixed in FP10.
thanks,
rodrigo.
- Original Message -
From: "Steven Sacks"
To: "Rodrigo Augusto Guerra" ; "Flash Coders List"
Sent: Thursday, September 24, 2009 9:56 PM
Subject: Re: [Flashcoders] audio pause/resume problem
http://www.stevensacks.net/2008/08/07/bug-with-sound-channel-position-and-mp3s-less-than-128kbps
On Sep 23, 2009, at 6:19 AM, Rodrigo Augusto Guerra wrote:
c'mom guys...no one knows? i'm in a dead end here
i can't guarantee that everybody will have FP 10 to avoid this
:)
- Original Message - From: "Rodrigo Augusto Guerra"
>
To: "Flash Coders List"
Sent: Tuesday, September 22, 2009 6:56 PM
Subject: [Flashcoders] audio pause/resume problem
hi coders!
I have a system that it's a dialog between 2 people (one the computer
the other is the user) the computer start talking ( it's 1 mp3 file
loaded with all the computer speech) when it's the user turn I have an
action to pause the mp3 (well it stores the current audio position and
stops the audio) and then when he finish recording his speech it start
playing from where it was. (passing the audio position to the audio
object)
The problem is that when it resumes the mp3, it doesn't start from where
it stopped, it goes forward. no logic at all
well it's working on FP version (WIN 10,0,2,54) but not in FP WIN
9.0.124.0.
I really would like some light on this as I don't know where to look
anymore and I don't want to believe that it's a FP9 problem.
I isolated and reproduced the error here:
(i putted the text so you can follow the jumps.)
http://www.alumni.org.br/tmp/rodrigo/som.html
any help will be appreciated.
thanks coders!
this is the code:
audioObj = new Sound();
audioObj.loadSound("http://www.alumni.org.br/elearning/cursos/LetsTravel/Audio/audio16.mp3
", false);
//qdo carregar audio comeca e atulzia o status
audioObj.onLoad = function(success:Boolean) {
aaa.text = "loaded"
if (success) {
audioObj.start();
//nao carregou audio
} else {
aaa.text = "not loaded"
}
}
btstop.onRelease = function(){
_root.flag1=true
_global.soundPosition2 = Math.round(audioObj.position/1000);
audioObj.stop();
_root.aa.text = _global.soundPosition2
}
btplay.onRelease = function(){
if(_root.flag1){
audioObj.start(_global.soundPosition2);
_root.flag1=false;
_root.bb.text = Math.round(audioObj.position/1000);
}else{
audioObj.start();
}
}
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] audio pause/resume problem
http://www.stevensacks.net/2008/08/07/bug-with-sound-channel-position-and-mp3s-less-than-128kbps
On Sep 23, 2009, at 6:19 AM, Rodrigo Augusto Guerra wrote:
c'mom guys...no one knows? i'm in a dead end here
i can't guarantee that everybody will have FP 10 to avoid this
:)
- Original Message - From: "Rodrigo Augusto Guerra" >
To: "Flash Coders List"
Sent: Tuesday, September 22, 2009 6:56 PM
Subject: [Flashcoders] audio pause/resume problem
hi coders!
I have a system that it's a dialog between 2 people (one the
computer the other is the user) the computer start talking ( it's 1
mp3 file loaded with all the computer speech) when it's the user
turn I have an action to pause the mp3 (well it stores the current
audio position and stops the audio) and then when he finish
recording his speech it start playing from where it was. (passing
the audio position to the audio object)
The problem is that when it resumes the mp3, it doesn't start from
where it stopped, it goes forward. no logic at all
well it's working on FP version (WIN 10,0,2,54) but not in FP WIN
9.0.124.0.
I really would like some light on this as I don't know where to look
anymore and I don't want to believe that it's a FP9 problem.
I isolated and reproduced the error here:
(i putted the text so you can follow the jumps.)
http://www.alumni.org.br/tmp/rodrigo/som.html
any help will be appreciated.
thanks coders!
this is the code:
audioObj = new Sound();
audioObj.loadSound("http://www.alumni.org.br/elearning/cursos/LetsTravel/Audio/audio16.mp3
", false);
//qdo carregar audio comeca e atulzia o status
audioObj.onLoad = function(success:Boolean) {
aaa.text = "loaded"
if (success) {
audioObj.start();
//nao carregou audio
} else {
aaa.text = "not loaded"
}
}
btstop.onRelease = function(){
_root.flag1=true
_global.soundPosition2 = Math.round(audioObj.position/1000);
audioObj.stop();
_root.aa.text = _global.soundPosition2
}
btplay.onRelease = function(){
if(_root.flag1){
audioObj.start(_global.soundPosition2);
_root.flag1=false;
_root.bb.text = Math.round(audioObj.position/1000);
}else{
audioObj.start();
}
}
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] audio pause/resume problem
you´re correct, jason. I'll move on to AS3 as soon as I can and the new features it's really a catch to move too. thank you. - Original Message - From: "Merrill, Jason" To: "Rodrigo Augusto Guerra" ; "Flash Coders List" Sent: Wednesday, September 23, 2009 11:11 AM Subject: RE: [Flashcoders] audio pause/resume problem also if I do it in as3 and the user has FP9 I believe that the bug will persist. You're probably right, but it's getting increasingly difficult for those of us that have moved on to AS3 to speak the language of AS2 and help you troubleshoot. I also think AS3 as a lot of nice programming features that will help you troubleshoot as well. If you're deploying to FP9 or 10 anyway, I would recommend you take the plunge and learn AS3. Jason Merrill Bank of America Global Learning Learning & Performance Soluions Monthly meetings on making the most of the Adobe Flash Platform - presented by bank associates, Adobe engineers, and outside experts in the borader multimedia community - join the Bank of America Flash Platform Community (note: this is for Bank of America employees only) ___ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] audio pause/resume problem
hi jason
I'll search a little more, but know that FP 9 has some audio bugs makes me
feel better some way, also if I do it in as3 and the user has FP9 I believe
that the bug will persist.
thanks,
rodrigo.
- Original Message -
From: "Merrill, Jason"
To: "Rodrigo Augusto Guerra" ; "Flash Coders List"
Sent: Wednesday, September 23, 2009 10:26 AM
Subject: RE: [Flashcoders] audio pause/resume problem
There were some bad bugs with audio in FP9.x which were fixed in FP10.
I don't know if this was one of them, but one of the bugs was that audio
would keep playing in a loaded .swf and wouldn't unload even if the .swf
was unloaded. I don't know if this is related or not, but thought I
would throw it out there. The fact that it works fine for you in FP10
but not FP9 is suspicious.
// btstop.onRelease = function(){
And you're using AS2? Hmmm... I would at least consider doing this in
AS3 if possible.
Jason Merrill
Bank of America Global Learning
Learning & Performance Soluions
Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the borader multimedia community - join the Bank of America Flash
Platform Community (note: this is for Bank of America employees only)
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] audio pause/resume problem
>> also if I do it in as3 and the user has FP9 I believe that the bug will persist. You're probably right, but it's getting increasingly difficult for those of us that have moved on to AS3 to speak the language of AS2 and help you troubleshoot. I also think AS3 as a lot of nice programming features that will help you troubleshoot as well. If you're deploying to FP9 or 10 anyway, I would recommend you take the plunge and learn AS3. Jason Merrill Bank of America Global Learning Learning & Performance Soluions Monthly meetings on making the most of the Adobe Flash Platform - presented by bank associates, Adobe engineers, and outside experts in the borader multimedia community - join the Bank of America Flash Platform Community (note: this is for Bank of America employees only) ___ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] audio pause/resume problem
c'mom guys...no one knows? i'm in a dead end here
i can't guarantee that everybody will have FP 10 to avoid this
:)
- Original Message -
From: "Rodrigo Augusto Guerra"
To: "Flash Coders List"
Sent: Tuesday, September 22, 2009 6:56 PM
Subject: [Flashcoders] audio pause/resume problem
hi coders!
I have a system that it's a dialog between 2 people (one the computer the
other is the user) the computer start talking ( it's 1 mp3 file loaded with
all the computer speech) when it's the user turn I have an action to pause
the mp3 (well it stores the current audio position and stops the audio) and
then when he finish recording his speech it start playing from where it was.
(passing the audio position to the audio object)
The problem is that when it resumes the mp3, it doesn't start from where it
stopped, it goes forward. no logic at all
well it's working on FP version (WIN 10,0,2,54) but not in FP WIN 9.0.124.0.
I really would like some light on this as I don't know where to look anymore
and I don't want to believe that it's a FP9 problem.
I isolated and reproduced the error here:
(i putted the text so you can follow the jumps.)
http://www.alumni.org.br/tmp/rodrigo/som.html
any help will be appreciated.
thanks coders!
this is the code:
audioObj = new Sound();
audioObj.loadSound("http://www.alumni.org.br/elearning/cursos/LetsTravel/Audio/audio16.mp3";,
false);
//qdo carregar audio comeca e atulzia o status
audioObj.onLoad = function(success:Boolean) {
aaa.text = "loaded"
if (success) {
audioObj.start();
//nao carregou audio
} else {
aaa.text = "not loaded"
}
}
btstop.onRelease = function(){
_root.flag1=true
_global.soundPosition2 = Math.round(audioObj.position/1000);
audioObj.stop();
_root.aa.text = _global.soundPosition2
}
btplay.onRelease = function(){
if(_root.flag1){
audioObj.start(_global.soundPosition2);
_root.flag1=false;
_root.bb.text = Math.round(audioObj.position/1000);
}else{
audioObj.start();
}
}
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] audio pause/resume problem
There were some bad bugs with audio in FP9.x which were fixed in FP10.
I don't know if this was one of them, but one of the bugs was that audio
would keep playing in a loaded .swf and wouldn't unload even if the .swf
was unloaded. I don't know if this is related or not, but thought I
would throw it out there. The fact that it works fine for you in FP10
but not FP9 is suspicious.
// btstop.onRelease = function(){
And you're using AS2? Hmmm... I would at least consider doing this in
AS3 if possible.
Jason Merrill
Bank of America Global Learning
Learning & Performance Soluions
Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the borader multimedia community - join the Bank of America Flash
Platform Community (note: this is for Bank of America employees only)
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

