Play .mp3 from SD card on Android

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
premek
Prole
Posts: 21
Joined: Mon Dec 28, 2015 12:44 am
Contact:

Play .mp3 from SD card on Android

Post by premek »

Is it possible to make something like a music player? You would copy your .mp3's from your computer to some place in your phone and then load and play them from Love Android app via `love.audio.newSource`.

My problem is that the only directory accessible with newSource on Android (/data/data/my.package/files/save) is not visible in my PC when I connect the phone.
On the other hand I'm able to access the SD card with io.popen but not with newSource.

Thanks!
premek
Prole
Posts: 21
Joined: Mon Dec 28, 2015 12:44 am
Contact:

Re: Play .mp3 from SD card on Android

Post by premek »

ok after setting this in conf.lua
t.externalstorage = true

the love.filesystem is now on the phone storage that is mounted to PC. But I had to reboot the pohone to see my app's folder in my pc :(
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests