Advertisement
Guest User

Untitled

a guest
Mar 21st, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.35 KB | None | 0 0
  1. /*
  2.  * This file is part of EasyRPG Player.
  3.  *
  4.  * EasyRPG Player is free software: you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation, either version 3 of the License, or
  7.  * (at your option) any later version.
  8.  *
  9.  * EasyRPG Player is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with EasyRPG Player. If not, see <http://www.gnu.org/licenses/>.
  16.  */
  17.  
  18. #include "system.h"
  19. #include "audio_3ds.h"
  20. #include "output.h"
  21.  
  22. #ifdef _3DS
  23. #include <3ds.h>
  24. #include <stdio.h>
  25.  
  26. CtrAudio::CtrAudio() :
  27.     bgm_volume(0),
  28.     bgs_channel(0),
  29.     bgs_playing(false),
  30.     me_channel(0),
  31.     me_stopped_bgm(false)
  32. {
  33.     Result res = csndInit();
  34.     if (res != 0){
  35.         Output::Error("Couldn't initialize audio.\nError code: 0x%X\n", res);
  36.     }
  37.    
  38.     #ifndef NO_DEBUG
  39.         printf("Sound initialized successfully!\n");
  40.     #endif
  41.    
  42.     int const frequency = 44100;
  43. }
  44.  
  45. CtrAudio::~CtrAudio() {
  46.     csndExit();
  47. }
  48.  
  49. void CtrAudio::BGM_OnPlayedOnce() {
  50.  
  51. }
  52.  
  53. void CtrAudio::BGM_Play(std::string const& file, int volume, int /* pitch */, int fadein) {
  54.  
  55. }
  56.  
  57. void CtrAudio::BGM_Pause() {
  58.  
  59. }
  60.  
  61. void CtrAudio::BGM_Resume() {
  62.  
  63. }
  64.  
  65. void CtrAudio::BGM_Stop() {
  66.  
  67. }
  68.  
  69. bool CtrAudio::BGM_PlayedOnce() {
  70.     return true;
  71. }
  72.  
  73. unsigned CtrAudio::BGM_GetTicks() {
  74.     return 0;
  75. }
  76.  
  77. void CtrAudio::BGM_Volume(int volume) {
  78.  
  79. }
  80.  
  81. void CtrAudio::BGM_Pitch(int /* pitch */) {
  82.  
  83. }
  84.  
  85. void CtrAudio::BGM_Fade(int fade) {
  86.  
  87. }
  88.  
  89. void CtrAudio::BGS_Play(std::string const& file, int volume, int /* pitch */, int fadein) {
  90.  
  91. }
  92.  
  93. void CtrAudio::BGS_Pause() {
  94.  
  95. }
  96.  
  97. void CtrAudio::BGS_Resume() {
  98.  
  99. }
  100.  
  101. void CtrAudio::BGS_Stop() {
  102.  
  103. }
  104.  
  105. void CtrAudio::BGS_Fade(int fade) {
  106.  
  107. }
  108.  
  109. int CtrAudio::BGS_GetChannel() const {
  110.     return 1;
  111. }
  112.  
  113. void CtrAudio::ME_Play(std::string const& file, int volume, int /* pitch */, int fadein) {
  114.  
  115. }
  116.  
  117. void CtrAudio::ME_Stop() {
  118.  
  119. }
  120.  
  121. void CtrAudio::ME_Fade(int fade) {
  122.  
  123. }
  124.  
  125. void CtrAudio::SE_Play(std::string const& file, int volume, int /* pitch */) {
  126.  
  127. }
  128.  
  129. void CtrAudio::SE_Stop() {
  130.  
  131. }
  132.  
  133. void CtrAudio::Update() {
  134.  
  135. }
  136.  
  137. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement