[
https://issues.apache.org/jira/browse/CB-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264545#comment-13264545
]
Dan Ardelean commented on CB-602:
---------------------------------
The proble is when you try to play 2 times (one after the other play stop play)
the same file from the resources because the player did not released the stream
you were reading for. Need to set the source of the player to null before
setting the player to null:
if (this.player != null)
{
this.stopPlaying();
this.player.Source = null;
this.player = null;
}
> Problem when disposing AudioPlayer object
> -----------------------------------------
>
> Key: CB-602
> URL: https://issues.apache.org/jira/browse/CB-602
> Project: Apache Callback
> Issue Type: Bug
> Components: WP7
> Reporter: Dan Ardelean
> Assignee: Jesse MacFadyen
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The problem is inside AudioPlayer.cs method:
> public void Dispose()
> this.FinalizeXnaGameLoop();
> should be inside
> if (this.recorder != null)
> {
> this.stopRecording();
> this.recorder = null;
> }
> othewise on Audio play it will crash
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira