Commit Graph
7 Commits
Author SHA1 Message Date
Gert Driesen 5033e8f789 * SoundPlayer.cs: Addded support for playing WAV files on Windows.
Fixed ctor (Stream) to allow null argument. In LoadFromUri, first
reset mstream to support resetting Stream to null. Support playing
default sound. Allow Stream to be set to null. Reset AudioData and
WaveData when new stream is loaded.
* Win32SoundPlayer.cs: Wrapper for PlaySound Win32 API.
* System.dll.sources: Added Win32SoundPlayer.cs.
* SoundPlayerTest.cs: Added trivial ctor tests. Added test for
Stream property.

svn path=/trunk/mcs/; revision=89112
2007-11-07 15:56:33 +00:00
Sebastien Pouliot 2bd20642d9 2007-11-06 Sebastien Pouliot <[email protected]>
* AudioData.cs: Reset stream to position 0 before playing (required
	when playing the audio in a loop). Part of the fix for bug #338991.
	* SoundPlayer.cs: Only create the AudioData once (and reuse it).
	Part of the fix for bug #338991.


svn path=/trunk/mcs/; revision=89027
2007-11-06 20:35:57 +00:00
Alan McGovern a51a113ea9 Patch for bug 81867
svn path=/trunk/mcs/; revision=81519
2007-07-06 21:11:28 +00:00
Miguel de Icaza 4a5ddc5967 2007-01-22 Miguel de Icaza <[email protected]>
* SoundPlayer.cs: Remove unused variables 

svn path=/trunk/mcs/; revision=71482
2007-01-22 22:20:21 +00:00
Sebastien Pouliot f16767f9d7 2006-12-22 Sebastien Pouliot <[email protected]>
* SoundPlayer.cs: Hide default public ctor (to please corcompare)
	* SystemSounds.cs: Add missing attribute and downgrade PlayLoop 
	visibility (to please corcompare)


svn path=/trunk/mcs/; revision=69943
2006-12-22 15:55:35 +00:00
Paolo Molaro 3916bd640e Wed Dec 20 18:26:36 CET 2006 Paolo Molaro <[email protected]>
* AudioData.cs, AudioDevice.cs: small (alsa) audio device and
	Wav file parsing implementation.
	* SoundPlayer.cs, SystemSound.cs: implemented most of the methods.


svn path=/trunk/mcs/; revision=69824
2006-12-20 17:29:06 +00:00
Paolo Molaro dcaf118bdd Tue Dec 19 19:17:06 CET 2006 Paolo Molaro <[email protected]>
* SoundPlayer.cs, SystemSound.cs, SystemSounds.cs: first stubs
	and partial implementation.


svn path=/trunk/mcs/; revision=69767
2006-12-19 18:32:50 +00:00