Coder Social home page Coder Social logo

Comments (7)

jserv avatar jserv commented on May 28, 2024 1

I am interested on solving this issue. May I be the assignee?

Welcome. Please proceed. Keep in mind that the target verification scenarios might involve games like Doom and Quake, where we can make minimal changes to enable audio for these classic video games. Consequently, we could introduce high-level system calls based on SDL to meet the aforementioned expectations.

from rv32emu.

jserv avatar jserv commented on May 28, 2024 1

we can use fewer system call via checking the type of request using register value. I think setup_sound and shutdown_sound can be a pair, play_music and play_sfx can be a pair. Is it necessary to combine them?

Please take a moment to review the principles outlined in Basics of the Unix Philosophy, particularly the concept of designing for simplicity and introducing complexity only when necessary.

In the context of our system, there are a single system call related to display management, along with an additional two system calls associated with event handling. Furthermore, I anticipate approximately 2 system calls for audio/sound manipulation. This means that we should aim to consolidate the existing APIs into a minimalist-style list of available system calls, rather than providing ruch-featured function prototypes. Your attention to maintaining simplicity while ensuring functionality is appreciated.

from rv32emu.

jserv avatar jserv commented on May 28, 2024 1

I already named them as sound_manage and sound_control. Is it OK?

I suggest adhering to the terminologies employed in SDL and its related libraries. It is important to provide clear explanations of the terms you intend to modify.

from rv32emu.

ChinYikMing avatar ChinYikMing commented on May 28, 2024

I am interested on solving this issue. May I be the assignee?

from rv32emu.

ChinYikMing avatar ChinYikMing commented on May 28, 2024

You prosed 6 system calls for audio/sound. i.e.,

  • play_sfx
  • play_music
  • stop_music
  • set_music_volume
  • setup_sound
  • shutdown_sound

Can you use fewer ones?

Sure, we can use fewer system call via checking the type of request using register value.
I think setup_sound and shutdown_sound can be a pair, play_music and play_sfx can be a pair.
Is it necessary to combine them?

from rv32emu.

jserv avatar jserv commented on May 28, 2024

In the context of our system, there are a single system call related to display management, along with an additional two system calls associated with event handling. Furthermore, I anticipate approximately 2 system calls for audio/sound manipulation.

Inspired by Simple-SDL2-Audio, my preliminary concept for enhancing the sound/music system calls is to maintain two distinct system calls: audio_setup and audio_control.

  • The audio_setup call would define the audio type, whether it's for sound or music. Only one music track can play concurrently, and it would loop. Multiple sound effects can be played concurrently, though an excessive number might lead to distortion.
  • The audio_control call would then manage operations like play, pause, stop, and end.

from rv32emu.

ChinYikMing avatar ChinYikMing commented on May 28, 2024

In the context of our system, there are a single system call related to display management, along with an additional two system calls associated with event handling. Furthermore, I anticipate approximately 2 system calls for audio/sound manipulation.

Inspired by Simple-SDL2-Audio, my preliminary concept for enhancing the sound/music system calls is to maintain two distinct system calls: audio_setup and audio_control.

  • The audio_setup call would define the audio type, whether it's for sound or music. Only one music track can play concurrently, and it would loop. Multiple sound effects can be played concurrently, though an excessive number might lead to distortion.
  • The audio_control call would then manage operations like play, pause, stop, and end.

I already named them as sound_manage and sound_control. Is it OK?

from rv32emu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.