Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endianess #9

Open
wants to merge 62 commits into
base: master
Choose a base branch
from
Open

Endianess #9

wants to merge 62 commits into from

Conversation

githubaf
Copy link

Please receive my Amiga-Version of your great program. The code still compiles and works on Linux.
I switched back to old table-mult-Version because it is faster on an unexpanded 7MHz/68000 Amiga.

Two things might be interesting for you:
main.c
void WriteWav() did only work on Little-Endian machines. The Amiga is Big-Endian so this became obvious.
It works on big and little endian now.

sam.c
void Init()
buffer = malloc(2205010);
memset(buffer,128,22050
10); //AF: avoid "hiss" at the end of sound playback
I had often a "hit-noise" at the end of the spoken text. The memset fixed that. The man page for malloc states that "The memory is not initialized"

main.c
main()
I commented the two lines
// freopen("CON", "w", stdout);
// freopen("CON", "w", stderr);
When sam is started without parameters, the help is printed but only, when the two lines are commented. With these two lines active nothing is printed...

githubaf and others added 30 commits November 20, 2018 17:37
…200 kBytes smaller and supports AHI.device and plain audio.device
…es now, so nicely fits into our default 4096 Bytes Stack
…s for sam -wav hello.wav Hello, my name is sam. 1 2 3 4 5 6 7 8 9 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant