1. A few questions

1.How would I add music to a euphoria program. Is there an include to do this?

2.How can I save information without using files but still being portable and standalone meaning the end-user does not have to install anything but my program? I want to do this because files can easily be modified. So they aren't secure.

3.If i can't use music what can I do to use and manipulate "beep" frequencies?

new topic     » topic index » view message » categorize

2. Re: A few questions

Fendaril said...

1.How would I add music to a euphoria program. Is there an include to do this?

2.How can I save information without using files but still being portable and standalone meaning the end-user does not have to install anything but my program? I want to do this because files can easily be modified. So they aren't secure.

3.If i can't use music what can I do to use and manipulate "beep" frequencies?

You need to use a library to add music to a euphoria program. BASS is good. I don't know question #2.

new topic     » goto parent     » topic index » view message » categorize

3. Re: A few questions

Fendaril said...

1.How would I add music to a euphoria program. Is there an include to do this?

Windows or Linux or Both?

Windows has the MCI (Media Control Interface) API that provides routines for this, including MIDI file playing.

Fendaril said...

2.How can I save information without using files but still being portable and standalone meaning the end-user does not have to install anything but my program?

You can't. Information must be saved to files. But what sort of information are you talking about?

Fendaril said...

3.If i can't use music what can I do to use and manipulate "beep" frequencies?

Windows or Linux or both?

Windows has the Beep(freq, durn) routine, but I've never been able to get it to work for me.

new topic     » goto parent     » topic index » view message » categorize

4. Re: A few questions

Fendaril said...

2.How can I save information without using files but still being portable and standalone meaning the end-user does not have to install anything but my program? I want to do this because files can easily be modified. So they aren't secure.

If security is the issue, then you can encrypt or otherwise protect the data in them. This is not hard to do and is fairly standard practice.

Are you worried about the file data being seen or just about them being modified?

new topic     » goto parent     » topic index » view message » categorize

5. Re: A few questions

well i am working on a text based game and I really dont want my files to just be modified that easily. How can i encrypt them.

new topic     » goto parent     » topic index » view message » categorize

6. Re: A few questions

Fendaril said...

well i am working on a text based game and I really dont want my files to just be modified that easily. How can i encrypt them.

My suggestion would be to develop the game and leave such things to the later part of the development stages. All the nitty gritty stuff can really drag things down to the point of never getting the project done.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

7. Re: A few questions

If you only plan on developing for Windows, then I suggest using the BASS Audio Library for sound/music and saving user-specific data in the registry.

-Greg

new topic     » goto parent     » topic index » view message » categorize

8. Re: A few questions

jeremy said...
Fendaril said...

well i am working on a text based game and I really dont want my files to just be modified that easily. How can i encrypt them.

My suggestion would be to develop the game and leave such things to the later part of the development stages. All the nitty gritty stuff can really drag things down to the point of never getting the project done.

Jeremy

I agree with Jeremy on that. The protection of the data files can wait until you have the game working. For the moment, just assume it can be done and without a lot of bother on your part.

As it gets closer to the time, you can share with us the research you have done on protecting such files and we should be able to help out then.

new topic     » goto parent     » topic index » view message » categorize

9. Re: A few questions

ghaberek said...

I suggest ... saving user-specific data in the registry.

Just on a personal note, I believe that the Registry concept for non-Microsoft applications is evil and no one in their right mind would ever consider using it.

new topic     » goto parent     » topic index » view message » categorize

10. Re: A few questions

DerekParnell said...

I agree with Jeremy on that. The protection of the data files can wait until you have the game working. For the moment, just assume it can be done and without a lot of bother on your part.

As it gets closer to the time, you can share with us the research you have done on protecting such files and we should be able to help out then.

Using a Euphoria database is also a pretty good way of locking people out of your data. blink

-Greg

new topic     » goto parent     » topic index » view message » categorize

11. Re: A few questions

DerekParnell said...
jeremy said...
Fendaril said...

well i am working on a text based game and I really dont want my files to just be modified that easily. How can i encrypt them.

My suggestion would be to develop the game and leave such things to the later part of the development stages. All the nitty gritty stuff can really drag things down to the point of never getting the project done.

Jeremy

