]> Chaos Git - corbenik/ctrulib.git/commitdiff
fixed y2r doc and added csnd pan/vol ranges
authorLectem <lectem@gmail.com>
Sat, 11 Jul 2015 18:37:31 +0000 (20:37 +0200)
committerLectem <lectem@gmail.com>
Thu, 23 Jul 2015 19:26:37 +0000 (21:26 +0200)
libctru/include/3ds/services/csnd.h
libctru/include/3ds/services/y2r.h

index 9264a2763b0ae15e4580bd8b9c7c1e8c55c0e383..e3258a04398ecf5de3a51ac78d639c6230a773b7 100644 (file)
@@ -147,6 +147,10 @@ void CSND_SetCapRegs(u32 capUnit, u32 flags, u32 addr, u32 size);
 Result CSND_SetDspFlags(bool waitDone);
 Result CSND_UpdateInfo(bool waitDone);
 
+/**
+ * @param vol The volume, ranges from 0.0 to 1.0 included
+ * @param pan The pan, ranges from -1.0 to 1.0 included
+ */
 Result csndPlaySound(int chn, u32 flags, u32 sampleRate, float vol, float pan, void* data0, void* data1, u32 size);
 
 void csndGetDspFlags(u32* outSemFlags, u32* outIrqFlags); // Requires previous CSND_UpdateInfo()
index 62cf3bfb7903f2fc349babc2714d12d3526db642..613336c3e33d7309ab4ba410721d011a9803a791 100644 (file)
@@ -233,7 +233,7 @@ Result Y2RU_GetTransferEndEvent(Handle* end_event);
  * @param src_buf A pointer to the beginning of your Y data buffer.
  * @param image_size The total size of the data buffer.
  * @param transfer_unit Specifies the size of 1 DMA transfer. Usually set to 1 line. This has to be a divisor of image_size.
- * @param transfer_unit Specifies the gap (offset) to be added after each transfer. Can be used to convert images with stride or only a part of it.
+ * @param transfer_gap Specifies the gap (offset) to be added after each transfer. Can be used to convert images with stride or only a part of it.
  *
  * This specifies the Y data buffer for the planar input formats (INPUT_YUV42*_INDIV_*).
  * The actual transfer will only happen after calling @ref Y2RU_StartConversion.
@@ -245,7 +245,7 @@ Result Y2RU_SetSendingY(const void* src_buf, u32 image_size, u16 transfer_unit,
  * @param src_buf A pointer to the beginning of your Y data buffer.
  * @param image_size The total size of the data buffer.
  * @param transfer_unit Specifies the size of 1 DMA transfer. Usually set to 1 line. This has to be a divisor of image_size.
- * @param transfer_unit Specifies the gap (offset) to be added after each transfer. Can be used to convert images with stride or only a part of it.
+ * @param transfer_gap Specifies the gap (offset) to be added after each transfer. Can be used to convert images with stride or only a part of it.
  *
  * This specifies the U data buffer for the planar input formats (INPUT_YUV42*_INDIV_*).
  * The actual transfer will only happen after calling @ref Y2RU_StartConversion.