[NTLK] How to make custom sounds for NewtonOS

NewtonTalk newtontalk at pda-soft.de
Tue Apr 11 19:01:22 EDT 2017


> I saw on UNNA, that is possible to create custom sounds for NewtonOS. But
I can?t find info about how to do this. Any help?

Assuming that you intend to use NewtonScript and that you want to introduce
the wav file "dah.wav" to your Newton, you could try something like this:

dahSound := GetWAVSound("yourPath/dah.wav");

if dahSound.samplingRate <> kFloat22kRate then

	dahSound.samplingRate := kFloat22kRate;

DefineGlobalConstant('kDahSound, dahSound);

That's how the cuckoo sound found its way into NewtTest...

Frank

-- Newton software and hardware at http://www.pda-soft.de





More information about the NewtonTalk mailing list