AudioStreamer icon indicating copy to clipboard operation
AudioStreamer copied to clipboard

Sometimes state doesn't set to AS_PLAYING

Open igrampe opened this issue 11 years ago • 5 comments

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

igrampe avatar Jun 29 '13 16:06 igrampe

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.

muthuka avatar Jul 23 '13 16:07 muthuka

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.

sbradburn avatar Jul 24 '13 21:07 sbradburn

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

vieriwml avatar Sep 04 '13 06:09 vieriwml

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?

whsecurity avatar Dec 16 '13 11:12 whsecurity

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.

NemoAir avatar Sep 18 '15 02:09 NemoAir