Revert "VGMStream Input: Remove downmixing, add layout"
This reverts commit 0d4ee4c901
.
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
parent
38969cd3b1
commit
69ebce32c0
|
@ -32,7 +32,6 @@
|
|||
BOOL canPlayForever;
|
||||
int sampleRate;
|
||||
int channels;
|
||||
uint32_t channelConfig;
|
||||
int bitrate;
|
||||
long totalFrames;
|
||||
long framesRead;
|
||||
|
|
|
@ -63,7 +63,9 @@ static NSString *get_description_tag(const char *description, const char *tag, c
|
|||
vgmstream_apply_config(stream, &vcfg);
|
||||
|
||||
int output_channels = stream->channels;
|
||||
uint32_t channelConfig = stream->channel_layout;
|
||||
|
||||
vgmstream_mixing_autodownmix(stream, 6);
|
||||
vgmstream_mixing_enable(stream, MAX_BUFFER_SAMPLES, NULL, &output_channels);
|
||||
|
||||
int track_num = [[url fragment] intValue];
|
||||
|
||||
|
@ -148,13 +150,12 @@ static NSString *get_description_tag(const char *description, const char *tag, c
|
|||
close_streamfile(tagFile);
|
||||
}
|
||||
|
||||
NSDictionary *properties = @{ @"bitrate": [NSNumber numberWithInt:bitrate / 1000],
|
||||
NSDictionary *properties = @{@"bitrate": [NSNumber numberWithInt:bitrate / 1000],
|
||||
@"sampleRate": [NSNumber numberWithInt:sampleRate],
|
||||
@"totalFrames": [NSNumber numberWithDouble:totalFrames],
|
||||
@"bitsPerSample": [NSNumber numberWithInt:16],
|
||||
@"floatingPoint": [NSNumber numberWithBool:NO],
|
||||
@"channels": [NSNumber numberWithInt:channels],
|
||||
@"channelConfig": [NSNumber numberWithUnsignedInt:channelConfig],
|
||||
@"seekable": [NSNumber numberWithBool:YES],
|
||||
@"replayGainAlbumGain": rgAlbumGain,
|
||||
@"replayGainAlbumPeak": rgAlbumPeak,
|
||||
|
@ -162,7 +163,7 @@ static NSString *get_description_tag(const char *description, const char *tag, c
|
|||
@"replayGainTrackPeak": rgTrackPeak,
|
||||
@"codec": codec,
|
||||
@"endian": @"host",
|
||||
@"encoding": @"lossy/lossless" };
|
||||
@"encoding": @"lossy/lossless"};
|
||||
|
||||
if([title isEqualToString:@""]) {
|
||||
if(stream->num_streams > 1) {
|
||||
|
@ -246,7 +247,9 @@ static NSString *get_description_tag(const char *description, const char *tag, c
|
|||
return NO;
|
||||
|
||||
int output_channels = stream->channels;
|
||||
channelConfig = stream->channel_layout;
|
||||
|
||||
vgmstream_mixing_autodownmix(stream, 6);
|
||||
vgmstream_mixing_enable(stream, MAX_BUFFER_SAMPLES, NULL, &output_channels);
|
||||
|
||||
canPlayForever = stream->loop_flag;
|
||||
if(canPlayForever) {
|
||||
|
|
Loading…
Reference in New Issue