Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / We can not SAVE SOUND after MAKE SOUND FROM MEMBLOCK. Why?

Author
Message
Leonid
User Banned
Posted: 23rd Sep 2012 22:06
We can not SAVE SOUND after MAKE SOUND FROM MEMBLOCK. Why?
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 1st Oct 2012 13:29 Edited at: 1st Oct 2012 13:29
I asked the same question a long time ago. DBPro doesn't support that feature yet. This is what the Help file says:

Quote: "SAVE SOUND
This command will save a sound to a file previously captured using the RECORD SOUND command.

(etc)

You cannot save a sound file that originated from any other source.
"


I still don't know why that restriction exists.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 2nd Oct 2012 03:30
Quote: "I still don't know why that restriction exists."


i vaguely remember a desire by tgc to maintain distance from any form of music piracy participation. ie, napster, mp3s, ripping, etc, were worthy of avoidance, at the time, to maintain a company's reputation and/or to simply not condone it by offering any sort of method to procure music illegally.

but, now that it's "all" been parlayed into millions of millions of dollars, not so much, so... ?

i know this doesn't explain why the restriction still exists, but does provide some insight on why it was ever locked down.

if anyone "official" cares to confirm the above, it would be appreciated. if you'd care to unlock said door, even moreso

Virtual Nomad @ California, USA . DBPro V7.7
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Oct 2012 13:46
There's very likely a plugin that will just work around this restriction...

TheComet

"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown
WLGfx
16
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 2nd Oct 2012 15:11
That's a weird one... Not even to save out as a .wav file?

I can understand there being licensing restrictions on various formats like mp3's but a wave file is open isn't it? Ouch, the workaround is having to save a memblock...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
Grasmann
15
Years of Service
User Offline
Joined: 1st Sep 2008
Location:
Posted: 9th Dec 2012 20:37 Edited at: 10th Dec 2012 00:46
I just came across this restriction as well XD.
I already thought there was an error in my code, until I read the help carefully ... lol.

Really stupid.

However, does anybody know of a plugin for this?

I'm currently building an archive system within Dark Basic, and of course it should support sound files.
But I think it's a bit odd to extract them as a memblock, since you most likely can't play them back in any program XD.

If the reason for this is really the avoidance of music piracy, may I laugh?
What it really is? May I laugh even louder?

In the time of free internet radio ...
You can download whole music albums in like 10 minutes if you know the correct websites ( no I'm not providing a link XD ) ...
And TGC is concerned that somebody could write a program to steal and save music as .wav!?

Are you serious? XD

I mean ... I don't even XD.

EDIT:

I created this function really quick:
For a slightly updated version click here.



The function is working for me.
I would appreciate it if somebody could test this and confirm it's working .

I don't really know much about different .wav formats, but since I'm reading all the important information from the dark basic
memblock I guess it should work just fine with all .wav files that can be loaded by dark basic.

Feel free to use and/or change it.

If there are any problems with this I'm afraid you have to look into it yourself.
However, if you enhance it, it would be nice of you to post the changed version here.

Login to post a reply

Server time is: 2024-04-18 11:09:53
Your offset time is: 2024-04-18 11:09:53