I agree with Jeremy on that. The protection of the data files can wait until you have the game working. For the moment, just assume it can be done and without a lot of bother on your part.

As it gets closer to the time, you can share with us the research you have done on protecting such files and we should be able to help out then.

id have to agree with both of you. I will revive this topic when the time comes.

new topic     » goto parent     » topic index » view message » categorize

12. Re: A few questions

good timing

this weekend, i've just finished wrapping

libsndfile (audio file generation/read/write)

http://www.mega-nerd.com/libsndfile/

for use with euphoria (v4) working for both Linux and Win32

halfway through wrapping pulseaudio
(audio file playback), should hopefully
have basic playback done over next few days.

any good for you?

if so, i'll post them up to the archives
at www.rapideuphoria.com

new topic     » goto parent     » topic index » view message » categorize

13. Re: A few questions

Yes. What types does it support?

new topic     » goto parent     » topic index » view message » categorize

14. Re: A few questions

pulseaudio is basically a sound server daemon that
bundles with audio file players (pacat-simple, paplay)
that use libsndfile for playing back data streams, so
it should support everything that libsndfile provides

http://www.mega-nerd.com/libsndfile/api.html

sndfile.h (partial dump)

/* Major formats. */ SF_FORMAT_WAV = 0x010000, /* Microsoft WAV format (little endian default). */
SF_FORMAT_AIFF = 0x020000, /* Apple/SGI AIFF format (big endian). */
SF_FORMAT_AU = 0x030000, /* Sun/NeXT AU format (big endian). */
SF_FORMAT_RAW = 0x040000, /* RAW PCM data. */
SF_FORMAT_PAF = 0x050000, /* Ensoniq PARIS file format. */
SF_FORMAT_SVX = 0x060000, /* Amiga IFF / SVX8 / SV16 format. */
SF_FORMAT_NIST = 0x070000, /* Sphere NIST format. */
SF_FORMAT_VOC = 0x080000, /* VOC files. */
SF_FORMAT_IRCAM = 0x0A0000, /* Berkeley/IRCAM/CARL */
SF_FORMAT_W64 = 0x0B0000, /* Sonic Foundry's 64 bit RIFF/WAV */
SF_FORMAT_MAT4 = 0x0C0000, /* Matlab (tm) V4.2 / GNU Octave 2.0 */
SF_FORMAT_MAT5 = 0x0D0000, /* Matlab (tm) V5.0 / GNU Octave 2.1 */
SF_FORMAT_PVF = 0x0E0000, /* Portable Voice Format */
SF_FORMAT_XI = 0x0F0000, /* Fasttracker 2 Extended Instrument */
SF_FORMAT_HTK = 0x100000, /* HMM Tool Kit format */
SF_FORMAT_SDS = 0x110000, /* Midi Sample Dump Standard */
SF_FORMAT_AVR = 0x120000, /* Audio Visual Research */
SF_FORMAT_WAVEX = 0x130000, /* MS WAVE with WAVEFORMATEX */
SF_FORMAT_SD2 = 0x160000, /* Sound Designer 2 */
SF_FORMAT_FLAC = 0x170000, /* FLAC lossless file format */
SF_FORMAT_CAF = 0x180000, /* Core Audio File format */
SF_FORMAT_WVE = 0x190000, /* Psion WVE format */
SF_FORMAT_OGG = 0x200000, /* Xiph OGG container */
SF_FORMAT_MPC2K = 0x210000, /* Akai MPC 2000 sampler */
SF_FORMAT_RF64 = 0x220000, /* RF64 WAV file */

new topic     » goto parent     » topic index » view message » categorize

15. Re: A few questions

Fendaril said...

1.How would I add music to a euphoria program. Is there an include to do this?

On very useful cross-platform music and sound effects library is the free SDL library. For an explanation of its use and examples see my games tutorials on www.rapideuphoria.com. They can be downloaded at:

http://www.rapideuphoria.com/tutorials.zip or found in the Rapid Euphoria Archive under the 'Games' section.

Tutorial 4 onwards shows the use of both sound effects and music playing. I find the SDL library a lot easier to use than other methods, for reasons that I explain in the tutorials.

Ray Osmond

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu