Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

GBA Sound Demo: Difference between revisions

From GameBrew
m (Text replacement - "Category:Music homebrews on GBA" to "")
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#seo:
|title= (Music Apps) - GameBrew
|title_mode=append
|image=gbasounddemo2.png
|image_alt=GBA Sound Demo
}}
{{Infobox GBA Homebrews
{{Infobox GBA Homebrews
|title=GBA Sound Demo
|title=GBA Sound Demo
Line 14: Line 8:
|version=2022
|version=2022
|license=Mixed
|license=Mixed
|download=https://dlhb.gamebrew.org/gbahomebrews/gbasounddemo.7z
|download=https://dlhb.gamebrew.org/gbahomebrews/gba_sound_demo.zip
|website=https://github.com/velipso/gba-sound-demo
|website=https://github.com/velipso/gba-sound-demo
|source=https://github.com/velipso/gba-sound-demo
|source=https://github.com/velipso/gba-sound-demo
}}
}}
{{#seo:
|title= (Music Apps) - GameBrew
|title_mode=append
|image=gbasounddemo2.png
|image_alt=GBA Sound Demo
}}
These demos allow you to experiment with different sample rates and bit depths on the Game Boy Advance.
These demos allow you to experiment with different sample rates and bit depths on the Game Boy Advance.


Line 65: Line 66:
* Author's website - https://sean.cm/
* Author's website - https://sean.cm/
* GitHub - https://github.com/velipso/gba-sound-demo
* GitHub - https://github.com/velipso/gba-sound-demo
[[Category:GBA homebrew applications]]

Latest revision as of 09:36, 23 Haziran 2024

GBA Sound Demo
Gbasounddemo2.png
General
AuthorSean
TypeMusic Apps
Version2022
LicenseMixed
Last Updated2022/01/22
Links
Download
Website
Source


These demos allow you to experiment with different sample rates and bit depths on the Game Boy Advance.

The GBA is notorious for having bad sound. Using these demos, you can verify that the GBA hardware is quite capable of good sound, but it takes special care to setup the timing correctly to produce a 32K sample rate.

The source code is included, as .gvasm files. Read the technical details for more information on how this works.

User guide

Both demos have a blinking indicator in the bottom left -- this is used to verify that timing is correct when using timer based sample rates (16K, 32K, 65K).

Blinking indicates that the VBlank and Timer IRQ fired at the same exact time.

Rates Demo

The rates demo will play a tone, and allow you to switch the sample rate, bit depth, dithering, and hardware sample rate.

The top number is the sample rate of the generated tone.

The bottom numbers are the bit depth and hardware sample rate (set via SOUNDBIAS), along with whether dithering is used when generating the tone.

Song Demo

The song demo will play a song at two sample rates -- the top is controlled via vblank, the bottom is controlled via timers.

Controls

Rates Demo:

L/R - sweep tone

Start - set tone to 256Hz

Select - set tone to 4096Hz

D-Pad - change settings

A/B - change between top or bottom settings (for quick comparison)

Song Demo:

Start - restart song

Anything else - swap between sample rates

Screenshots

gbasounddemo3.png gbasounddemo4.png

External links

Advertising: