This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-02-07 17:30:07

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

squeak controlling the background windows player?

I'm unhappy with the sound quality in Panther/Scratch and I'm wondering if there's a way (preferably via a block) to play a sound file saved on your computer via the computer's own sound player (in the same way that windows media player and sound effects like click and error are played) as this would allow stereo sound from any compatiable sound file without the horrible characteristic jumping, stalling and low quality mono sound so common in the Scratch sound player. Any suggestions?

Thanks  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2 2011-02-07 20:17:49

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: squeak controlling the background windows player?

sparks wrote:

I'm unhappy with the sound quality in Panther/Scratch and I'm wondering if there's a way (preferably via a block) to play a sound file saved on your computer via the computer's own sound player (in the same way that windows media player and sound effects like click and error are played) as this would allow stereo sound from any compatiable sound file without the horrible characteristic jumping, stalling and low quality mono sound so common in the Scratch sound player. Any suggestions?

Thanks  smile

Hmm... I am not sure what you mean exactly. You mean that you wan't it to be able to play a sound with better quality? I am not sure. Or do you mean that you want it to be able to open windows media player and play a sound on it?


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#3 2011-02-08 09:52:50

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: squeak controlling the background windows player?

I mean I want squeak to be able to specify a sound file for windows to play. Exactly how it's done isn't too important it's just that the current method does not play sound with any kind of quality and I'm wondering if there's a better way of playing sounds and music. squeak controlling Windows Media Player would be a solution  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#4 2011-02-08 12:14:48

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: squeak controlling the background windows player?

sparks wrote:

I mean I want squeak to be able to specify a sound file for windows to play. Exactly how it's done isn't too important it's just that the current method does not play sound with any kind of quality and I'm wondering if there's a better way of playing sounds and music. squeak controlling Windows Media Player would be a solution  smile

What about using a DLL (since I know Scratch can manage DLLs) and code it in a language you know, such as VB or C++?

Offline

 

#5 2011-02-08 13:17:30

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: squeak controlling the background windows player?

tempting... I've only just started learning C++ though so I think coding a DLL would totally fail  tongue


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#6 2011-02-08 14:54:06

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: squeak controlling the background windows player?

sparks wrote:

tempting... I've only just started learning C++ though so I think coding a DLL would totally fail  tongue

I tried, and it's really not that hard! It's almost like coding yourself, but you make it nice and understandable.

Offline

 

#7 2011-02-08 18:58:42

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: squeak controlling the background windows player?

sparks wrote:

I mean I want squeak to be able to specify a sound file for windows to play. Exactly how it's done isn't too important it's just that the current method does not play sound with any kind of quality and I'm wondering if there's a better way of playing sounds and music. squeak controlling Windows Media Player would be a solution  smile

I thought about it all day and came to a conclusion. I think if you were to look at the code that allows you to import sounds you may be able to make it do that. I have too many things I am working on right now.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer