[Mono-bugs] [Bug 338991] New: System.Media.SoundPlayer.PlayLooping() plays sound just once

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Nov 4 11:07:29 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=338991

           Summary: System.Media.SoundPlayer.PlayLooping() plays sound just
                    once
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: novell at thafridge.com
         QAContact: mono-bugs at ximian.com
          Found By: Development


Description of Problem:
System.Media.SoundPlayer.PlayLooping() plays sound just once on Ubuntu Linux.
Does not occur while executing the application on Windows without Mono.

Test Code:

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace LoopTest
{
        class Program
        {
                static void Main(string[] args)
                {
                        string sound = AppDomain.CurrentDomain.BaseDirectory +
string.Format("{0}test.wav", System.IO.Path.DirectorySeparatorChar);
                        System.Media.SoundPlayer loopsound = new
System.Media.SoundPlayer(new FileStream(sound, FileMode.Open, FileAccess.Read,
FileShare.Read));
                        loopsound.PlayLooping();
                        Console.ReadLine();
                }
        }
}


Steps to reproduce the problem:
1. Execute code with a test.wav in the application's execution directory


Actual Results:
Sound is just played once.


Expected Results:
Sound should keep looping until program ends (Return key is pressed).


How often does this happen? 
Every time.


Additional Information:


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list