Skip to content

[AUDIO] refactor, add play lifetimes, add pan setting, general source tidy#58

Merged
differrari merged 7 commits intodifferrari:mainfrom
1rjs:virtio/audio
Nov 18, 2025
Merged

[AUDIO] refactor, add play lifetimes, add pan setting, general source tidy#58
differrari merged 7 commits intodifferrari:mainfrom
1rjs:virtio/audio

Conversation

@1rjs
Copy link
Contributor

@1rjs 1rjs commented Oct 23, 2025

These are breaking changes in terms of function names & parameters. I expect these to remain stable now.

See my 'audiopong' repo for example app usage.

line->u.buf[1].left_level = 0;
line->u.buf[1].right_level = 0;
line->bix = 0;
line->dbl.buf[0].ptr = NULL;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would a memset be faster and more reliable with sizeof here? Or is there limitations

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I'll get that sorted.

return lineId;
}

#ifdef KERNEL
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the confusion, as of the latest version of the lib, fopen/read/write will call the non-syscall version of the function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that simplifies things. I'll tidy that up.

@differrari differrari merged commit 7f2543a into differrari:main Nov 18, 2025
1 check passed
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.

2 participants