-
Notifications
You must be signed in to change notification settings - Fork 273
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
githubaf
wants to merge
62
commits into
s-macke:master
Choose a base branch
from
githubaf:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Endianess #9
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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
…emoved for linux from main.c
…dent with my debug timer-prints.
…anz OK. (geht erst beim 2. Mal)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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,2205010); //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...