Hey,
I need some help on linux with creating something.
The story (short): One of my friends left speaker is broken and he's tired off chaging it everytime from mono to stereo when he's listening with headphones through the system settings. He wants that an option is implemented in the Rosalina menu, where you can change from mono to stereo and vise versa.
I already researched the 11.5.2 SDK and the "config SDK app" and found the files that matters (cfg_Sound.h, config savegame
0x00070001 0x1 0xE sound output mode (mono/stereo/surround)).
It's quite simple what I want to do. Like the config SDK app, I want to implement a simple option chaging the sound output mode. But what exact options should I write to it since the cfg_sound.h isn't clear enough for me and doesn't say that much? Here is the code:
I need some help on linux with creating something.
The story (short): One of my friends left speaker is broken and he's tired off chaging it everytime from mono to stereo when he's listening with headphones through the system settings. He wants that an option is implemented in the Rosalina menu, where you can change from mono to stereo and vise versa.
I already researched the 11.5.2 SDK and the "config SDK app" and found the files that matters (cfg_Sound.h, config savegame
0x00070001 0x1 0xE sound output mode (mono/stereo/surround)).
It's quite simple what I want to do. Like the config SDK app, I want to implement a simple option chaging the sound output mode. But what exact options should I write to it since the cfg_sound.h isn't clear enough for me and doesn't say that much? Here is the code:
Code:
#ifndef NN_CFG_CTR_CFG_SOUND_H_
#define NN_CFG_CTR_CFG_SOUND_H_
namespace nn {
namespace cfg {
namespace CTR {
/*!
@brief Enumerated type that represents sound output modes.
*/
enum CfgSoundOutputMode
{
CFG_SOUND_OUTPUT_MODE_MONO, //!< Mono.
CFG_SOUND_OUTPUT_MODE_STEREO, //!< Stereo.
CFG_SOUND_OUTPUT_MODE_SURROUND //!< 3D Surround Sound.
};
} // end of namespace CTR
} // end of namespace cfg
} // end of namespace nn
#endif // NN_CFG_CTR_CFG_SOUND_H_