diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-22 13:21:41 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-22 13:21:41 -0500 |
| commit | d0adf3c6813bb9e357d74f7a606352c957530686 (patch) | |
| tree | addea6486c8cd8c18f2d8b3f0111268c6c2c1236 /graphics/src/audio/channel.rs | |
| parent | audio: fix merge (diff) | |
| download | DungeonCrawl-d0adf3c6813bb9e357d74f7a606352c957530686.tar.gz DungeonCrawl-d0adf3c6813bb9e357d74f7a606352c957530686.tar.bz2 DungeonCrawl-d0adf3c6813bb9e357d74f7a606352c957530686.zip | |
audio: move 'asm' files out of data segment
Diffstat (limited to 'graphics/src/audio/channel.rs')
| -rw-r--r-- | graphics/src/audio/channel.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/src/audio/channel.rs b/graphics/src/audio/channel.rs index be12f75..a1ad144 100644 --- a/graphics/src/audio/channel.rs +++ b/graphics/src/audio/channel.rs @@ -43,10 +43,10 @@ pub struct PulseChannel { impl PulseChannel { pub fn load(handle: &'static RaylibAudio) -> crate::Result<Self> { Ok(Self { - pulse_12: load_audio!(handle, "assets/pulse_12.wav"), - pulse_25: load_audio!(handle, "assets/pulse_25.wav"), - pulse_50: load_audio!(handle, "assets/pulse_50.wav"), - pulse_75: load_audio!(handle, "assets/pulse_50.wav"), + pulse_12: load_audio!(handle, "assets/wav/pulse_12.wav"), + pulse_25: load_audio!(handle, "assets/wav/pulse_25.wav"), + pulse_50: load_audio!(handle, "assets/wav/pulse_50.wav"), + pulse_75: load_audio!(handle, "assets/wav/pulse_50.wav"), duty: DutyCycle::Percent50, }) } @@ -112,7 +112,7 @@ pub struct TriangleChannel { impl TriangleChannel { pub fn load(handle: &'static RaylibAudio) -> crate::Result<Self> { Ok(Self { - inner: load_audio!(handle, "assets/triangle.wav"), + inner: load_audio!(handle, "assets/wav/triangle.wav"), }) } } @@ -150,8 +150,8 @@ pub struct NoiseChannel { impl NoiseChannel { pub fn load(handle: &'static RaylibAudio) -> crate::Result<Self> { Ok(Self { - noise_0: load_audio!(handle, "assets/noise_0.wav"), - noise_1: load_audio!(handle, "assets/noise_1.wav"), + noise_0: load_audio!(handle, "assets/wav/noise_0.wav"), + noise_1: load_audio!(handle, "assets/wav/noise_1.wav"), mode: false, }) } |