Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes state doesn't set to AS_PLAYING #68

Open
igrampe opened this issue Jun 29, 2013 · 5 comments
Open

Sometimes state doesn't set to AS_PLAYING #68

igrampe opened this issue Jun 29, 2013 · 5 comments

Comments

@igrampe
Copy link

igrampe commented Jun 29, 2013

Sometimes state doesn't set to AS_PLAYING.
log of states:
AS_STARTING_FILE_THREAD
AS_WAITING_FOR_DATA
AS_WAITING_FOR_QUEUE_TO_START

but there is a sound
it happens occasionally

@muthuka
Copy link

muthuka commented Jul 23, 2013

Happens on some of the audio sources I used consistently. So, I can't rely on AS_PLAYING to be the point to enable some of the buttons on my screen.

@sbradburn
Copy link

I ran into this problem, and think I fixed it by changing the call:

[self performSelector: onThread: withObject: waitUntilDone: modes:]

at the start of the function (handlePropertyChangeForQueue:propertyID:) to:

[self performSelector: onThread: withObject: waitUntilDone:]

It seems like there is a mode mismatch which causes the call to be dropped in the first version.

@vieriwml
Copy link

vieriwml commented Sep 4, 2013

@sbradburn is right ,I found that ,but the fix can't solve the problem , it is still the same

@whsecurity
Copy link

Same problem here. I have tried a little debugging but with no avail. I have tried to fix it by replacing performSelector with NSTimer (!!!) but after a call or two it outputs an error to inID. When audio streamer brakes the inID returned the current date (ex 2013-12-16 11:14...)

Any ideas?

@NemoAir
Copy link

NemoAir commented Sep 18, 2015

I encounter this problem too, #74 is the same issue, @mike-ferenduros say

"Looks 'enqueueBuffer' is blocking the internal thread, preventing
'- (void)handleInterruptionChangeToState:(NSNotification *)notification'
from happening. I did the same as atomic and commented out lines 1877-1886 as a quick fix but yeah, it's not the right solution."

I think it may be the reason,but also i can not fix it ,just comment the

if (![[NSThread currentThread] isEqual:internalThread]) { ... }

It may cause other issue...
By the way, @mattgallagher ,did you had give up maintain this project? I see the last commit is two years ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants