# Processing sound library not working after exporting APDE(processing android)

**URL:** <https://discourse.processing.org/t/processing-sound-library-not-working-after-exporting-apde-processing-android/22277>\
**Category:** Processing for Android\
**Created:** [June 30, 2020, 8:06am UTC](https://discourse.processing.org/t/processing-sound-library-not-working-after-exporting-apde-processing-android/22277 "2020-06-30T08:06:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Why\_I\_Use\_Processing](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/why_i_use_processing/32/9558_2.png) [@Why\_I\_Use\_Processing](https://discourse.processing.org/u/Why_I_Use_Processing)\
**Post date:** [June 30, 2020, 8:06am UTC](https://discourse.processing.org/t/processing-sound-library-not-working-after-exporting-apde-processing-android/22277/1 "2020-06-30T08:06:14Z")

</div>

I made a sketch using processing sound library and it worked fine until I used the sketch previewer that comes with APDE but after exporting it, It didn’t worked.  
Thanks in advance!!

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [June 30, 2020, 8:21am UTC](https://discourse.processing.org/t/processing-sound-library-not-working-after-exporting-apde-processing-android/22277/2 "2020-06-30T08:21:51Z")

</div>

There have been many issues (from reading forum posts) with the default processing library, might wanna try an alternative like minim. I know it might not be the solution you are asking for, but truth is changes in the library are slow to implement.

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [June 30, 2020, 8:45am UTC](https://discourse.processing.org/t/processing-sound-library-not-working-after-exporting-apde-processing-android/22277/3 "2020-06-30T08:45:42Z")

</div>

@paulgoux === minim does not work with android  
@Why_I_Use_Processing === can you explain better what you have done? What does mean “after exporting”? I know nothing about APDE but with android P5 mode exporting isused for importing the code into AS where assets and rsrces have to be added.

---

<div class="post-metadata">

**Author:** ![Why\_I\_Use\_Processing](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/why_i_use_processing/32/9558_2.png) [@Why\_I\_Use\_Processing](https://discourse.processing.org/u/Why_I_Use_Processing)\
**Post date:** [June 30, 2020, 9:30am UTC](https://discourse.processing.org/t/processing-sound-library-not-working-after-exporting-apde-processing-android/22277/4 "2020-06-30T09:30:03Z")

</div>

I actually worked in my previous sketch, even after exporting.  
But not in this one…  
It’s kind wierd finding my sketch work fine with the sketch previewer but not after exporting it.  
All the sound effects that I added just disappeared after export…

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [June 30, 2020, 10:00am UTC](https://discourse.processing.org/t/processing-sound-library-not-working-after-exporting-apde-processing-android/22277/5 "2020-06-30T10:00:56Z")

</div>

Aah, I’m out then, I have yet to apply my coding to android yet, and as it something I actually want to do this is slightly concerning. I initially thought the benefit to processing was its java backbone, and therefore its cross nature platform and was hoping the program I’m currently writing would easily port over

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [June 30, 2020, 1:02pm UTC](https://discourse.processing.org/t/processing-sound-library-not-working-after-exporting-apde-processing-android/22277/6 "2020-06-30T13:02:14Z")

</div>

@Why_I_Use_Processing ===  
Sorry i continue to not understand why you mean by “exporting”; i t s probably something specific to APDE; as for android p5 mode you can install (debug or release and signed) and you can export the compiled code for using it with AS.

---

<div class="post-metadata">

**Author:** ![Why\_I\_Use\_Processing](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/why_i_use_processing/32/9558_2.png) [@Why\_I\_Use\_Processing](https://discourse.processing.org/u/Why_I_Use_Processing)\
**Post date:** [July 1, 2020, 1:25am UTC](https://discourse.processing.org/t/processing-sound-library-not-working-after-exporting-apde-processing-android/22277/7 "2020-07-01T01:25:19Z")

</div>

Hey!!, I found the solution to this extremely weird problem.  
It must be some problem with processing sound library.  
I just moved the loading of sound files to the draw…  
I worked like this:-  
if (soundFile == null){  
SoundFile soundFile = new SoundFile(this,“abcd.aiff”);  
}

Thanks for your response!!
