#77685 - Dark Knight ez - Sun Apr 02, 2006 12:23 pm
Hey all,
I'm currently using a memcpy to copy a specified amount of bytes to another location. In some topics I noticed that dmaCopy would be a faster way to do the exact same thing, so I tried using that.
The memcpy way worked flawlessly (music played), but using dmaCopy instead (and changing nothing else) did not work. Are there some restrictions concerning dmaCopy (for instance, it only working for some memory regions)?
This was my memcpy code:
memcpy(ptr, music_it + file_pos, items * size);
And this what I tried to replace it with:
dmaCopy(music_it + file_pos, ptr, items * size);
(where size is of type size_t, if that makes any difference)
Thanks in advance.
I'm currently using a memcpy to copy a specified amount of bytes to another location. In some topics I noticed that dmaCopy would be a faster way to do the exact same thing, so I tried using that.
The memcpy way worked flawlessly (music played), but using dmaCopy instead (and changing nothing else) did not work. Are there some restrictions concerning dmaCopy (for instance, it only working for some memory regions)?
This was my memcpy code:
memcpy(ptr, music_it + file_pos, items * size);
And this what I tried to replace it with:
dmaCopy(music_it + file_pos, ptr, items * size);
(where size is of type size_t, if that makes any difference)
Thanks in advance.