mirror of
https://github.com/irmen/prog8.git
synced 2025-02-28 09:29:26 +00:00
bank caching not required for pcm_play()
This commit is contained in:
parent
0fcd57192b
commit
a6d0ea347c
@ -54,7 +54,6 @@ zsound_lib:
|
|||||||
|
|
||||||
pcm_init()
|
pcm_init()
|
||||||
pcm_trigger_digi(digi_bank, digi_address)
|
pcm_trigger_digi(digi_bank, digi_address)
|
||||||
irq_zsound_rambank_cache = digi_bank
|
|
||||||
cx16.set_irq(&zsm_playroutine, true)
|
cx16.set_irq(&zsm_playroutine, true)
|
||||||
|
|
||||||
txt.print("\nstreaming from file, playback in irq!\n")
|
txt.print("\nstreaming from file, playback in irq!\n")
|
||||||
@ -74,12 +73,7 @@ zsound_lib:
|
|||||||
pcm_stop() ;unreached
|
pcm_stop() ;unreached
|
||||||
}
|
}
|
||||||
|
|
||||||
ubyte irq_zsound_rambank_cache
|
|
||||||
sub zsm_playroutine() {
|
sub zsm_playroutine() {
|
||||||
ubyte old_rambank = cx16.getrambank()
|
|
||||||
cx16.rambank(irq_zsound_rambank_cache)
|
|
||||||
pcm_play()
|
pcm_play()
|
||||||
irq_zsound_rambank_cache = cx16.getrambank()
|
|
||||||
cx16.rambank(old_rambank)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user