Audio problem

Hi

I have a problem with audio and I can’t determine why this happens.

Suddenly, all sounds stop on my app and my terminal shows this message :

17dTesting Error with clearing buffer from source:

Invalid OperationWarning: audio error: Failed to clear buffer from source: Invalid Operation

Warning: audio error: Could not bind data to source: Invalid Operation

Few seconds later, sounds go back…

Any help would be very appreciate

Thanks

Olivier

Bump  :rolleyes:

Which terminal are you talking about? Does this happen on device and are you using the xCode console or is this Corona simulator output? :slight_smile:

Max / CineTek

Hi :slight_smile:
Thank you for your mail Max.
I have the problem with the corona simulator, the iPhone 4S and the iPad 2. I didn’t test with others devices. And it seems to be a “random” bug.

Hm… so there is no event that triggers this error? It just happens totally random?

In my app some sounds are playing when my hero is moving above some objects in the background.

The bug happens if I move my hero quickly, but even sometimes when I move my hero normaly.

Thanks for your help

O.

@oromanetti:

This sounds like a similar bug. Please post some code snippets with the functions that are called when the hero “collides” with the background.

I guess you have to add something similar :slight_smile:

Max

Hi Max

Sorry for the delay.

I will post some code as soon as I got a little time in this crazy life :slight_smile:

See u

Olivier

Bump  :rolleyes:

Which terminal are you talking about? Does this happen on device and are you using the xCode console or is this Corona simulator output? :slight_smile:

Max / CineTek

Hi :slight_smile:
Thank you for your mail Max.
I have the problem with the corona simulator, the iPhone 4S and the iPad 2. I didn’t test with others devices. And it seems to be a “random” bug.

Hm… so there is no event that triggers this error? It just happens totally random?

In my app some sounds are playing when my hero is moving above some objects in the background.

The bug happens if I move my hero quickly, but even sometimes when I move my hero normaly.

Thanks for your help

O.

@oromanetti:

This sounds like a similar bug. Please post some code snippets with the functions that are called when the hero “collides” with the background.

I guess you have to add something similar :slight_smile:

Max

Hi Max

Sorry for the delay.

I will post some code as soon as I got a little time in this crazy life :slight_smile:

See u

Olivier