Weird Audio Issues with iOS

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
robl
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 62
Joined: Wed Dec 22, 2010 9:50 pm

Weird Audio Issues with iOS

Post by robl » Sun May 31, 2015 2:37 pm

I have a simple iOS application that I am working on, which is basically a customized podcast player.

The app fetches the podcast rss/xml feed from a website, and populates a datagrid. Once an "episode" is selected in the datagrid, the app downloads an mp3 into a temporary folder and then attempts to play the file.

The issue I am having is that if I play the mp3 with "mobilePlaySoundOnChannel", the audio sounds very choppy and distorted. It sounds very "robotic". At first I thought the issue was the file itself, but if I import the file into iTunes and sync it to iPhone and play it with the built-in apple music app, it's crystal clear.

As another experiment, I tried to create a video player with mobileControlCreate in my app and pass the mp3 file as the "video", but it has the same audio distortion.

I then tried to embed a "browser" mobile control into the app and the mp3 plays correctly, but it has the downside of unwanted UI experiencing.

Has anyone seen this? Is there a trick to working mp3 files? Any suggestions on working around the issue?

jofferystark89
Posts: 1
Joined: Mon Jun 01, 2015 12:35 pm
Contact:

Re: Weird Audio Issues with iOS

Post by jofferystark89 » Mon Jun 01, 2015 12:44 pm

I solved this on my ipad mini retina by setting the 'rotation lock' slider to 'sound off':

- Go to Setting->General

- Change from rotation lock to sound off.

- Wiggle the slider: sound will return

- Now you can set the slider back to rotation lock again

robl
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 62
Joined: Wed Dec 22, 2010 9:50 pm

Re: Weird Audio Issues with iOS

Post by robl » Mon Jun 01, 2015 5:43 pm

Thanks for the suggestion, Joffery. I've seen the audio problems that were corrected with the volume / rotation lock trick (i.e. after upgrading to iOS 8), but that's not the problem here. In my circumstance, the issue is bad quality audio playback and it's on multiple iOS devices.

Post Reply