Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC25CC827 for ; Sun, 29 Apr 2012 14:00:11 +0000 (UTC) Received: (qmail 88316 invoked by uid 500); 29 Apr 2012 14:00:11 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 88280 invoked by uid 500); 29 Apr 2012 14:00:11 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 88270 invoked by uid 99); 29 Apr 2012 14:00:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Apr 2012 14:00:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Apr 2012 14:00:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 944A1426DCC for ; Sun, 29 Apr 2012 13:59:50 +0000 (UTC) Date: Sun, 29 Apr 2012 13:59:50 +0000 (UTC) From: "Dan Ardelean (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1764010869.7596.1335707990608.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1481002911.7539.1335706547650.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-602) Problem when disposing AudioPlayer object MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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