# Windows sound

**URL:** <https://rubytalk.org/t/windows-sound/19988>\
**Category:** ruby-talk\
**Created:** [6 August 2005 19:11 UTC](https://rubytalk.org/t/windows-sound/19988 "2005-08-06T19:11:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ernest\_Ellingson2](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@Ernest\_Ellingson2](https://rubytalk.org/u/Ernest_Ellingson2)\
**Post date:** [6 August 2005 19:11 UTC](https://rubytalk.org/t/windows-sound/19988/1 "2005-08-06T19:11:07Z")

</div>

I'm stuggling a little bit with playing a large .wav file. It's a message from my VOIP provider. I received it through an email. It plays fine with Windows Media Player, but will not play with win32-sound. I've also tried using dl and both sndPlaySound and PlaySound in the winmm.dll. They don't play it either. All of the calls to win32-sound,sndPlaySound and PlaySound play simple wav files like tada.wav.

&nbsp;&nbsp;Do you know of an interface to the Media Player? Or how Sound can be coerced to play a large file?

Thanks in Advance

Ernie

---

<div class="post-metadata">

**Author:** ![Chris\_Pine](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@Chris\_Pine](https://rubytalk.org/u/Chris_Pine)\
**Post date:** [8 August 2005 12:45 UTC](https://rubytalk.org/t/windows-sound/19988/2 "2005-08-08T12:45:30Z")

</div>

> &nbsp;&nbsp;Do you know of an interface to the Media Player? Or how Sound can be  
> coerced to play a large file?

I'm not sure what you're ultimately trying to do, but when I want to  
control media playback from Ruby on windows, I usually use mplayer.  
It's easy, and mplayer has a ton of commandline options.

But, like I said, I'm not really sure what you're trying to do...
