asAudio question - Forum

Forum Navigation
You need to log in to create posts and topics.

asAudio question

I'm having a problem that seems to be with small mp3 files when I try to convert them to wav files (I haven't tested other formats yet). It seems the variable I set for the progress [progress] never reaches 100 with small files (less than 20 seconds or around 200 kb in size).

What happens is, I successfully convert a "small" file (file A). And the next time I try to convert a different file (file B) I get a selection error. File Not Found. If I restart the app it converts the file (file B) I just had a problem with successfully

Has anyone else run into this problem?

I have a Combo Box with the variable [newfiletype] (This variable is set at startup to "wav")

I have a button to open a file with this code

FileOpenBox "" "MP3 File|*.mp3" "[MyDocuments]" "[xfile]" ""
ExtractFileExt "[xfile]" "[xtype]"
ExtractFileName "[xfile]" "[xname]"
ExtractFilePath "[xfile]" "[xpath]"
StrReplace "[xname]" "[xtype]" "" "[xname]" ""
StrReplace "[xtype]" "." "" "[xtype]" ""

I have a "Convert" button with this code

asAudioMP3toWAV "[xfile]" "[xpath]\[xname]" "XFileComplete" "[progress]"

At Runtime my variables are as follows (After choosing a file with the Button)

newfiletype=wav
xfile=D:\Documents\SoundTube Downloads\Loop\Eee Uhh.mp3
xtype=mp3
xname=Eee Uhh
xpath=D:\Documents\SoundTube Downloads\Loop\

After I click the Convert Button The variables are:

newfiletype=wav
xfile=D:\Documents\SoundTube Downloads\Loop\Eee Uhh.mp3
xtype=mp3
xname=Eee Uhh
xpath=D:\Documents\SoundTube Downloads\Loop\
progress=96

Not really sure whats going on here. When I check the file was converted ok. But if I try to convert another small file at this point I get an error.

 

Provide .pub sources
I will check your code.

Regards

Andrei(as3856)

P.S.    It would be nice if you provided some sound files....

Thanks Andei, here is the pub file I am currently working on and I will include a few mp3's (my own sounds so no copyright problems here) These are the exact mp3's I am working with so you now have what I have.

Uploaded files:
  • You need to login to have access to uploads.

Here are the sound files.

Uploaded files:
  • You need to login to have access to uploads.

Hello mazzu001.
I looked at your code - in my opinion a little wrong., But also I found an uncritical error in the plugin - wait a bit - the plugin will be fixed to the next version, and a little later I will show how to work with it.

regards

Andrei(as3856)

agilos has reacted to this post.
agilos

Thanks Andrei, your the best!!

Hey Matt, I am so sorry to read about your accident. Can you send me an email? patrickjpashal@gmail.com I'd like to see how things have progressed with your coding. I am a full stack developer.

 

Quote from patrickjpaschal on February 1, 2020, 9:55 pm

Hey Matt, I am so sorry to read about your accident. Can you send me an email? patrickjpashal@gmail.com I'd like to see how things have progressed with your coding. I am a full stack developer.

 

Hi Patrick,

I have tried sending you an email a few times now and I get this back every time.

mx.google.com rejected your message to the following email addresses:

patrickjpashal@gmail.com (patrickjpashal@gmail.com)
The address you sent your message to wasn't found at the destination domain. It might be misspelled or it might not exist. Try to fix the problem by doing one or more of the following:

Maybe you could send me an email I could reply to? Would love to dialog with you.

mazzu001@hotmail.com

#mazzu001

After viewing the plugin code for the change, I came to the conclusion that the plugin needs to be rewritten again. Sorry Matt - have to wait a bit. I also hope to add new commands for recording from the microphone.

The plugin is not suitable for batch file processing. There are also some non-critical errors.

Andrei (as3856)

Vadim and mazzu001 have reacted to this post.
Vadimmazzu001

 

@as3856 I also hope to add new commands for recording from the microphone.

That would be great :)

Pudieras considerar esto "this would be killer"

mazzu001 has reacted to this post.
mazzu001
Quote from as3856 on February 2, 2020, 9:58 pm

#mazzu001

After viewing the plugin code for the change, I came to the conclusion that the plugin needs to be rewritten again. Sorry Matt - have to wait a bit. I also hope to add new commands for recording from the microphone.

The plugin is not suitable for batch file processing. There are also some non-critical errors.

Andrei (as3856)

Hi Andrei, That sounds awesome. That will make it an even better plugin. Will the new plugin be suitable for batch file processing? That was going to be a big deal in my app. Is there a way to work around that possibly?? Either way, thank you so much for your work on these plugins Andrei. I still wish you would at least have a way we could donate to your efforts.

@mazzu001

Hi, Matt! :)

Newer versions of plugins now have a link for this.

Uploaded files:
  • You need to login to have access to uploads.
Quote from Vadim on February 3, 2020, 8:19 pm

@mazzu001

Hi, Matt! :)

Newer versions of plugins now have a link for this.

Perfect thanks Vadim, I will be using that!!

Vadim and josevdr95 have reacted to this post.
Vadimjosevdr95

Any word on new asAudio rebuild? kind of excited to check out the rebuild :)

I am working on updating a plugin.

Andrei (as3856)

 

 

Uploaded files:
  • You need to login to have access to uploads.
Vadim, josevdr95 and iretz have reacted to this post.
Vadimjosevdr95iretz
Quote from as3856 on February 29, 2020, 8:02 am

I am working on updating a plugin.

Andrei (as3856)

 

 

@as3856 WOW... this is already looking AMAZING!!! very excited to check this out