mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-13 03:29:11 +00:00
Wrapped fopen/close/read/write functions inside a simple "IOFile" class. Reading, writing, and error checking became simpler in most cases. It should be near impossible to forget to close a file now that the destructor takes care of it. (I hope this fixes Issue 3635) I have tested the functionality of most things, but it is possible I broke something. :p
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7328 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
4f69672b2b
commit
59fd1008ca
68 changed files with 1112 additions and 1154 deletions
|
@ -28,17 +28,19 @@
|
|||
#ifndef _WAVEFILE_H_
|
||||
#define _WAVEFILE_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include "FileUtil.h"
|
||||
|
||||
class WaveFileWriter
|
||||
{
|
||||
FILE *file;
|
||||
File::IOFile file;
|
||||
bool skip_silence;
|
||||
u32 audio_size;
|
||||
short *conv_buffer;
|
||||
void Write(u32 value);
|
||||
void Write4(const char *ptr);
|
||||
|
||||
WaveFileWriter& operator=(const WaveFileWriter&)/* = delete*/;
|
||||
|
||||
public:
|
||||
WaveFileWriter();
|
||||
~WaveFileWriter();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue